Welcome to Web Design Guide
Web Design Degree Article
. For a permanent link to this article, or to bookmark it for further reading, click here.
10. Want to learn Column Designs with CSS
from: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.
Web Design Degree News
Algonquin Studios Announces Promotions of Web Developer and Software Support ... - Virtual-Strategy Magazine
Algonquin Studios Announces Promotions of Web Developer and Software Support ... Virtual-Strategy Magazine Hussak joined Algonquin as an intern Associate Web Developer in March 2008 and became a full-time, Web Developer I in May of the same year. Over the past four years, Hussak has worked on web design and development projects for clients in a broad ... |
Facebook IPO: Motivation for Advanced Degrees in Web Development & Business ... - College Classes
![]() College Classes | Facebook IPO: Motivation for Advanced Degrees in Web Development & Business ... College Classes While you can't relive the dorm room antics that led to Facebook's eventual creation, you can learn more about educational opportunities in computer science, web design, web development or business management. Earning a degree in technology related ... |
HR Design work teams submit revised recommendations - University of Wisconsin-Madison
HR Design work teams submit revised recommendations University of Wisconsin-Madison An additional 1500 people have attended special sessions with campus organizations or participated in Web chats or interacted via Web polls on the HR Design home page. Hundreds more have submitted comments through the project's email address, ... |
Crack the Hot Jobs Code with Tech Training - SecondAct (blog)
![]() SecondAct (blog) | Crack the Hot Jobs Code with Tech Training SecondAct (blog) Online degree programs. Tech trade schools, such as ITT Technical Institute and DeVry University, offer online associate and bachelor's degrees in subjects such as web design, information systems, and network systems administration. 2. |
Aquino upbeat about link to North, South expressways - Malaya
Aquino upbeat about link to North, South expressways Malaya By A Web design Company President Aquino yesterday extolled the benefits of the two proposed road projects that would link the northern and southern Luzon expressways saying it would ease the transport of goods, services and people to and from their ... |




