При верстке блоками (div) при позиционировании блоков с отрицательными margin возникает проблема размещения таблицы с шириной 100% в блоке content, он расширяется и появляется полоса прокрутки, а левый блок navigation уходит в право, сайт резиновый с фиксированной минимальной шириной, можно ли как нибудь избежать этого?
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
andrey-007
При верстке блоками (div) при позиционировании блоков с отрицательными margin возникает проблема размещения таблицы с шириной 100% в блоке content, он расширяется и появляется полоса прокрутки, а левый блок navigation уходит в право, сайт резиновый с фиксированной минимальной шириной, можно ли как нибудь избежать этого?
Html - код
CSS - код
html,body{margin:0;padding:0}
body{background-color: #006c09; font: 76%; font-family: Verdana; font-size: 12px; color: #000000; }
p{margin:0px 0px 10px 10px}
img {border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;}
table, tr, td, th {vertical-align: top;}
h1 {font-weight: normal; font-size: 16px; padding-left: 10px;}
h2 {font-weight: normal; font-size: 14px; padding-left: 10px;}
a{font-size: 12px; color: #91ff6a;}
a:hover{text-decoration: none; color: #fffaad;}
#header {background: url(../images/fon_header.jpg) left top repeat-x; height: 342px;}
#headerright {background: url(../images/headerright1.jpg) right top no-repeat; height: 342px;}
#header_left {background: url(../images/headerleft.jpg) left top no-repeat; position: absolute; top: 0px; left: 0px; z-index: 100; height: 342px; width: 569px;}
#container {min-width: 1000px; width: expression((document.documentElement.clientWidth || document.body.clientWidth) < 1000 ? "1000px" : "auto"); }
#header1 {position: absolute; left: 100px; top: 96px; width: 464px; height: 136px; z-index: 300;}
#content {font-size: 11px; color: #ffffff; padding-right: 78px; text-align: justify; margin-left:425px;}
#content h1 {font-weight: normal; font-size: 20px; color: #fffaad; padding-left: 10px;}
#tra {font-size: 11px; color: #ffffff; text-align: justify;}
#tra h1 {font-weight: normal; font-size: 20px; color: #fffaad; padding-left: 10px;}
#wrapper{float:left;width:100%}
#navigation {float: left; width:364px; margin-left:-100%; border: 0px solid;}
#extra{clear:left; width:100%; height: 190px;}
#ris {float: left; margin-left: 10px; margin-right: 15px;}
#bg_ris {/*background: url(../images/fon_ris.jpg) bottom right no-repeat; width: 146px; height: 180px;*/ }
#ris_image {background: url(../images/fon_ris.jpg) bottom right no-repeat; padding: 0 8px 8px 0;}
#ris_image img {border: 1px solid #00700b; }
#text {}
#text a {font-size: 12px; color: #91ff6a;}
#text a:hover {text-decoration: none; color: #fffaad;}
#polosa{background: url(../images/menu_mid.jpg) repeat-y top left; }
#niz{background: url(../images/menu_bot.jpg) no-repeat bottom left; padding-top: 27px; padding-bottom: 40px;}
#niz a{font-family: Verdana; font-size: 12px;
color:#91ff6a; padding-left: 15px; text-decoration: none; display: block; }
#niz a:hover{background: url(../images/doton.gif) top left no-repeat; text-decoration: underline; color:#fffaad;}
#verh{background: url(../images/menu_top.jpg) no-repeat top left; }
#kontakts {float: left; background: url(../images/fon_kontakts.jpg) left top no-repeat; width: 315px; height: 201px;}
#country {font-size: 11px; color: #00c710; padding-left: 126px;}
#country p {font-size: 11px; color: #00c710;}
#country1 {font-size: 11px; color: #00c710; margin-top: 15px; padding-left: 126px;}
#country1 p {font-size: 11px; color: #00c710;}
#tel {font-size: 11px; color: #fffaad; padding-left: 136px;}
#tel p {font-size: 11px; color: #fffaad;}
#tel span {font-size: 14px;}
#extra1 p {font-size: 11px; color:#91ff6a; margin-top: 5px; margin-left:435px; margin-right: 35px;}
#extrat {font-size: 11px; color: #ffffff; margin-left:435px; margin-right: 35px; margin-top: 77px; }
#link_top {padding-left: 10px; margin-bottom: 33px;}
#link_top a {font-size:11px; color: #91ff6a;}
#link_top a:hover {text-decoration: none;}
#link_top span {font-size: 11px; color: #00c710;}
#flash {position: absolute; top: 0px; right: 0px; z-index: 10;}
.png {behavior: url(../src/pngbehavior.htc);}
.menu {vertical-align: middle;}
Извиняюсь, если код очень большой.
Помощь очень нужна, и как можно быстрее, плиз.
Link to comment
Share on other sites
1 answer 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.