40 users online (0 members and 40 guests)  

Thread: Advanced Tables


  Results 1 to 3 of 3

Related

  1. Replies: 2
  2. Advanced Browser ~ Do you know of it.    Forum: General Discussion
    Replies: 4
  3. Replies: 2
  4. Advanced redirecting in Javascript    Forum: Javascript Forum
    Replies: 2
  1. #1
    James Hawkle's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2002
    Posts
    5

    Advanced Tables

    I'm in the middle of renovating my page. I'm trying to pull of some pretty fancy HTML moves, and one of them involves either setting a cell's height to a fixed point, or setting up a background that doesn't repeat in the cell.

    I haven't heard of such a way to define a cell's height, but if there is a way, i'd really like to hear it.

    I do know, however, that there is a way to prevent a background to not repeat, but I don't know how to apply it to a table cell. Heres the code that will keep a background from repeating, as well to keep it from scrolling up or down, and even change the scroll bar color:

    Code:
    <style type="text/css">
    <!--
    body{background-image:url('SA2B_gamen/savs_back.gif');
    background-repeat:repeat-y;
    background-attachment:fixed;
    {scrollbar-base-color:black;scrollbar-arrow-color:gray;}
    -->
    </style>
    Is there any way to apply something similar to a table cell?

    James Hawkley
    ------------------------
    Yeah, I realize it say Hawkle to the left.
    Thats a typo!

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    for the background you could do this:

    Code:
    td.background {
    background-image:url('SA2B_gamen/savs_back.gif');
    background-repeat:repeat-y;
    background-attachment:fixed;
    height: 15px;
    }
    
    -----
    
    <table>
    <tr>
    <td class="background">
    blah
    </td>
    </tr>
    </table>
    I dunno if that'll work, never really seen the CSS commands for a background to not repeat until now mainly because I don't use background images. Just a guess. Not sure 'bout the height command either. Dean, check my work on this lol. I know the td class is enabled in the right way though...

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    That should work, Derek

    Though I would use a different class name than 'background', as background is already an attribute.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread