Jump to content

Archived

This topic is now archived and is closed to further replies.

aebstract

width 100% problem

Recommended Posts

Eh.. I hate these kinda problems with css. Anyway, I have a div that I have position absolutely top: 0 and left: 576. I want that div to fill in the remainder of the screen, going to the right. I put width 100% but that makes the whole page scroll and makes that div really wide, not just end at the side of the page. www.carbenco.com for the sample, the brown is what should end at the side of the screen, but continues. Here is the css for that div:

[code]#two {
position: absolute; top: 0px; left:576px;
background: url("brownbg.jpg");
width: 100%;
                height: 504px;
}
[/code]


Thanks!

Share this post


Link to post
Share on other sites
Dont use postition use floats.

Float #two to the left and the other div you have to the left too of #two

Try to aviod using absolute postioning. Learnt to use CSS layouts with floats they are alot more easier.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.