Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Css body font size, color and family.

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #275553
    canadacatman
    Participant

    If my body css is:

    body {
    background: #ffffff;
    color: #3a3a3a;
    font-family: Open Sans,sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: 100%;
    margin: 0;
    overflow: auto;
    padding: 0;
    width: 100%;
    }

    Will all my text be that color, size and family through out my entire website unless i change it like here:

    .content a {
    color: #3394de;
    text-decoration: none;
    }

    Thanks

    #275560
    Paulie_D
    Member

    Basically, yes.

    #275563
    canadacatman
    Participant

    May I ask what basically means. Is that not the best option.

    Thanks

    #275564
    Atelierbram
    Participant

    If there is no reset or normalize CSS, then except for sizes on headings like <h1>Heading</h1> e.o. and maybe also form element sizes, and colors on links (that are not within this .content wrapper) – which will be styled by browsers’ default CSS stylesheets. So yes values for font-family and color (except on links) will be inherited, but things like font-weight on labels and b or strong tags and again also headers will most likely be styled by the browser with font-weight: bold.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.