100% height not working on child div in browser

The HTML Code :

		<div class="main-c">
				<div class="slide-c">
							<li><img src="" alt="temporary"></li>
							<li><img src="" alt="temporary"></li>

The CSS Code :

	padding: 0;
	margin: 0;
	position: relative;
	margin: 20px auto;
	width: 80%;
	min-width: 260px;
	max-width: 800px;
	border:10px solid #fff;
	box-shadow:1px 1px 10px rgba(0,0,0,.5);

Remove the vertical scrollbar but still accommodate varying content


I am working on replacing a table based website that has boxouts for news. However, although I have the design as I want it I cannot get the outer wrapper to extend further down the screen unless I use overflow auto.

I just want the content to increase the height of the web page. This is the link to the present web page: http://www.xyzweb.co.uk/test/singlecolumn2v1.php

thanks for any help Smile


How do I find the height of a control that lacks a 'style' attribute?

I have a control in my page that I need to know the height of. How do I find out the height, if it lacks a css style attribute for height?
The reason I need to do this is that the control is an asp.net control, its a "textbox". It does not have a style property, as far as I can see.
After I obtain the height, I want to change it programmatically, which I know how to do (just set the style.height property)

Unable to Stretch the Background Height to 100%

Hello, i have created a html/css version of one of my psds and pretty much everything is working fine, just the background image or the container div to which background image is assigned is not stretching vertically to 100%.

Here is the Link to Live version of What i have Done.
<a href="http://myspicylife.info/new/" rel="nofollow">http://myspicylife.info/new/</a>

This is the CSS for the Main Container.

#maincontainer {
    background-image: url("img/bg.jpg");
    background-repeat: repeat-y;
    height: 1750px;
    margin: 0 auto;
    width: 900px;

please help 3 column height and overflow problem

Hi guys.

this is my first post.. Party
I am improving my css layout and i have encountered a certain problem with it..
I have a 3 column site all my side navs are in the left (.side1 and .side2) and the content is in the right (.content) wrapped with a container (.container).

What i want in my template is if my content overflows both side navs should follow the height of the content.

Syndicate content