<td> Width and Background with CSS?

Discussion in 'CSS' started by webgaya, Oct 2, 2006.

  1. #1
    I want effect following HTML from CSS

    <td width="190" background="images/Left-190-23.gif"></td>

    I tried below,

    HTML==========

    <td class="std"></td>

    CSS==========

    .std {
    width:190px;
    background:images/Left-190-23.gif;
    }

    It didn't work!:confused:

    Can anyone help me to achieve this?

    webgaya.
     
    webgaya, Oct 2, 2006 IP
  2. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #2
    .std {
    width:190px;
    background-image: url(images/Left-190-23.gif);
    }
     
    SoKickIt, Oct 2, 2006 IP
  3. webgaya

    webgaya Active Member

    Messages:
    132
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thanks SoKickIt!

    How can I set align and valign in this manner?

    webgaya.
     
    webgaya, Oct 2, 2006 IP
  4. Tyler Banfield

    Tyler Banfield Well-Known Member

    Messages:
    3,027
    Likes Received:
    173
    Best Answers:
    0
    Trophy Points:
    160
  5. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #5
    text-align: left;
    vertical-align: top;
     
    SoKickIt, Oct 2, 2006 IP