Welcome to Design Guide
Web Design South Jersey 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 South Jersey News
Returning to South Florida June 7, 2012 2nd Annual Thurgood Marshall College Fund "Distinguished Young Leader" Awards
MIAMI -- The "Who's-Who" in South Florida will fill the room on June 7, 2012 at the 2nd Annual Thurgood Marshall College Fund (TMCF) "Distinguished Young Leader" (DYL) Awards with Bacardi ...
Read more...WebiMax Named a 2012 South Jersey Fastest Growing Company by the Philadelphia Business Journal
WebiMax, a leading search engine optimization firm, was recently named a 2012 South Jersey Fastest Growing Company in a contest jointly conducted by the Philadelphia Business Journal and the Rohrer College of Business at Rowan University.MOUNT LAUREL, NJ (PRWEB) April 25, 2012 WebiMax, a leading search engine optimization firm, was recently named a 2012 South Jersey Fastest Growing Company in a ...
Read more...Globecomm Chooses RealNetworks Helix Universal Media Server to Power Live and On-Demand Video Streaming to Enterprises
Powerful new partnership gives enterprises exceptional live, interactive and two-way corporate communications and training on any device, platform or formatSEATTLE and HAUPPAUGE, N.Y., May 15, 2012 /PRNewswire/ ...
Read more...Jessica Simpson Launches Maternity Apparel
NEW YORK, May 14, 2012 /PRNewswire/ -- Jessica Simpson has expanded both her family and her fashion empire. This Fall, Simpson will debut a full line of maternity apparel, through an exclusive licensing ...
Read more...Cubic Transportation Systems in Partnership With Transport for London and ATOC Scoops Top Award at 2012 International ...
SAN DIEGO, CA-- - Cubic Transportation Systems , Transport for London and the Association of Train Operating Companies have been awarded the prestigious Transport Achievement Award at the 2012 International ...
Read more...Moving On Up to the Northeast Side: Where Can You Climb the Income Ladder?
If you aim to climb the income ladder in the United States, your best bet might be to move north and east—and definitely stay out of the south. A new study from the Pew Charitable Trusts Economic Mobility Project—check out the group's nice interactive map —compares the ability of people to increase their average earnings over time in all 50 states and regions across the country. With increasing ...
Read more...Globecomm Systems Receives $3.5 Million Contract to Provide the U.S. Navy’s First Onboard IP Video Entertainment System
Globecomm Systems Inc. , a leading global provider of communications solutions and service, announced today that as a Cisco Service Provider Video Technology Partner, it has been selected to deliver an enhanced communications distribution infrastructure for the Navy’s newest nuclear supercarrier, Gerald R.
Read more...







