ubik
01-20-2006, 11:35 PM
Hello and Good Day to you all.
I am having a bit of a problem, I have just finished validating my main page in html and css and both passed now when i try to put the css image at the bottom of my page a strange error occurs. I have all of the text inside an overflow:auto container, when i attempt to put the following code inside the html page within this conatiner, a horizontal scrollbar appears for some reason:
<div style="position:relative;top:150px;left:150px;">
<p>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!">
</a>
</p>
</div>
i added the div style="position:relative;top:150px;left:150px;". The image gets positioned correctly only thing is, I get a horizontal scrollbar, I chose to use position:relative because it is inside an overflow:auto container
here is the CSS for my conatiner:
.box {
position:absolute;
left:330px;
top:180px;
width: 600px;
height: 360px;
border-style: double;
border-color: #990000;
background-color: #ffffff;
border-width: 4px;
overflow: auto;
padding:10px;
}
Any help or suggestions are appreciated, I thank you for your time.
I am having a bit of a problem, I have just finished validating my main page in html and css and both passed now when i try to put the css image at the bottom of my page a strange error occurs. I have all of the text inside an overflow:auto container, when i attempt to put the following code inside the html page within this conatiner, a horizontal scrollbar appears for some reason:
<div style="position:relative;top:150px;left:150px;">
<p>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!">
</a>
</p>
</div>
i added the div style="position:relative;top:150px;left:150px;". The image gets positioned correctly only thing is, I get a horizontal scrollbar, I chose to use position:relative because it is inside an overflow:auto container
here is the CSS for my conatiner:
.box {
position:absolute;
left:330px;
top:180px;
width: 600px;
height: 360px;
border-style: double;
border-color: #990000;
background-color: #ffffff;
border-width: 4px;
overflow: auto;
padding:10px;
}
Any help or suggestions are appreciated, I thank you for your time.