Это действительно то, что лучше всего подходит для CSS.
Скажите, что это ваша структура:
<body>
<div id="main">
<div id="leftSide"></div>
</div>
Я думаю, что вы хотели бы сделать, это дать левой стороне высоту 100% в вашем CSS:
#main {
height:500px; /*this can be whatever height you want for your main div*/
width:700px; /*same with this, for its width*/
background-color:#F00; /*just to show you the effect*/
}
#leftSide {
float:left; /*THIS is where the magic happens, to "pull" it to the left*/
height:100%; /*This makes sure it reaches all the way to the bottom*/
background-color:#00F; /*or any color you'd like (which is a great song btw)*/
width:200px; /*or whatever height you'd like*/
}
Все это предполагает, конечно, что у вас нет лишних полей и отступов для ваших элементов div или других элементов.Вы также можете рассмотреть вариант «Сброс CSS», например this