Skip to content

Instantly share code, notes, and snippets.

@stden
Created January 16, 2013 14:02
Show Gist options
  • Save stden/4547309 to your computer and use it in GitHub Desktop.
Save stden/4547309 to your computer and use it in GitHub Desktop.
Вёрстка 10% - 85% - 5% с селекторами
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
div {
border: 1px #000000 solid; /* Для всех div-ов делаем границу */
}
#common_div {
height: 600px;
width: 100%;
}
#div1 {
height: 10%;
}
#div2 {
height: 85%;
}
#div3 {
height: 5%;
}
</style>
</head>
<body>
<div id="common_div">
<div id="div1">div #1</div>
<div id="div2">div #2</div>
<div id="div3">div #3</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment