0

For example, I have one field in my content type that is a boolean value of "Is this employee certified" next to this field I'd like a Pop-up Date that shows the expiration field. I've created both fields for my content type but I have not seen anything in the CSS that allows my to float or align fields. Any help would be greatly appreciated.

Can I do this with Views? Or with CSS? Thank you

-1

You can use Token Field Or computed Field but the easier way it's to use token field.

You should create a token field then use replacement patterns (each field of your content type has a replacement pattern to print it's value) for example:

I have integer field (field_int), it's replacement pattern should be [node:field_int].

With that you can print the fields between each other.

  • Did you mean to answer this question? It looks like might have tried to answer a different one, this isn't what the OP is asking for :) – Clive Oct 16 '12 at 15:54
  • but it's alternative solution for what he need. – abd Oct 16 '12 at 16:07
  • Oh right I see what you were going for there. Both of those modules would be a massive amount of overhead to add to solve a simple styling problem though, far better to use float:left/float:right IMO – Clive Oct 16 '12 at 16:41
1

You can just use CSS for this. You will need to find the specific element ID or class for the containing element (div for example) for each of the fields (you can find this out using Firebug with Firefox), then create a CSS rule for each of those elements such as:

#field1 {
  float:left;
  width:150px;
}

#field2 {
  float:left;
  width:150px;
}

You will probably need to then use the CSS rule clear:left; for the field or element that follows after them.

Not the answer you're looking for? Browse other questions tagged or ask your own question.