Results 1 to 9 of 9

Thread: Tutorial needed on CSS Box Model

  1. #1
    Elite Member
    Join Date
    Jan 2009
    Posts
    1,086

    Default 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.
      Reply With Quote

  2. #2
    Member
    Join Date
    Jan 2009
    Posts
    33

    Default 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
      Reply With Quote

  3. #3
    Elite Member
    Join Date
    Jan 2009
    Posts
    1,086

    Default 27 Jan 2009 @ 22.56

    Thank you. Will all browsers ever be equal in the way it deals with the box model?
      Reply With Quote

  4. #4
    Super Moderator shalom_m's Avatar
    Join Date
    Jan 2009
    Posts
    495

    Default 27 Jan 2009 @ 23.04

      Reply With Quote

  5. #5
    Elite Member
    Join Date
    Jan 2009
    Posts
    1,086

    Default 27 Jan 2009 @ 23.13

    Thanks for those Shalom. I have bookmarked them and will read them in full soon.
      Reply With Quote

  6. #6
    Gaz
    Gaz is offline
    Member Gaz's Avatar
    Join Date
    Jan 2009
    Posts
    113

    Default 28 Jan 2009 @ 08.12

    The Holy Grail is a great read.
      Reply With Quote

  7. #7
    Member
    Join Date
    Jan 2009
    Posts
    33

    Default 28 Jan 2009 @ 15.46

    You gotta love A List Apart, that website is an awesome site!
      Reply With Quote

  8. #8
    Member bonnit's Avatar
    Join Date
    Jan 2009
    Posts
    163
    Blog Entries
    4

    Default 28 Jan 2009 @ 22.02

    quote
    Originally Posted by shalom_m View Post
    excellent links
      Reply With Quote

  9. #9
    New Registered User
    Join Date
    Mar 2009
    Posts
    19

    Default 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.
      Reply With Quote

Similar Threads

  1. Replies: 3
    Last Post: 1 Mar 2011, @ 14.37
  2. FBML - facebook php tutorial
    By bonnit in forum Website Development Resources
    Replies: 1
    Last Post: 12 Mar 2010, @ 04.36
  3. Tutorial Series: WebProCafe Presents
    By Tom in forum Coffee House
    Replies: 9
    Last Post: 30 Nov 2009, @ 21.25

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •