Internal Styles and External Styles

Discussion in 'Web Programming' started by SexayMistahBee, Oct 26, 2012.

Internal Styles and External Styles
  1. Unread #1 - Oct 26, 2012 at 4:59 AM
  2. SexayMistahBee
    Joined:
    Feb 28, 2006
    Posts:
    2,410
    Referrals:
    0
    Sythe Gold:
    27
    Discord Username:
    SexayMistahBee

    SexayMistahBee Sexiest Bee On Earth
    $50 USD Donor New

    Internal Styles and External Styles

    Never mind, I got my answer!

    [del]so let's say we have two properties for the element p in both an external and internal style sheet.

    1. External style sheet
    p
    {
    color:blue
    font-size:5px
    text-align:left
    }

    2. Internal style sheet
    p
    {
    text-align:center
    font-size:20px
    }

    From what I've learned, the values are inherited from the more specific style sheet, so this for example would end up with the properties for p as
    color:blue
    text-align:center
    font-size:20px

    Does this mean that a property specified in only the external or internal style sheet will be inherited even if it's not specified only in one of the style sheets, and that the internal stylesheets are considered more specific?
    [/del]
     
< Need Someone to shove some PHP code together | html5 help please >

Users viewing this thread
1 guest


 
 
Adblock breaks this site