Soldato
Hello,
I've recently been learning (X)HTML and CSS so I decided it was about time I tried to create a proper site. My sister wanted one done for Sims 2, so I started coding, however after only a few hours I kept running into problems. It seemed no matter what tried I just could not got Firefox and IE6 to do the same things, there were also lots of what seemed like browser specific problems. So I'm really in need of some help.
www.perfect-petz.co.uk/oldindex.html
Here is an example:
This is what I would like:
However Firefox doesn't like the border-bottom part and so makes the height for the whole top banner quite a bit bigger than IE6. The problem is solved by removing "-bottom" and strangely the banners are now the same size. I cannot honestly see how removing a 1px line from three sides could cause such a big change in the top banners height.
While we are on the subject, does anyone know if IE6 has the same box model bug that IE5 has? You know where the border and padding properties appearing as part of the width, instead of being added to it. If so, what's the best work around?
Moving on, another somewhat strange thing is to do with the right hand menu column. If you look at it in IE you can see that there is a 1 or 2px white line running down the right hand edge of the browser. It starts from the end of the top banner and ends at the start of the footer. This is not present in Firefox. Is it something I've done wrong or another bug?
There are more, but for now I'd like to see if anyone can help me out with those.
Thanks in advance,
Regards,
Mark
I've recently been learning (X)HTML and CSS so I decided it was about time I tried to create a proper site. My sister wanted one done for Sims 2, so I started coding, however after only a few hours I kept running into problems. It seemed no matter what tried I just could not got Firefox and IE6 to do the same things, there were also lots of what seemed like browser specific problems. So I'm really in need of some help.
www.perfect-petz.co.uk/oldindex.html
Here is an example:
This is what I would like:
Code:
#topbanner
{
height: 100px;
[B]border-bottom: solid 1px #000;[/B]
background-color: #75A1D0;
text-align: center;
}
However Firefox doesn't like the border-bottom part and so makes the height for the whole top banner quite a bit bigger than IE6. The problem is solved by removing "-bottom" and strangely the banners are now the same size. I cannot honestly see how removing a 1px line from three sides could cause such a big change in the top banners height.
While we are on the subject, does anyone know if IE6 has the same box model bug that IE5 has? You know where the border and padding properties appearing as part of the width, instead of being added to it. If so, what's the best work around?
Moving on, another somewhat strange thing is to do with the right hand menu column. If you look at it in IE you can see that there is a 1 or 2px white line running down the right hand edge of the browser. It starts from the end of the top banner and ends at the start of the footer. This is not present in Firefox. Is it something I've done wrong or another bug?
There are more, but for now I'd like to see if anyone can help me out with those.
Thanks in advance,
Regards,
Mark
Last edited: