Soda0815
07-25-2009, 11:03 AM
Hi,
how can i solve the following table hack with CSS?
The mid area should be fixed with 1020px, the left and right one should be variable up to the (left/right) browser borders.
Example: 12901
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<style type="text/css">
#left {
height : 50px;
min-width : 75px;
background : url('left.jpg');
}
#mid {
width : 1020px;
min-width : 1020px;
height : 50px;
background : url('mid.jpg');
}
#right {
height : 50px;
min-width : 75px;
background : url('right.jpg');
}
</style>
</head>
<body>
<table style="width:100%; border-collapse:collapse; text-align:center;">
<tr>
<td id="left">left</td>
<td id="mid">mid</td>
<td id="right">right</td>
</tr>
</table>
</body>
</html>
Left Image: 12898
Mid Image: 12899
Right Image: 12900
Thanks a lot
Soda
how can i solve the following table hack with CSS?
The mid area should be fixed with 1020px, the left and right one should be variable up to the (left/right) browser borders.
Example: 12901
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<style type="text/css">
#left {
height : 50px;
min-width : 75px;
background : url('left.jpg');
}
#mid {
width : 1020px;
min-width : 1020px;
height : 50px;
background : url('mid.jpg');
}
#right {
height : 50px;
min-width : 75px;
background : url('right.jpg');
}
</style>
</head>
<body>
<table style="width:100%; border-collapse:collapse; text-align:center;">
<tr>
<td id="left">left</td>
<td id="mid">mid</td>
<td id="right">right</td>
</tr>
</table>
</body>
</html>
Left Image: 12898
Mid Image: 12899
Right Image: 12900
Thanks a lot
Soda