SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,923
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Understanding Inheritence

    When you style an HTML tag, is it correct that all of its children inherit from it?

    If so, then if I style <HTML> what is affected?

    What about styling <BODY>?


    Debbie

  2. #2
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    2,000!

    I would imagine styling the html tag would cascade but I've never tested it. Everybody puts the things your talking about on the body tag. And yes some things will cascade but not all. Things like font size and font type and line height will. background color, margin, height, etc will not. Use or at least look at my initial CSS to see a typical setup. http://www.visibilityinherit.com/cod...s-settings.php. And initial HTML http://www.visibilityinherit.com/cod...l-settings.php


Bookmarks

Posting Permissions

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