simple columns using divs

    Date: 02/06/08 (WebDesign)    Keywords: css

    I'd like something simple: two column areas where the left column takes up 80% of the window space at all times and the right column takes up the remaining space. The two columns would have padding so as not to bump into each other. I tried this myself in the CSS of the document I am working on, and it really didn't pan out.

    Should I use a table with two cells set at the needed percentages, then use styles to define the divs within these cells? It seems sometimes for the most simple things divs are the painful way to go and I'd appreciate a quick tip, thanks!

    Edit: feel totally dumb. Just tried it again and for some reason it works. I think I had a float messed up. Thanks.

    Source: http://community.livejournal.com/webdesign/1358334.html

« Getting funding for your... || Dreamhost billing problem... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home