|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 04:36 AM. |
|
#2
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > rowspan, colspan css problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|