zahidprimex Posted August 13, 2009 Report Share Posted August 13, 2009 I used these code below to define two settings in css #main{ height:auto; width: 100%; border-color: black; border: 2px; border-style: solid;#mainleft{ height:auto; width: 190px; float:left; border: 1px; border-style: solid; border-color: black;} Then I used these code in html page which produce 2 boxes. <div id="main"><div id="mainleft">KKKK<br><br><br><br><br>KKKKK</div>Zahid<br><br><br><br>Zahid</div> Now I want to put the box mainleft in main so the height of main changes with the height of mainleft.How can I do it? Link to comment Share on other sites More sharing options...
dsonesuk Posted August 13, 2009 Report Share Posted August 13, 2009 #main{ height:auto; width: 100%; border-color: black; border: 2px; border-style: solid;overflow: hidden;} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now