shaunie Posted September 18, 2011 Share Posted September 18, 2011 Hi, Can anyone help with the gap appearing in the sidebar on this page please? http://www.bhvs.org.uk/index2.php?action=about-us I have tried setting the height to 100% but it doesn't work, any ideas why this is? Quote Link to comment Share on other sites More sharing options...
Amit20 Posted September 19, 2011 Share Posted September 19, 2011 Test your Code in firebug. When you increase your height in firebug console the height of sidebar indeed increases. try min-height:460px around. Hope it helps! Quote Link to comment Share on other sites More sharing options...
shaunie Posted September 19, 2011 Author Share Posted September 19, 2011 Hi, Thanks for your reply, that does work, however I need to keep the minimum height at 380px for the other pages. I was hoping it could stretch beyond this height if necessary... Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted September 19, 2011 Share Posted September 19, 2011 Hi shaunie, The easiest way with the setup you have is to use an image on the container div (#content) and remove the background color and border of #sidebar. so your css could look like this. #content { background: url("http://i51.tinypic.com/11qpojq.png") repeat-y; /* this is an image of 170px with your same colors */ clear: both; float: left; height: 100%; } #content #sidebar { /* removed the color and background */ float: left; min-height: 400px; padding: 10px; width: 160px; } I quickly made an image that does the same as that background color and border, but allows you to increase the height of your page to whatever value you like. you can find/use/download it here: http://i51.tinypic.com/11qpojq.png good luck! cssfreakie Quote Link to comment Share on other sites More sharing options...
shaunie Posted September 19, 2011 Author Share Posted September 19, 2011 Works great thanks Quote Link to comment 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.