Inserting Text Into A Table Using CSS

Discussion in 'CSS' started by selfspirit50, Oct 14, 2006.

  1. #1
    I've created a site on photoshop and sliced it as well. How do I add text into a table using CSS? Here's the table I'd like to add text into:


    Code:
    <TD ROWSPAN=5>
    <IMG SRC="images/index_13.jpg" WIDTH=210 HEIGHT=231 ALT="">
    </TD>
     
    selfspirit50, Oct 14, 2006 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    You don't insert text using CSS.

    Is that image there a background image? If so, you make it a background of the td, then you simply write text where that image tag is instead.

    For example:

    <td rowspan="5" class="row">text goes here</td>

    This would go in your stylesheet.

    .row {
    background: url(images/index_13.jpg);
    }
     
    Colleen, Oct 14, 2006 IP
  3. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can actually insert a limited amount of content using pseudo-element selectors, but this isn't the time nor place for it.
     
    penagate, Oct 15, 2006 IP