liloe
It's my birthday today!
- Joined
- Jan 25, 2004
- Messages
- 4,168
Oooook, I have a little problem with CSS and I thought hey, maybe someone around here has done some work with it.
Basically I want to adapt the following HTML structure to CSS:
Now the problems are the following:
Any ideas?
Basically I want to adapt the following HTML structure to CSS:
Code:
<table width="90%" border="1">
<tr>
<td width="20%"></td>
<td width="80%"></td>
</tr>
</table>
Now the problems are the following:
- the height should be fit to content. This is no problem with 1 line using height:1.5em; but with multiple lines it's getting tricky. It seems to kill background-color when I don't use the height attribute :<
- % values don't seem to work regarding the width of the complete HTML page
- Everything needs to be relative, so that the zoom function of the browsers works correctly
Any ideas?