Web Design Forums

Welcome! Please register or log in: Forgot your password? Why register?
You are here: Web Design Forums » Web Design Help » HTML and CSS Help » Resources for learning how to use CSS for layout RSS

Resources for learning how to use CSS for layout

This thread was started by karinne and has been viewed 4315 times, and contains 14 replies, with the last reply made by MadRukus.
Post Reply
1
355 points at 96% Repute
Posted January 5 '07 at 01:29 PM
      Posts: 1,608
As the title says, here are a few links I've gathered over the years on "How to use CSS for layouts". This list has links to information on "why" you should use DIV/CSS for layouts and "how" to use them with tutorials and code.

Why
A better way to build your website
Why tables for layout is stupid: problems defined, solutions offered
Ten ways to speed up the download time of your web pages
Nested Tables: About the (ab)use of tables as layout tools in webpages.
Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS
Why go table free?
Why avoiding tables (for layout) is important
Throwing Tables Out the Window
Integrated Web Design: The Meaning of Semantics (Take I)

How
BonRouge's layouts
pmob.co.uk layouts
newguyinennis layouts
The Noodle Incident: CSS Boxes
glish.com - CSS Layout technique
bluerobot.com - Layout Reservoir
Alistapart - In Search of the Holy Grail
Alistapart - Creating Liquid Layouts with Negative Margins
Alistapart - Faux Columns

Books
Designingwith Web Standards (2nd Edition) by Jeffrey Zeldman
Web Standards Solutions: The Markup and Style Handbook by Dan Cederholm
Bulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS by Dan Cederholm
CSS Mastery: Advanced Web Standards Solutions by Andy Budd, Simon Collison, Cameron Moll

There's a good start. Feel free to add some more. And let's try to keep this thread with resourceful links. If you have a question, create a thread.

edit
  • 2007-02-21: Added some "why" links
  • 2007-06-06: Added a "how" link
