www.webdeveloper.com
Results 1 to 4 of 4

Thread: problems with CSS

  1. #1
    Join Date
    Nov 2005
    Posts
    4

    problems with CSS

    i'm using exeternal style sheet for the body of my pages and I know I am referencing the style sheet ok because i can change other properties but for some reason when I change the font size it does not show font size change on the page. My style sheet code:

    <CODE>
    BODY
    {
    background-color: white;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
    line-height: 16px;
    font-weight: normal;
    font-variant: normal;
    word-spacing: normal;
    }
    </CODE>

    The text on the page is inside a row, cell, and paragraph in that order
    <code>
    <tr>
    <td>
    <p>
    text here
    </p>
    </td>
    </tr>
    </code>

    What am I doing wrong here?

    Thanks,

    Joe

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    What am I doing wrong here?
    Putting it in a table and not using a valid doctype.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    Apr 2003
    Location
    Rosemount, MN
    Posts
    2,287
    maybe try this:

    .font1{
    font-size: 14px;
    }


    <p class="font1">Text here</p>
    My settings

    Browser :: FireFox 1.5
    Resolution :: 1152x864
    Connection :: Cable Modem 2Mbs

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    BODY, table
    {
    background-color: white;
    font-family: Verdana
    .
    .
    At least 98% of internet users' DNA is identical to that of chimpanzees

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