SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot choazart's Avatar
    Join Date
    Feb 2002
    Location
    So. California
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry text padding within a table cell AAaarrrggghhhh!!!

    Hello all,

    I have been going nutso trying to figure out why my padding seems to work on the left and right but not on the top and bottom.

    I have tested the class and it is recognizing everything but the top and bottom padding instructions.

    I have pasted my code below for your analysis.

    Thanks in advance for your help!

    -----------------

    .navlink {

    font-weight: bold;
    color:#000000;
    font-family: Verdana, Arial, Helvetica, Sans-Serif;
    text-decoration:none;
    font-size: 10px;
    font-style: normal;
    line-height: normal;
    padding: 10px 0px 10px 17px;
    }

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works fine for me, but you have to attach this to a block-level object, like a TD or TH or DIV. Otherwise, you'd need to use margin in the place of padding.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





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
  •