Archived

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

  • 0

Box Position Is Relative

Question

Posted · Report post

I can't seem to figure this problem out. I am creating the layout for a website I've designed using boxes. I am using CSS margins to position the boxes on the page. The problem is, the positions seem relative to each other. If one moves, it moves another as well.

 

Here's an example of the CSS I'm using:

 

#fbox_96{
margin-top:-15px;
margin-left:30px;
width: 220px;
height: 50px;

}

 

#fbox_103{
margin-top:-35px;
margin-left: -10px;
width: 720px;
height: 50px;

 

So, let's say I change the margin-top for fbox_96. The margin also changes for fbox_103. Any suggestions for a better way to do this? The website is here: http://www.msbeautyphile.com/wp.php/home/

 

Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

Thanks, that's the thing I needed!!

Share this post


Link to post
Share on other sites