#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    1
    Rep Power
    0

    rowspan, colspan css problem


    Hello, Im trying to define a style for a table data cell that states the colspan and rowspan properties. I am using an embedded style sheet as follows:


    Code:
    <head>
    <style>
    
    #header_layout{column-span: 3; row-span: 2;}
    </style>
    </head>
    <body>
    
    <table>
    <tr><td id = "header_layout">Footer goes here</td></tr>
    </table>
    </body>
    This however has no effect on the page. What am I doing wrong?
    Last edited by darthbagger; October 29th, 2003 at 05:36 AM.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Austin
    Posts
    126
    Rep Power
    12
    I don't think column-span and row-span are valid styles.

    I was thinking maybe you could alter the spans as objects.
    Something like this:
    Code:
    <table id="test" cellspacing="2" cellpadding="2" border="1">
    <tr>
    	<td  id="row2" rowspan="3">test1</td>
    	<td>test2</td>
    </tr>
    <tr>
    	<td>test3</td>
    </tr>
    <tr>
    	<td>test4</td>
    </tr>
    </table>
    <script>
    row2.rowspan = "1";
    </script>
    But I don't think this is possible either.

    If you used ASP or something similar, you could set the span values as variables.

    I could be way off though, I've never tried what you are doing.

    Good luck
    Dusty

IMN logo majestic logo threadwatch logo seochat tools logo