![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
div.halfleft { float: left; left: 0; width: 50%; padding: 0 4px 0 0; } |
|
I tried with Konqueror, Opera, Mozilla and Firefox. It works as expected only in Opera. Everywhere else the two tables which should be side by side with a fixed space of 8px in between are instead, the tables on the left and on the right but the one under the other. |
#3
| |||
| |||
|
|
div.halfleft { float: left; left: 0; width: 50%; padding: 0 4px 0 0; } The "left" box offset property only works on positioned elements. It appears that you are new to CSS, check out the box model: http://www.w3.org/TR/CSS21/box.html |
|
Note that padding is added to a specified width, 50% + 4px thus ends up larger than 50%. |
![]() |
| Thread Tools | |
| Display Modes | |
| |