dakata__92
Super Moderator
Колеги кодвам си едно дизайнче, но уви нещо не мисля, че вървя в правилната посока. Начинът по който създавам самият CSS ме кара да си мисля, че греша. Моля ВИ кажете ми на прав път ли съм, добра ли е практиката, която ползвам и най-вече лека помощ с кодирането на footer-чето. Искам да е винаги в края на страницата независимо от дължината и. В момента съм го постигнал, като съм го поставил в div id='main' но това е грешно. Ето кода на CSS-а и самият HTML.
[css]
body{
margin: 0px;
padding:0px;
background: #DCDCDC;
}
#main{
position: absolute;
top: 105px;
left: 60px;
right: 60px;
min-height: 1700px;
margin: 0px;
background: #FFFFFF;
border-radius:5px;
}
#header{
position: absolute;
top: 0px;
left: 10px;
right: 10px;
height: 100px;
margin: 0px;
z-index: 1;
color: #FFFFFF;
background: #191970;
border-radius: 0 0 5px 5px;
}
#footer{
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
min-height: 60px;
background: #F5FFFA;
border: 1px solid #000;
border-radius: 0 0 5px 5px;
}
#left_column{
position: absolute;
top: 5px;
left: 5px;
width: 200px;
min-height: 500px;
margin: 0px;
background: #F5FFFA;
border: 1px solid #808080;
border-radius:5px;
}
#taskMenu{
position: fixed;
bottom: 0px;
right: 5px;
min-height: 100px;
border: 2px;
width: 50px;
background: #FFFFFF;
border: 1px solid #808080;
border-radius:5px;
}
[/css]
[css]
body{
margin: 0px;
padding:0px;
background: #DCDCDC;
}
#main{
position: absolute;
top: 105px;
left: 60px;
right: 60px;
min-height: 1700px;
margin: 0px;
background: #FFFFFF;
border-radius:5px;
}
#header{
position: absolute;
top: 0px;
left: 10px;
right: 10px;
height: 100px;
margin: 0px;
z-index: 1;
color: #FFFFFF;
background: #191970;
border-radius: 0 0 5px 5px;
}
#footer{
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
min-height: 60px;
background: #F5FFFA;
border: 1px solid #000;
border-radius: 0 0 5px 5px;
}
#left_column{
position: absolute;
top: 5px;
left: 5px;
width: 200px;
min-height: 500px;
margin: 0px;
background: #F5FFFA;
border: 1px solid #808080;
border-radius:5px;
}
#taskMenu{
position: fixed;
bottom: 0px;
right: 5px;
min-height: 100px;
border: 2px;
width: 50px;
background: #FFFFFF;
border: 1px solid #808080;
border-radius:5px;
}
[/css]
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Начало</title>
<meta http-equiv='Content-Type' content='text/html; charset= utf-8' />
<meta name="Generator" content="Notepad++"/>
<meta name="Author" content="Paradoxical"/>
<meta name="Owner" content="Paradoxical"/>
<link href='css.css' rel='stylesheet' type='text/css'/>
</head>
<body>
<div id="header" name="top">
</div>
<div id="main">
<div id="left_column">
</div>
<div id="footer">
<a name="bottom"></a>
</div>
</div>
<div id="taskMenu">
</div>
</body>
</html>