Welcome to Design Guide
Web Design Templates 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.
Web Design Templates News
Professional Printing Services Added to The Funeral Program Site and The ... - PR Web (press release)
Professional Printing Services Added to The Funeral Program Site and The ... PR Web (press release) As the result of having the largest online selection of funeral program templates available on its website, CMW's customer base has experienced continual growth, and the site has many returning, satisfied customers. Customers Michelle and Amos Benning ... |
Mobile Website Optimization – You've Got Options - Marketing Land
![]() Marketing Land | Mobile Website Optimization – You've Got Options Marketing Land Fast time to market: since the vendor isn't touching the brand's .com environment and most are working with a library of basic templates and code snippets that are re-purposed for multiple clients, a mobile site can be up and running in a matter of ... |
Web Design Company Saudi Arabia, HostGee Web Design Launches Flash Banner Services - openPR (press release)
Web Design Company Saudi Arabia, HostGee Web Design Launches Flash Banner Services openPR (press release) Web Design Company Saudi Arabia specializes in developing quality driven and spectacular looking flash banners, flash templates, flash intros, logos, and slideshows for websites. These can also be used or placed as an ad on any other website. |
Web Design Company Saudi Arabia, HostGee Web Design Launches Flash Banner Services - Virtual-Strategy Magazine
Web Design Company Saudi Arabia, HostGee Web Design Launches Flash Banner Services Virtual-Strategy Magazine Makkah, Saudi Arabia, May 13, 2012 --(PR.com)-- Web Design Company Saudi Arabia specializes in developing quality driven and spectacular looking flash banners, flash templates, flash intros, logos, and slideshows for websites. |
New Xara Photo & Graphic Designer MX and Xara Designer Pro X - San Francisco Chronicle (press release)
New Xara Photo & Graphic Designer MX and Xara Designer Pro X San Francisco Chronicle (press release) Xara Designer Pro X is the flagship of the Xara product line, the ultimate all-in-one creative tool.. As well as the website design features, it provides tools that might typically be required by professional designers such as PANTONE®, CMYK, ... Xara releases Photo and Graphic Designer MX 8, Designer Pro X 8 |
Creative Media Web Company Launches New Line of Templates Compatible With ... - San Francisco Chronicle (press release)
Creative Media Web Company Launches New Line of Templates Compatible With ... San Francisco Chronicle (press release) Not only has this company been developing websites for over a decade, Creative Media Web has recently launched a new line of design templates compatible with Microsoft Word, Publisher, and Apple iWork Pages. Templates are available for the wedding and ... |
Zoho Sites Adds Website Building to Already Strong Portfolio - CMSWire
Zoho Sites Adds Website Building to Already Strong Portfolio CMSWire Zoho Sites makes use of familiar themes with its website builder, and that includes drag-and-drop design layouts, one-click publishing, simple form builders, templates and pre-made social media widgets. Furthermore, because Zoho sites is in available ... |









