You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
dmr
в css я писал для этого div'a margin-top:10px; а он отступает не от родительского div'a header , а я не знаю от чего, похоже от окна браузера.
index.php:
css:
*{
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: 100%;
font: 12px/18px Arial, Tahoma, Verdana, sans-serif;
}
a {
color: blue;
outline: none;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
/* Begin of styles for the demonstration (you can remove them) */
a.expand {
width: 150px;
display: block;
margin: 10px 0 0;
}
a.expand:hover {
height: 500px;
}
/* End of of styles for the demonstration */
p {
margin: 0 0 18px
}
img {
border: none;
}
input {
vertical-align: middle;
}
#wrapper {
height: 100%;
width: 100%;
min-width: 1000px;
min-height: 100%;
}
/* Header
—————————————*/
#header {
height: 150px;
background: #FFE680;
}
/* Middle
—————————————*/
#middle {
border-left: 250px solid #B5E3FF;
border-right: 250px solid #FFACAA;
min-height: 100%;
position: relative;
}
#container {
width: 100%;
float: left;
overflow: hidden;
margin-right: -100%;
}
#content {
padding: 0 20px;
}
/* Sidebar Left
—————————————*/
#sideLeft {
float: left;
width: 250px;
position: relative;
background: #B5E3FF;
left: -250px;
}
/* Sidebar Right
—————————————*/
#sideRight {
float: right;
margin-right: -250px;
width: 250px;
position: relative;
background: #FFACAA;
}
/* Footer
—————————————*/
#footer {
height: 50px;
background: silver;
}
/* для меню
————————————--*/
/*
ul.menu_horizont {
display: block;
text-align: left;
font-family: Verdana, Geneva, sans-serif;
font-size: 0.9em;
color: #000;
}
ul.menu_horizont li {
display: inline; //ключик к горизонтальному расположению
margin: 0 !important;
padding: 0;
}
*/
#topmenu {
margin-left: 250px;
margin-top:10px;
background: #ff4432;
}
ul.menu_horizont {
margin-bottom: 0px
font-size: 0.85em;
height:2.8em;
color: #000;
}
ul.menu_horizont li {
display:block;
float:left;
color: #003388;
background-color: #f5f5f5;
text-align:center;
padding: 8px 18px;
margin-right: 2px;
}
ul.menu_horizont a:hover {
color: #333;
background-color: #fff;
}
помогите пожалуйста разобраться
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.