Hi,
I'm having an issue with the clearfix attached to each field (Drupal 7, Zen theme).
I have an image floated right:

.field-name-field-image-species img {
clear: right;
display: block;
float: right;
margin: 0 0 5px 5px;
}

And several text fields containing just one word that I want to sit on the left of this. But only the first text field actually sits next to the image on the page, all the others clear the image and sit underneath.

The first text field when looked at with Firebug has the same height as the image, so somehow is incorporating the image as if it is a child element.

Does anyone know how to fix this?
Thanks

Comments

Zakarijs’s picture

I'm having the same issue.

Anybody?

Jiri Volf’s picture

Hi, I've just come across this, have you meanwhile found a solution?

Pratheep’s picture

Any link to the page? This could just be a css related issue and need to look at the page to troubleshoot.

jmlavarenne’s picture

I am looking for a solution to this also and it is being discussed here as well http://drupal.org/node/622330#comment-5847798 although at the moment none of the suggestions solve the issue for me.

ergunk’s picture

I agree with Pratheep; please share the URL of the page if possible; so maybe we can help to solve your problem.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
modulist’s picture

I'm running into the same issue: text fields have a clearfix class embedded in them, while longtext fields don't. If it's not too late to modify your field type, this will give you a good workaround.

modulist