SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2011
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Styling problem - copying from software 'Pages'

    Hi there,

    I am trying to get the CSS working with some text, which should be straight forward.

    For some reason it is not working.

    The problem is that the size of the text is not correct. Whatever size text I enter it just appears as one size! I think the size I am seeing is about 12px. But I need a size about 8px.


    PHP Code:
    <div id="hometext"><td>Garmin nuvi 3790T</td>
        <
    td>Garmin nuvi 300</td>
        <
    td>Garmin StreetPilot 2610</td>
        </
    div
    This is the CSS I am using:

    PHP Code:
    #hometext {
    font-familyarial,sans-serif;
    font-size8px;;
    color#000000;    

    Hope you can help,

    Matt.

  2. #2
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    622
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <div id="hometext"><td>Garmin nuvi 3790T</td
        <
    td>Garmin nuvi 300</td
        <
    td>Garmin StreetPilot 2610</td
        </
    div
    this is invalid code. <td> tags should be inside <table> tags

    vineet

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,297
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Yes, you can't have a div around <td>s. It may also be that a more specific rule is overriding the 8px. Check that with Firebug. (I.e. click on the element in Firebug--or another browser's dev tools [via Inspect element]--and see what font style is top of the list.)

  4. #4
    SitePoint Evangelist
    Join Date
    Mar 2011
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes - this is working right now.


Bookmarks

Posting Permissions

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