Results 1 to 9 of 9
Thread: Tutorial needed on CSS Box Model
- Elite Member
- Join Date
- Jan 2009
- Posts
- 1,086
Tutorial needed on CSS Box Model
27 Jan 2009 @ 22.07 I want to know the ins and outs of the CSS box model without so much detail I end up confused. A tutorial which is newbie friendly.
Hope someone knows of one or has their own article on this.
- Member
- Join Date
- Jan 2009
- Posts
- 33
27 Jan 2009 @ 22.49 This isn't a tutorial, but this is a good resource explaining the box model and hence one of the reasons for the: * {margin:0; padding:0;}
CSS2 - Box model tweaking
- Elite Member
- Join Date
- Jan 2009
- Posts
- 1,086
27 Jan 2009 @ 22.56 Thank you. Will all browsers ever be equal in the way it deals with the box model?
-
27 Jan 2009 @ 23.04 Concise version
Intermediate version
All you ever will want to know about CSS Box Models (dont forget to look at part one of the article too)
- Elite Member
- Join Date
- Jan 2009
- Posts
- 1,086
27 Jan 2009 @ 23.13 Thanks for those Shalom. I have bookmarked them and will read them in full soon.
-
28 Jan 2009 @ 08.12 The Holy Grail is a great read.
- Member
- Join Date
- Jan 2009
- Posts
- 33
28 Jan 2009 @ 15.46 You gotta love A List Apart, that website is an awesome site!
-
- New Registered User
- Join Date
- Mar 2009
- Posts
- 19
Tutorial for CSS Box Model
13 Mar 2009 @ 05.51 The box model in CSS describes the boxes which are being generated for HTML-elements. The box model also contains detailed options regarding adjusting margin, border, padding and content for each element. The diagram below shows how the box model is constructed:
The box model in CSS

The illustration above might seem pretty theoretical to look at, so let's try to use the model in an actual case with a headline and some text. The HTML for our example is (from the Universal Declaration of Human Rights):
<h1>Article 1:</h1>
<p>All human beings are born free
and equal in dignity and rights.
They are endowed with reason and conscience
and should act towards one another in a
spirit of brotherhood</p>
By adding some color and font-information the example could be presented as follows:

The example contains two elements: <h1> and <p>. The box model for the two elements can be illustrated as follows:

Even though it may look a bit complicated, the illustration shows how each HTML-element is surrounded by boxes. Boxes which we can adjust using CSS.
Similar Threads
-
php photo galery script/tutorial required
By ljackson in forum PHPReplies: 3Last Post: 1 Mar 2011, @ 14.37 -
FBML - facebook php tutorial
By bonnit in forum Website Development ResourcesReplies: 1Last Post: 12 Mar 2010, @ 04.36 -
Tutorial Series: WebProCafe Presents
By Tom in forum Coffee HouseReplies: 9Last Post: 30 Nov 2009, @ 21.25



LinkBack URL
About LinkBacks















Long time...
I havent got any spare time at the moment, got my fingers in many...