#EANF#
I want to divide my page in to two section using DIV tag, but the output
is not correct.
This is my code:
...
<body>
<div style="float:right; width: 20ex;background-color:red;">
my menu content....
</div>
<div style="background-color:green;">
<table style="width:100%; border-style:solid;border-width:5px;
border-color:yellow;">
<tr><td>some content...</td></tr>
</table>
</div>
</body>
The right div not starts at end of left div and the end of table is out of
left div. The table's width should be same the rigth div but it's width is
same as page width.
I can't set fixed width to elements. What is wrong?
No comments:
Post a Comment