Forum Moderators: not2easy
<div style="background-color:#0000FF; margin-bottom:20px; color:#FFFFFF;">
<h2 style="background-color:#FF00FF; display:block;">Some text here</h2>
<img src="image.jpg" alt="Seemann" style="float:right; width:180px; height:180px;" />
<h3>item count</h3>
<ol>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ol>
<br style="clear:both" />
<h3>Information</h3>
<p>text<br />
more text<br />
yet even more text</p>
</div>
I'm using an xhtml 1.0 strict doctype, the xhtml and css validate. Can anyone get this to work without me having to redo the rest of the page design?
Jennifer
PS, those are just test colors, I'm not color blind :p
It is peekabo.. and width or height does work here, these need to be put on the container div..
if width 100% (on the container div) won't fit with the design the you can use the IE workaround of height: 1%; but just put it in hack or a conditional comment..
<div style="background-color:#0000FF; margin-bottom:20px; color:#FFFFFF; width: 100%;">
or
* html div.yourclassname {height: 1%;}
Suzy