Welcome to Design Guide
Design Web Site Article
. For a permanent link to this article, or to bookmark it for further reading, click here.
Want to learn Column Designs with CSS
from: Jon St. George - Designs-By-Jon.comAlmost everybody knows that CSS makes layouts easier than they were with tables. One of the reasons many people stuck with tables for so long is that it’s a bit difficult to create column-based designs using CSS.
Believe me, CSS columns aren't that difficult to produce once you understand how CSS float rules work. Float allows you to say that some portions of your content should 'float' next to other portions, instead of being displayed one after the next.
A column layout in CSS is quite simple and you’ll see why. Just see how to divide your content from your navigation using the div tag, as mentioned below:
Please note that the divs must be in this order – left, right, centre – because otherwise one column might end up underneath another in a way you don't expect. Ordering things logically as left, centre, then right, for example, will cause your right column to end up under the centre one.
Anyway, the next step is to write the CSS for those IDs you just set up. See below-
#left-nav {float: left; width: 30%;}
#right-nav {float: right; width: 30% }
You can adjust the width % depending on how wide you want your left and right columns to be (you can even choose whether to set the width in percentages or in pixels). And now you've set up a successful three-column layout. Amazing! Isn’t it?
If you wish that your left and right columns should have a different background colour to the centre one, this might be a bit trickier. This is because in most of the browsers, your columns are only considered to extend downwards as far as the text in them does meaning that the bottoms of your columns won't line up.
How to solve this issue then? The best way is to make your columns fixed-width (meaning that you specify their width in pixels, eg. 'width: 100px;'). Once you've done that, you can create one-pixel-high image that includes the colours you want for the columns, and make it the background image. But the fixed-width columns can look strange if you leave them spaced as they are. The solution is to specify a fixed width for your document's body, and then set the left and right margins to 'auto' – this will centre the page on the screen.
You might also like to add text-align: center, so they appear in the middle of the page. There are few more things which you would need to learn about but if you found the above simple I am sure you’ll find playing around with CSS easy.
Design Web Site News
Royal Building Products' Exterior Portfolio® Brand Leads with Design for New ... - Sacramento Bee
Royal Building Products' Exterior Portfolio® Brand Leads with Design for New ... Sacramento Bee With a strategic focus on exterior design and a deliberate emphasis on helping pros and contractors better respond to customers' design wants and needs, the new website also features an all-new professionals section, complete with design resources, ... |
Royal Building Products' Exterior Portfolio® Brand Leads with Design for New ... - MarketWatch (press release)
Royal Building Products' Exterior Portfolio® Brand Leads with Design for New ... MarketWatch (press release) COLUMBUS, Ohio, May 16, 2012 /PRNewswire via COMTEX/ -- Royal Building Products recently unveiled a new website for its Exterior Portfolio® brand, ( www.ExteriorPortfolio.com ), anchored by the expanded and intuitive Dream Designer® design tool. |
What's responsive Web design all about? - Ars Technica
What's responsive Web design all about? Ars Technica Responsive Web design, as the name implies, is a style of Web development where content responds to the device on which it is being rendered. So, while a website viewed from within a traditional desktop browser might be rendered one way, ... |
Zeon Solutions Creates Award Winning Web Site For Loom Décor - Seattle Post Intelligencer
Zeon Solutions Creates Award Winning Web Site For Loom Décor Seattle Post Intelligencer Zeon Solutions, a rapidly growing enterprise e-commerce provider, announced that the new web site they created for Loom Décor won the Strategic Designer award from BuyerZone. Loom Décor is a design it yourself décor web site specializing in custom ... |
New Alabama.gov Introduces Efficient Features to State's Official Website - MarketWatch (press release)
New Alabama.gov Introduces Efficient Features to State's Official Website MarketWatch (press release) MONTGOMERY, Ala., May 17, 2012 (BUSINESS WIRE) -- The State of Alabama recently unveiled its new and improved official website, http://Alabama.gov , introducing the most user-friendly design yet. With the award-winning website's sleek and sophisticated ... |
Create a Designer Room With New Site 'Project Decor' - Mashable
Create a Designer Room With New Site 'Project Decor' Mashable Genius Idea: Interactive design boards let users upload photographs of their room or furniture and easily combine it with favorite designer rooms to create their own personal design. Want a place to design your perfect room? New website Project Decor ... |
Strategic eMarketing to Sponsor Humboldt Lemonade Day with Website Design and ... - PR.com (press release)
Strategic eMarketing to Sponsor Humboldt Lemonade Day with Website Design and ... PR.com (press release) Internet marketing Humboldt County-based Strategic eMarketing has sponsored the Humboldt Lemonade Day with promotional assistance and website design. Eureka, CA, May 17, 2012 --(PR.com)-- Local marketing company Strategic eMarketing is supporting ... |








