southbeach
Programmer
Working on a page with two basic layers
I also have CSS for these layers where I define width, background color and images, font, etc.
I defined width for both at 1000px. In the CSS for banner layer I added an image on the left hand size like so
I saved my changes and as I viewed the page, the banner page extended beyond the 1000px. I then change the width to 835px and it now matches my container layer. 165 is what I have set padding-left to; it is also 5px greater than the width of my image.
All this looks good in FF but not in IE. Questions:
Q. Why is this?
Q. How do I remedy this problem?
Thank you all in advance for your assistance!
Code:
<div id="banner" ...></div>
<div id="container" ...></div>
I also have CSS for these layers where I define width, background color and images, font, etc.
I defined width for both at 1000px. In the CSS for banner layer I added an image on the left hand size like so
Code:
background: #99CC99 url(../img/phpdevlogo.png) no-repeat center left;
I saved my changes and as I viewed the page, the banner page extended beyond the 1000px. I then change the width to 835px and it now matches my container layer. 165 is what I have set padding-left to; it is also 5px greater than the width of my image.
All this looks good in FF but not in IE. Questions:
Q. Why is this?
Q. How do I remedy this problem?
Thank you all in advance for your assistance!