blade52x
06-17-2007, 11:52 AM
I made a div in the css with the following properties:
navbar.php
#navbar {display:block; float:left; width:164px; height:500px; border-bottom: 1px solid rgb(0,0,0); border-right:1px solid rgb(0,0,0)}
As you can tell it's my left nav bar. Now, I made another div on a separate php page which is supposed to show the information in the available space to the right of this nav bar.
main.php
#recent {margin:10px 10px 10px 10px; width:550px; height:200px; border:2px solid rgb(0,91,168)}
The problem is, the div #recent is overlapping #navbar in FF. In IE it displays to the right. I would just center #recent, but it would not center the same in both browsers since the margins for #recent are different in each one.
How can I fix this overlapping problem? Thanks.
navbar.php
#navbar {display:block; float:left; width:164px; height:500px; border-bottom: 1px solid rgb(0,0,0); border-right:1px solid rgb(0,0,0)}
As you can tell it's my left nav bar. Now, I made another div on a separate php page which is supposed to show the information in the available space to the right of this nav bar.
main.php
#recent {margin:10px 10px 10px 10px; width:550px; height:200px; border:2px solid rgb(0,91,168)}
The problem is, the div #recent is overlapping #navbar in FF. In IE it displays to the right. I would just center #recent, but it would not center the same in both browsers since the margins for #recent are different in each one.
How can I fix this overlapping problem? Thanks.