How to create a perfect 3 columns layout using CSS , with cross-browser support? -


How can create the perfect 3 column layout using CSS, with cross-browser support?

I have 3 divs like

  & lt; Div class = "clm1" & gt; Some content & lt; / Div & gt; & Lt; Div class = "clm2" & gt; Some content & lt; / Div & gt; & Lt; Div class = "clm3" & gt; Some content & lt; / Div & gt;  

Trying Google but all done or css3 I need a perfect 3 column in the original CSS. Please help

Updates in this sense, no big coding is required, but supported by all browsers and easily modified

Wrap the three in a parent element (a

in the example ). All three & lt; Div & gt; element one float: left; Assign css property and a non-auto width property, then use them to give background color.

  & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Transcription // N" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;;;; gt; html xmlns = "http : //www.w3.org/1999/xhtml "xml: lang =" en "lang =" en "> gt; Top & gt; title & gt; bubbling & lt; / title & Gt; & lt; Style Type = "Text / CSS" & gt; Three Columns {Width: 33%; Swimming Left;} & lt; / style & gt; & lt; / head & gt; & lt; Body & gt; & lt; div class = "three-pillar" & gt; div id = "clm1" class = "column" & gt; some content & lt; / div & gt; & lt; div id = "Clm2" class = "column" & gt; some content & lt; br / & gt; some content & lt; br / & gt; some content & lt; br / & gt; & lt; / d Iv & gt; div id = "clm3" class = "column" & gt; some content & lt; br / & gt; some content & lt; br / & gt; some content & lt; br / & gt; ; Some content & lt; / div & gt; & lt; / div & gt; & lt; / body & gt; & lt; / html & gt;  

The class attributes have the freedom to change the id attributes, because they do not feel appropriate a class attribute.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -