<div> <div style="float: left;"><p>This is some texd.</p></div> <div style="float: left;"><img src="sunset.jpg" /></div> <div style="float: left;"><p>This is some text2.</p></div> <div style="clear:both;"></div> </div>
This is how I handle columns in CSS table-less layouts. See this for a good explanation of floats, block level and inline elements http://www.guistuff.com/css/css_float.html And to keep IE from going into Quirks mode, make sure you set a doctype in the very beginning of your document and follow the specs. For instance, if you set the doctype to XHTML Transitional and use <br> (incorrect for XHTML specs) instead of <br /> then IE goes into Quirks mode. Thank you, Marc Hall HallMarc Websites 610.446.3346 http://www.hallmarcwebsites.com/ Spread the word about my services and earn money! Contact me for details. ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
