Forum Moderators: not2easy
I would start by making sure the float comes before the element you want it floating next to in the source code...
<div id="thefloat"></div>
<div id="theNOTfloat"></div>
Next, check to be sure the item you're expecting to wrap around the float isn't also set to float. This would produce the behavior you describe.
Otherwise, it could be that the width of the non-floated element is being forced to a width too wide for it to sit adjacent to the float. Or something in your layout has triggered the IE float bug suite. Or you've got a double margin effect. OR...OR...OR...
You can see why more code is necessary. ;)
cEM
You can see the behavior at : <snip>
the php is pulling in this content code: <snip>
which for some reason if I place the float directly on the div and view only the html file it works, so perhaps there is a conflict in the php file
the stylesheet is at:
<No site specifics, thanks. See TOS #13 [WebmasterWorld.com]>
Thanks,
Rick
[edited by: SuzyUK at 5:33 pm (utc) on Jan. 21, 2005]
under the impression I could not post links
thats correct. but you can get help.
maybe you need to post the html/css for the containing elements, and anything next to them that may push them down.
what doctype are you using? do your pages validate?
<added>
except tell me about the double margin or triggering an IE float bug
the floating double margin bug doesnt apply, AFAIK , as you are floating right, and your right margin is 0, so even if it were doubled it wouldnt make any difference.
</added>
so perhaps there is a conflict in the php file
No there shouldn't be a conflict in a php "file".. it's the generated code of the entire document that you're interested in.
Oh hang on... I seem to remember something about using PHP includes produced a weird looking comment at the very beginning of a document (view source)? If It's doing that then IE will be going into quirks mode, which would cause Box Model problems..
There is a way around this but I can't remember what it is, if that's it let us know and someone will remember hopefully
If not try to narrow down the generated template to a basic main layout sample and post the code
Suzy