sam_rusch — 2011-04-24T13:50:15-04:00 — #1
I have this defined in my style.css file:
I can call it successfully like this:
<div id="navigation">Left Right</div>
But when I try to use float (left/right) the background image disappears and turns white.
I want to float certain links to the left, and certain links to the right in this <div> tag. Is there a better way than to use float?
ralphm — 2011-04-24T20:45:47-04:00 — #2
It's not quite clear what's going on here. Could you post more code, or create a page example where we could see this happening?
rayzur — 2011-04-24T22:10:19-04:00 — #3
I want to float certain links to the left, and certain links to the right in this <div> tag.
If you are wanting to float child elements in that div then you will need to force the #navigation to enclose it's floats. Then your background image will become visible as the div extends.
To do that the easiest way is to set overflow:hidden on the parent.
sam_rusch — 2011-04-25T18:14:42-04:00 — #4
Ray, that did the trick. Thank you!