aebstract Posted October 15, 2006 Share Posted October 15, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/24014-width-100-problem/ Share on other sites More sharing options...
wildteen88 Posted October 16, 2006 Share Posted October 16, 2006 Dont use postition use floats.Float #two to the left and the other div you have to the left too of #twoTry to aviod using absolute postioning. Learnt to use CSS layouts with floats they are alot more easier. Quote Link to comment https://forums.phpfreaks.com/topic/24014-width-100-problem/#findComment-109656 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.