L
Lanmind
Hello everybody,
On my page here: (***Warning contains a Google Map for those of you
with low bandwidth****)
http://www.dockhawk.com/
I am trying to center two div's vertically against another div using
CSS. The two div's are <div id ="side_bar"> & <div id ="directions">.
The other is <div id ="map">.
The two div's are 80% the height of the map div so I'm basically using
margins to push the two divs down 10% of the map. Which would center
the them with 10% below and 10% above.
Now I understand when I set margins it's set as a percentage of the
document size so I converted 10% of map size to a percentage of
document size and came up with 8.1% (the map div is 81% of the
document size).
I'm don't know why but it seems to be double that, like I set it to
16%.
Any Ideas?
On my page here: (***Warning contains a Google Map for those of you
with low bandwidth****)
http://www.dockhawk.com/
I am trying to center two div's vertically against another div using
CSS. The two div's are <div id ="side_bar"> & <div id ="directions">.
The other is <div id ="map">.
The two div's are 80% the height of the map div so I'm basically using
margins to push the two divs down 10% of the map. Which would center
the them with 10% below and 10% above.
Now I understand when I set margins it's set as a percentage of the
document size so I converted 10% of map size to a percentage of
document size and came up with 8.1% (the map div is 81% of the
document size).
I'm don't know why but it seems to be double that, like I set it to
16%.
Any Ideas?