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
DeathError
Есть сайт с "резиновым" дизайном. Есть необходимость использовать div со скроллбаром.
Если задавать фиксированные размеры для div'а, все нормально, "overflow: auto" создает
скроллбар когда необходимо. Но если размер div'а не указан (или 100% - то что надо
), растягивает div так, что видно только 1 строку. Как сделать ризивой div по вертикали с прокруткой?
height:600px; - сейчас в работе. (height:100%; или height:auto!important; - не работаю корректно)
#mycustomscroll {
width: 100%;
min-height:auto!important;height:600px;max-height:100%;
margin: 0 0 0 0;
overflow: auto;
}
.scrollgeneric {
line-height: 1px;
font-size: 1px;
position: absolute;
top: 0; left: 0;
}
.vscrollerbase {
width: 10px;
background-color: white;
}
.vscrollerbar {
width: 10px;
background-color: black;
}
.hscrollerbase {
height: 10px;
background-color: white;
}
.hscrollerbar {
height: 10px;
background-color: black;
}
.scrollerjogbox {
width: 10px;
height: 10px;
top: auto; left: auto;
bottom: 0px; right: 0px;
background-color: gray;
}
......пропус.....
body
{
padding: 0;
margin:0;
color: #0F1419;
height:100%;
min-height:100%;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: top left;
min-width: 700px;
overflow: hidden;
}
....пропуск........
.art-sheet
{
position: relative;
margin: 0 auto;
min-height: 15px;
margin-top: 47px;
margin-bottom: 0;
cursor:auto;
width: 90%;
min-width: 700px;
max-width: 1728px;
}
.art-sheet-body
{
position: relative;
padding: 4px;
padding-top:4px;
padding-bottom:0;
}
.......пропуск..........
.art-content-layout
{
display: table;
position:relative;
table-layout: fixed;
border-collapse: collapse;
background-color: Transparent;
border: none !important;
padding:0 !important;
width:100%;
opacity:.89;
filter: alpha(opacity=89);
-moz-opacity: 0.89;
margin-top:0;
margin-bottom:0; margin-left: 12px%;
margin-right: -15px;
background: #ffffff;
background-image:url(../images/boot.png);
background-attachment: fixed;
background-repeat: repeat-x;
background-position: bottom center ;
overflow: auto;
......пропуск.......
}
http://www.lesnitsyno.nichost.ru/index.php?option=com_content&view=article&id=3&Itemid=4
код css - слишком боьшой 2677 строк.
Link to comment
Share on other sites
8 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.