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
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Html Table Help Please!!!

    How do I make the background of a table or call a picture that I have?

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if your asking how to set a image as the table background
    the you should use css you can use html aswell but im not
    quite sure i believe it is

    <table background="images/image.img">

    or

    <tr background="images/image.img">
    <td background="images/image.img">

    or

    instead of html backgroun attribute use

    style="background: url(images/image.img); background-position:50% 50%;"

    u can use the styles to position the background something that u can not do with html. The positioning is set to center the image.
    Hairynugs


    Simple is best.

  • #3
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh thx a lot man ill go try it!

  • #4
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK. How do i make a table with CSS?

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are a couple of ways to apply style information
    localy and or inline which i have already demonstrated above.
    If u are just starting with css i recomend applying style sheets localy. also u can apply them bettween the <style> & </style>
    tags located in the head section of your page example:

    Code:
    <html>
    <head>
    <title>TITLE</title>
    <style>
    table { background: url(images/image.img); }
    </style>
    </head>
    <body>
    <table>
    <tr><td>TABLE DATA</td></tr>
    </table>
    </body>
    </html>
    
    or
    
    <html>
    <head>
    <title>TITLE</title>
    </head>
    <body>
    <table style="background: url(images/image.img);">
    <tr><td>TABLE DATA</td></tr>
    </table>
    </body>
    </html>
    you can also link to an external style sheet but i wont get into that if you want to learn more about css click herehttp://www.devguru.com/Technologies/...css_intro.html

    Sorry so sloppy kinda typed it on the fly!
    Hairynugs


    Simple is best.


  •  

    Posting Permissions

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