Design Guide

Want To Learn Column Designs With CSS Section


 

Want To Learn Column Designs With CSS Navigation

Main Home Page
Tell A Friend about us
Importance Of Validation |
Want To Learn Column Designs With CSS |
Did Your Website Make It To The Visitors Favorite List |
Titles Used In Your Website |
Web Designing And Databases |
Different Kinds Of Websites |
Outsourcing For Web Designing |
Web Designing Principles And Elements |
Common Web Design Mistakes |
Titles Used In Your Website |

List of Design Articles

Want To Learn Column Designs With CSS Best seller

Buy it Now!



Best Want To Learn Column Designs With CSS products

Sitemap

"The library is the temple of learning, and learning has liberated more people than all the wars in history."

by Carl T. Rowan

"Every time I get something under control in my own life, the world provides more material."

by Cathy Guisewite

"I am probably the most selfish man you will ever meet in your life. No one gets the satisfaction or the joy that I get out of seeing kids realize there is hope."

by Jerry Lewis

"Life is what we make it, always has been, always will be."

by Grandma Moses

"Be thankful for what you have; you'll end up having more. If you concentrate on what you don't have, you will never, ever have enough."

by Oprah Winfrey

"Kentucky Colonels... have held out a hand of brotherhood and goodwill to your neighbor, and in so doing have made America an even better place to live."

by Ronald Reagan



Social bookmarking
You like it? Share it!
socialize it

Main Want To Learn Column Designs With CSS sponsors


 

Latest Want To Learn Column Designs With CSS Link Added

INSERT YOUR OWN BANNER HERE

Submit your link on Want To Learn Column Designs With CSS!



The Grand Design
The Grand Design
by Stephen Hawking Leonard Mlodinow
Our Price: $15.39
Used from: $14.98

Understanding by Design, Expanded 2nd Edition
Understanding by Design, Expanded 2nd Edition
by Grant Wiggins Jay McTighe
Our Price: $30.29
Used from: $30.29

Meggs' History of Graphic Design
Meggs' History of Graphic Design
by Philip B. Meggs Alston W. Purvis
Our Price: $46.34
Used from: $43.49

Non-Designer's Design Book, The (3rd Edition)
Non-Designer's Design Book, The (3rd Edition)
by Robin Williams
Our Price: $23.09
Used from: $18.84

How to Design a Great Customer Experience
How to Design a Great Customer Experience
by Fred Wiersema
Computer Organization and Design, Fourth Edition: The Hardware/Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design)
Computer Organization and Design, Fourth Edition: The Hardware/Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design)
by David A. Patterson John L. Hennessy
Our Price: $64.45
Used from: $42.99

The Design of Everyday Things
The Design of Everyday Things
by Donald A. Norman
Our Price: $11.53
Used from: $8.49

 

Welcome to Design Guide

 

Want To Learn Column Designs With CSS Article

Thumbnail example

Want to learn Column Designs with CSS

from: Jon St. George - Designs-By-Jon.com

Almost 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.