Forum Moderators: not2easy
I'm doing this in the markup (XHTML transitional):
<div id="Utilities">
<div id="Breadcrumbs">
(breadcumb navigation here...)
</div>
<div id="OtherUtilities">
(other stuff here...)
</div>
<div class="Spacer"> </div>
</div>
And the CSS:
#Utilities { background-color: #ccc; }
#Breadcrumbs { float: left; }
#OtherUtilities { float: right; text-align: right; }
.Spacer { clear: both; font-size: 1px; }
(the Spacer div is so the outer, gray box expands to be the full size of its contents.)
Anyone have any ideas on how to make the contents visible? I tried z-index reordering, visibility, re-ordering in the CSS file. I tried absolute positioning but ran into other problems.
I know tables will work, but I'm giving it the college try to go 100% CSS layout, for structural as well as educational purposes.
Thanks!
P.S. Everything looks fine in Mac browsers (IE, Chimera) but I haven't tried other Windows browsers.
If not, then I don't think you need the float:right on the div#OtherUtilities (your text is right-aligned anyway). Because of this, you don't need the div.Spacer either.
I don't know if this will fix your problem or not, because I can't seem to replicate it either way (tested in IE 6, Mozilla 1.1, Opera 6.05).