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
volksmarine
Всем привет! Изучаю верстку по самоучителю, все получается кроме парочки моментов, помогите разобраться в чем там ошибка.
Момент первый.
Картинка 1
Картинка 2
У меня браузер не выравнивает блоки как показано на второй картинке из этой книги. Почему так?
Момент второй.
Меню сайта. Тоже из этой же книги-самоучителя.
Код файла menu.html:
Код файла menu.css:
#head {
height: 50px;
width: 100%;
position: absolute;
left: 0px;
top: 0px;
}
#head h1 {
color: navy;
margin-top: 0.2em;
padding-right: 0.5em;
text-align: right;
}
#menu {
color: #c0c0c0;
border-bottom: 1px solid;
border-top: 1px solid;
padding: 2px 10px;
position: absolute;
top: 50px;
width: 100%;
}
#menu a {
color: navy;
font: bold 13px Tahoma, sans-serif;
text-decoration: none;
}
#content {
font-size: 0.8em;
padding: 0.5em;
position: absolute;
left: 0px;
top: 80px;
}
#main {
background: #d9d9ec;
border: 1px solid #404082;
width: 80px;
position: absolute;
left: 10px;
top: 74px;
visibility: hidden;
z-index: 1;
}
#movie {
background: #d9d9ec;
border: 1px solid #404082;
width: 92px;
position: absolute;
left: 92px;
top: 74px;
visibility: hidden;
z-index: 2;
}
#issue {
background: #d9d9ec;
border: 1px solid #404082;
width: 80px;
position: absolute;
left: 173px;
top: 74px;
visibility: hidden;
z-index: 3;
}
#survey {
background: #d9d9ec;
border: 1px solid #404082;
width: 90px;
position: absolute;
left: 245px;
top: 74px;
visibility: hidden;
z-index: 4;
}
#forum {
background: #d9d9ec;
border: 1px solid #404082;
width: 80px;
position: absolute;
left: 322px;
top: 74px;
visibility: hidden;
z-index: 5;
}
#main a, #movie a, #issue a, #survey a, #forum a {
display: block;
color: navy;
font-size: 13px;
padding: 0px 3px;
text-decoration: none;
}
#main a:hover, #movie a:hover, #issue a:hover, #survey a:hover, #forum a:hover {
background: #6c6cb7;
color: #fff;
}
Меню в браузере не работает. Почему не понимаю.
Помогите разобраться.
Edited by volksmarineLink 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.