www.webdeveloper.com
Results 1 to 3 of 3

Thread: How to set H1 and other within CSS?

  1. #1
    Join Date
    Sep 2005
    Posts
    1,627

    Question How to set H1 and other within CSS?

    How to set H1 and other within CSS?
    I have all ratio defined for all elements like Hi1, H2...
    How to add correct start size as elements have defined
    em {
    font-style: normal;
    }

    h1{
    font-size: 39px;
    font-weight: normal;
    }

    h2{
    font-size: 20px;
    font-weight: bold;
    }

    - Is there any correct option to define basic value in % to lower H1 and H2 as ratio is defined per all elements?
    - If I define font-size : 63 %; within body element will be all elements according lower or I have to change px to % for each element?
    - What would be base for this to change?
    - How to change than em value for each element not using px?
    Last edited by toplisek; 02-02-2010 at 06:15 AM.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    % cascades.

    Code:
    body {font-size: 50%;}
    div {font-size: 50%;}
    would render divs at 25% of the page's default font size. (0.5 X 0.5)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles