1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Large TD text in IE

Discussion in 'CSS' started by forumbulge, Feb 28, 2006.

  1. #1
    This is the problem page-

    http://www.forumbulge.com/packages.php

    I have my body tag styled as 11px font size, but for some reasons the TD text on the table in the content part of this page is showing as large text in IE.
    Even if i specify a TD font size in the external CSS file, it will still be large in IE.

    All other text contained in other tables is the right size, it's just this table.

    I dont really want a workaround fix, I just want to work out why it's happening.

    Any ideas?
     
    forumbulge, Feb 28, 2006 IP
    GRIM likes this.
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    You only specified body text size and didn't include TD. TD will have to be specified in the CSS as well. How did you specify a td font size?

    This may do it;

    td#content {
    font-size:11px;
    }
     
    Colleen, Feb 28, 2006 IP
  3. forumbulge

    forumbulge Guest

    Messages:
    483
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I did a general td font size specification which did nothing so I deleted it.

    I'll try it with the content ID (I thought i did try this, but i'll have another look).
     
    forumbulge, Feb 28, 2006 IP
  4. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #4
    You did but you put "#tdcontent {" that won't work it has to be "td#content {" OR "#content td {"
     
    Colleen, Feb 28, 2006 IP
  5. forumbulge

    forumbulge Guest

    Messages:
    483
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That doesn't work which I find strange.
    So I have tried specifying font size in the body, general td and td id css tags but none of them have any effect in IE.
     
    forumbulge, Feb 28, 2006 IP
  6. forumbulge

    forumbulge Guest

    Messages:
    483
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    my td id is "tdcontent", the div id is "content"

    I tried td#tdcontent {font-size:11px} but that didn't work - I was sure that would fix it.
     
    forumbulge, Feb 28, 2006 IP
  7. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #7
    Give this table it's own id then;

    to

    Then make a #packages id in your CSS and try that.


    Your TD's do not have an ID specified,
    You gave the containing TD the ID, that's not going to help.
    The content in the containing ID is getting the right styling, but the table inside the containing ID will need it's own ID or IE won't know what to do with it, as it seems.
     
    Colleen, Feb 28, 2006 IP
    forumbulge likes this.
  8. forumbulge

    forumbulge Guest

    Messages:
    483
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep you're right. Me and my bad coding.
    All those td's are really bad, I would just rather specify styles in each one than use id's because inheritance always seems to mess me up.

    Anyway, the problem is solved with your #packages id suggestion, thanks! :)
     
    forumbulge, Feb 28, 2006 IP
    Colleen likes this.
  9. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #9
    Awesome, you fixed it! You're welcome.
     
    Colleen, Feb 28, 2006 IP