www.webdeveloper.com
Results 1 to 2 of 2

Thread: Problem with using em for font size - same 1.25 em - different font sizes in divs

  1. #1
    Join Date
    Jul 2012
    Location
    Vantaa, Finland
    Posts
    125

    Problem with using em for font size - same 1.25 em - different font sizes in divs

    I am using ems for font sizes (1.25) but the font size is different in different divisions.

    First Division is a paragraph, second an ordered list and third a paragraph. You can see the html code here

    The css code is

    Code:
    #main-box {text-align: left;
        font-family: arial,san-serif;
        font-size: 1.25em;
        color: black;
       }
    #listd {font-family: arial,san-serif;
        font-size: 1.25em;
        color: black;
        }
    #main-bxd { text-align: left;
        font-family: arial,san-serif;
        font-size: 1.25em;
        color: black;
        }
    How do I resolve this? Thanks.

  2. #2
    Join Date
    Jul 2012
    Location
    Vantaa, Finland
    Posts
    125
    Life's much easier without making it complicated. I ditched the <ol> and just used plain text with some colouring.

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