Jump to content

moving the box up


niche

Recommended Posts

If margin-top:7px; moves the content inside a box down 7px, how do you move the box, itself, up when the top of a box is already floating against the bottom of the margin that's above it?Where the height of the anchor box is 40px and the height of the divs hasn't been set as in:

<?phpecho '<div><img class="logo" alt="savebot logo" src="savebop6.png" /><div>';echo '<div onmouseover="showmenu(\'all\')" onmouseout="hidemenu(\'all\')">';echo '<div style="clear:both;margin-bottom:20px;"></div>';echo '<div style="margin-left:60px;">';echo '<div class="one">View All Bops</div>';echo '<div class="one"><a class="three" href="newest1st.php">Newest First</a></div>';echo '<div class="one"><a class="three" href="newest1st.php">Biggest Percent Off</a></div>';echo '<div class="one"><a class="three" href="newest1st.php">Most Money Off</a></div>';echo '</div>';echo '</div>';?>

Link to comment
Share on other sites

Thanks on that neg margin.I thought margin-top: would move content inside a box. Apparently not. Which property does that please?

Link to comment
Share on other sites

Padding properties move content inside a box.Thanks to ShadowMage for that neg margin. I would not have thought of that.Niche

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...