[a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
I'm also on: virb - facebook - twitter - flickr - del.icio.us
Last edited June 6 '07 at 10:42 AM by karinne. Reply

Advertisement Register for free to hide these ads and participate in discussions!

2
735 points at 100% Repute
Steax, Say No To Table Layouts! Home page   Private message  
Posted January 5 '07 at 07:33 PM
      Posts: 1,168
Great resources there, I'll add to them when I get a chance. It looks like you're going on a crusade against tables, heh.

I don't know if drop-down menus are parts of layouts, but I consider them to be, as they are alternatives to common, collumn menu.http://www.htmldog.com/articles/ has plenty of articles, also regarding layouting forms with CSS, and also it shows the Suckerfish script which enables the :hover pseudo for IE.

3
355 points at 96% Repute
Posted January 8 '07 at 02:46 PM
      Posts: 1,608
I was more looking at the layout in terms of understanding the position and float properties of CSS and how to use them properly. How to create certain layouts like 2 columns fluid or 3, etc...

To me, drop-down menus are just style I guess within the layout.

Did that make sense?
[a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
I'm also on: virb - facebook - twitter - flickr - del.icio.us
Last edited January 8 '07 at 02:47 PM by karinne. Reply

4
View jesse1's reputation
jesse1, WDF Noob Private message  
Posted April 5 '07 at 06:20 AM
      Posts: 7
http://cssplay.co.uk has some good script too!

I also found some videos about CSS on YouTube might look for that too.

5
1 points at 100%
Posted June 13 '07 at 06:05 PM
      Posts: 15
also if your a beginner you can go to
http://www.w3schools.com/css/

i personaly learned alot there

6
View ehavel's reputation
ehavel, WDF Noob Home page   Private message  
Posted September 7 '07 at 08:28 PM
      Posts: 2
this is good stuff! many thank youz! - ed havel

7
136 points at 99% Repute
seanmiller, Must... Post... More...! Home page   Private message   E-mail
Posted September 8 '07 at 06:51 AM
      Posts: 868
Just remember that tables are still fine if people want to use them... many very high-traffic sites use them, I feel that sometimes the forum can seem to alienate people who want to work that way but it's unfair as the important thing is to ensure the sites work, whatever way it's done.

Tables for layout might not fit in with the whole XHMTL/CSS ideal but sometimes people feel that it is easier to do it that way, and I don't think it really matters in the bigger scheme of things... somebody who codes with tables and CSS is doing a fine job... let's just get rid of those horrible font tags, eh, and worry about "purity" when it comes to less important factors later... usability is the main factor, and whilst tables don't degrade as well in many instances as divs they certainly aren't "evil"...

Sean (knowing he's going to stir up a hornet's nest... yikes!)
Last edited September 8 '07 at 06:53 AM by seanmiller. Reply

8
735 points at 100% Repute
Steax, Say No To Table Layouts! Home page   Private message  
Posted September 9 '07 at 12:01 AM
      Posts: 1,168
As this is a resource thread, it might not be appropriate to discuss here, Sean. The main problem is, for a quick reply, tables are often used in very evil manners. We probably won't hate them so much if people made one big table for their layout, but no, they often have dozens of tables on one page. At that point code bloat is really high. And tables aren't exactly easy to HTML-code... They're associated with WYSIWYG editors more.
~ Rizqi P. Djamaluddin - Jakarta, Indonesia
Last edited September 9 '07 at 12:01 AM by Steax. Reply

9
View pollack123's reputation
Posted August 20 '08 at 04:39 AM
      Posts: 1
www.friendsofed.com/ i have learnt a lot by this. here you can get lots of information about CSS and HTML and all. If you want to get more information you can take help from any professional company bcoz i have taken help from http://www.infysolutions.com. I believe it is extremely helpful to everyone .

10
185 points at 100% Repute
aburningflame, Must... Post... More...! Private message  
Posted February 16 '09 at 06:21 PM
      Posts: 427
Two suggestions when coding with css, and Ive learned this the hard way and through trial and error.

#1
The first line in your css should be
*{margin: 0; padding: 0;}

This resets the margin and padding for all elements and normalizes the padding/margins across different browsers.

#2
Encase your page in a wrapper/container div
<div id="wrapper">
<!--all code goes here-->
</div>

Make this wrapper div a fixed width (usually <1024 for 1024x768 resolution).

These two tips will solve a lot of cross browser and cross resolution issues.

Hope this helps

11
View ericjogja's reputation
ericjogja, WDF Noob Private message  
Posted March 26 '09 at 07:48 AM
      Posts: 1
thanks for the information, as a beginner ... this information is very useful for me
regard

12
View ShaneStrong05's reputation
Posted April 13 '09 at 08:20 PM
      Posts: 26
Chronocalamity - I completely agree with you when I first started with web design I used w3schools.com for learning everything. The only thing that I would suggest is if you don't go all the way through the catigory you are learning it kind of teaches you some bad things.
Last edited October 7 '09 at 03:23 AM by Wired ("removed link"). Reply

13
View wjordan's reputation
Posted October 20 '09 at 02:55 PM
      Posts: 6
Thanks these look great!

14
View kiranshotgun's reputation
Posted November 21 '09 at 04:20 PM
      Posts: 4
That's a nice way to keep things centered. Thanks for sharing the tips
Last edited November 21 '09 at 04:46 PM by Wired ("removed pseudo-sig"). Reply

15
0 points at %
Posted January 30 '10 at 05:54 PM
      Posts: 51
That is a great list of resources, here is one more to add under the layout section w/ pretty much all the different variations you can think of.
All the books listed are great have read all but one of them. I really liked CSS Mastery very well written great examples.
http://www.code-sucks.com/css%20layouts/

Post Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[CSS] Customize your form with CSS - part 1 karinne Coding Articles & Tutorials 7 August 20 '06 10:38 PM
What exactly can you do with CSS, I'm just starting out spasm attack HTML and CSS Help 6 August 19 '06 01:30 PM
Lots of questions relating to HTML and CSS stargate3216 HTML and CSS Help 18 April 7 '06 05:26 PM
Can basic HTML and CSS make a good site?/Coding: College or web resources? wilson General Design Discussion 8 March 22 '06 09:02 AM