Hey guys,
I’m having a slight issue with a section on my site, I was wondering if you guys could clear help with it.
What happens is when I stack two divs on top of one another, they appear differently in Chrome and FF/IE.
In Chrome they just stack one on top of the other… There’s no space between the two. This is how I want it to look.
In FF and IE there’s a space between the two… I can’t get it to close by eliminating margin or anything like that.
How it appears in Chrome (and how I want it to appear in all browsers):
How it appears in Firefox and IE (the arrow pointing is to illustrate the space I was talking about):
Does anyone know why FF/IE is rendering this differently from Chrome?
CSS Below:
body {
margin: 0;
padding: 0;
background-image: url(‘bg.jpg’);
width: 100%;
}
#container {
width: 70%;
background-color: white;
min-height: 100%;
position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
opacity: 0.92;
}
#header {
width: 70%;
height: 50px;
background-color: black;
margin: 0;
padding: 0;
opacity: 0.8;
position: fixed;
}
#header ul {
float: right;
}
#header ul li {
display: inline;
color: white;
font-family: verdana;
margin: 10px;
}
#section {
width: 70%;
margin: 0px auto;
}
h1 {
font-family: georgia;
font-size: 80px;
text-align: center;
}
h2 {
font-family: verdana;
font-size: 26px;
text-align: center;
}
h3 {
font-family: georgia;
font-size: 30px;
text-align: center;
color: white;
margin-bottom: 5px;
}
h4 {
font-family: verdana;
font-size: 26px;
}
p {
text-align: center;
}
p1{
font-family: Georgia;
font-size: 20px;
font-weight: bold;
}
p2{
font-family: Verdana;
font-size: 14px;
}
p3{
font-family: Verdana;
font-size: 14px;
color: white;
}
#left {
width: 45%;
float: left;
word-break:break-all;
}
#right {
width: 45%;
float: right;
word-break:break-all;
}
.icon {
display: block;
margin-left: auto;
margin-right: auto
}
#about1 {
background-color: black;
width: 100%;
height: 30%;
margin: 0px auto;
}
#about2 {
background-color: grey;
width: 100%;
height: 400px;
margin: 0px auto;
border: none;
}
.picture {
width: 20%;
height: 200px;
text-align: center;
padding: 1%;
}