Forum Moderators: not2easy
I'm new to using CSS and I'm running into a problem with resizing my window. The header looks fine with I start with a browser of 700px or bigger in width, but when I shrink the window, everything from the right gets mashed over the left side stuff. I tried setting the min width for my header but it's not doing what I had hoped.
I have two images for my main header and a background black color. One image is aligned left, the other right. This works great when I size the screen bigger than normal (black appears between the two images and it looks fine). But I run into the above problem when sizing it smaller. The right image just overtakes the left one. I would rather have the left image nolonger resize smaller past 700 pixels. Can someone give me a lead?
Thanks!
Dan
here is the portion of the index.html:
<body>
<div id="main-title"></div>
<div id="end-title"></div>
</body>
and the css file:
#main-title {
margin-bottom: 0;
margin-left: 0;
margin-right: 140px;
padding-right: 170px;
font-size: 1.3em;
letter-spacing: 5px;
text-align: left;
background-image: url(../newtitle.gif);
background-repeat: no-repeat;
background-position: top left;
background-color: #000000;
height: 75px;
color: #838383;
padding-top: 0px;
min-width: 700px;
min-height: 75px;
width: 750px;
}
#end-title {
margin-bottom: 0;
margin-right: 0;
padding-right: 0px;
font-size: 1.3em;
letter-spacing: 5px;
text-align: left;
background-image: url(../titleend.gif);
background-repeat: no-repeat;
background-position: top right;
background-color: #000000;
height: 75px;
position: absolute;
top: 0px;
right: 0;
width: 170px;
color: #838383;
padding-top: 0px;
position: absolute;
padding-left: 0px;
}
By the way, your second div has position:absolute twice.