QUOTE(sam_benne @ 4 Nov, 2009 - 11:44 PM)

What you can do if you want the content DIV to stay the same size but to have more content, which is what I think you are wanting is in your CSS on the #content part is to give your content DIV a fixed height then to add overflow-y: scroll;
What that does is add an overflow to your div meaning that it will have its on scroll box vertically. But remember this is CSS3 but will still work however, if you want it to be validated on W3C it wont get validated.
Thank you for your consideration. However i do not want to add scroll bar for the content area.
in my page there is a portion "rightnav" when i add more images to this area height of "rightnav" increased. But when i add more items in "content" area height does not increase.
Fallowing is my coding for "rightnave"(html)
CODE
<div id="rightnav">
<img src="images/forsale.gif" style="width: 173px" /> <br />
<marquee direction="up" scrolldelay="150" id="MARQUEE1"><UL><LI><A href=""
target="_self">Hazro... ...... eeee ffff jjj k ggggggggg</A><BR /><BR
/></LI><LI>Wah...............<BR /><BR
/></LI><LI>Islamabad.........</LI></UL></marquee>
<img src="images/yahoo_avatar.gif"/>
</div>
Css for "rightnav"
CODE
#rightnav
{
float: right;
width: 160px;
overflow:hidden;
margin: 0;
padding: 0em;
background-repeat:no-repeat;
height:inherit;
border-color:Maroon;
border-left-style:double;
}
and fallowing is my code for "content"
Css coding
CODE
#content
{
margin-left: 172px;
border-left: 0px solid gray;
margin-right: 165px;
border-right: 0px solid gray;
padding: 1em;
max-width: 36em;
text-align:justify;
background-color:InfoBackground;
overflow:hidden;
}
I think there is no difference in the css for "rightnav" and css for "content" then why the height of "rightnav" increased by adding more objects and can not increased the height of "content" when i add more objects in "content".
This post has been edited by javedparamount: 6 Nov, 2009 - 08:27 PM