Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2007
    Posts
    217
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Table to CSS help

    Hey guys,

    I was wondering if you guys could help me convert this to css:

    Code:
    <table cellpadding='0' cellspacing='0'>
    <tr>
    <td><img src='images/p_l.png'></td>
    <td background='images/p_m.png' height='28'><center><font color='#C855AA'><b>Romance</b></font></center></td>
    <td><img src='images/p_e.png'></td>
    </tr>
    </table>
    What is does is has an image-repeat-image, it creates a label around the text in the middle.

    The reason i want this in css is because whenevere i use this on the site, the table forces a new line and I'd rather the table be on the same line.

    IGN: label thing

    etc.

    Any help or directions/tutorials? Thanks in advance!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,858
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Could you please post a link to your page(at least a sample)? It's hard to grasp the expected output from the above code only. Are you using it inside a form?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    217
    Thanks
    9
    Thanked 0 Times in 0 Posts
    http://www.palawindforum.com/test.php

    that's how it works with html. But when I place the table say next to some text like

    IGN: Table


    it does this

    IGN:
    Table

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,858
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Are you trying to make a button after all?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    Regular Coder
    Join Date
    Jan 2007
    Posts
    217
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Nope not a button lol. It's to display the users username in a nice fancy label. And the html table does that, only it won't position itself right as it forces to be put on a new line.


  •  

    Posting Permissions

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