gerkintrigg Posted October 1, 2008 Share Posted October 1, 2008 Hello. I am making my first fully CSS shopping cart site and have a bit of an issue with re-sizing the background box to fit all the content in. My website (under development) is currently at: http://www.magic2k.com/cornwall_dvd Most pages display fine, but I think that's just a bit of a fluke or the layout as most products fit within the prescribed dimensions. My main problem is that on pages like: http://magic2k.com/cornwall_dvd/products/46 suddenly the text bleeds off the screen, but i want the main white background box to stretch like it does with table layouts. I don't want to have to revert to tables just because of this, but it is driving me a bit nuts. Could anyone help please? (I'm using fire fox, but it seems to be the same in IE too). Quote Link to comment https://forums.phpfreaks.com/topic/126580-solved-auto-sizing-a-background-box/ Share on other sites More sharing options...
gethinw Posted October 2, 2008 Share Posted October 2, 2008 I suspect that you want "overflow:auto;" somewhere in your stylesheet. Quote Link to comment https://forums.phpfreaks.com/topic/126580-solved-auto-sizing-a-background-box/#findComment-655462 Share on other sites More sharing options...
F1Fan Posted October 2, 2008 Share Posted October 2, 2008 I was thinking that it has something to do with the positioning of the elements. I have had this type of problem several times, and it seems to never be the same thing, but rather the use of two or more CSS tags that conflict with one another. I suggest copying small amounts of the code of this trouble page to a test file and when you see the problem show up, the last thing you added is one of the conflicting elements. Quote Link to comment https://forums.phpfreaks.com/topic/126580-solved-auto-sizing-a-background-box/#findComment-655629 Share on other sites More sharing options...
nadeemshafi9 Posted October 3, 2008 Share Posted October 3, 2008 put this at the verry bottom of that background layer i have illustrated where ur bg layer is <div UR BACKGROUND LAYER> <div style="clear: both"></div> </div END OF YOUR BACKGROUND LAYER> Quote Link to comment https://forums.phpfreaks.com/topic/126580-solved-auto-sizing-a-background-box/#findComment-656244 Share on other sites More sharing options...
gerkintrigg Posted October 6, 2008 Author Share Posted October 6, 2008 Great thanks for this! Quote Link to comment https://forums.phpfreaks.com/topic/126580-solved-auto-sizing-a-background-box/#findComment-658166 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.