hi i am just trying to change width and height of .content class. but its giving me like 100px of width and 100% of height even if i don't mention. i have tried removing float but stil not working.what is the reason?
<!DOCTYPE html> <html> <head> <style> body{margin:0} #navbar{ width:100%; background-color:black; height:50px; padding: 0 150px 0 150px; position:relitive; } #logo{height:60px; width:90px; } #container{ background-color:#E6E6E6; width:78%; margin: auto; height:1000px; text-align:center; } #navTable{ color:white; position:absolute; top:10px; left:300px; font-size:1.5em; } #navTable td{padding:0 10px 0 10px; border-right:1px solid white; } #container div{width:32%; height:100%; border:1px solid black; float:left; } .content{ /*this is not working[enter background-color:yellow; } </style> </head> <body> <div id='navbar'> <img id='logo' src="http://i.cdn.cnn.com/cnn/.e/img/3.0/global/misc/cnn-logo.png"/> <table id='navTable'> <tr> <td>Home</td> <td>News</td> <td>Money</td> <td>Entertainment</td> <td>Travel</td> </tr> </table> </div> <div id='container'> <div id='leftDiv'> <div class='content'>hhhh</div> <!--this--> </div> <div id='middleDiv'></div> <div id='rightDiv'></div> </div> </body> </html> output: it only gives me like 100px wide div here .