Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
odpowiednie ustawienia tła
#1
Witam
Mam taki problem, że mam powtarzające się tło(obrazek ze środkiem jakiegoś koloru i bokiem czarnym-obwódka strony), a na dole strony mam zakończenie ładnie pozaokrąglane. Całość tworzy stronę - tło i dolne zaokrąglenie ramki.

Przy rysunku zaokrąglenia ramki chce dać przezroczystość rogów, jednak gdy tak zrobię to widać mi na rogach czarną obwódkę z rysunku ramki.

Może na przykładzie kodu -- jak zrobić żeby moja warstwa body, która jest powtarzana kończyła się trochę wcześniej przed body-bot, tak żeby na rogach była widoczna moja pierwsza warstwa, która jest tłem -- tj. tlo.gif ?
Da się jakoś ustawić żeby wypełnianie skończyło się trochę wcześniej ?
Kod:
body {
    background: #CDC2B3 url(images/bg.jpg);
    text-align: center;
    font: 11px verdana, sans-serif;
    margin: 0px;
    padding: 20px 0px 20px 0px;
}



#body {
    background: url(images/body_bg.gif) repeat-y;
    clear: both;
    width: 100%;
    }
#body-bot {
    background: bottom url(images/body_bot.gif) no-repeat;
    padding: 21px 25px 15px 42px;
}

Mój cały css:
Kod:
html {
    margin: 0;
    padding: 0;
}
body {
    background: #CDC2B3 url(images/bg.jpg);
    text-align: center;
    font: 11px verdana, sans-serif;
    margin: 0px;
    padding: 20px 0px 20px 0px;
}
a {
    color: #5F3E2F;
    font-weight: bold;
    text-decoration: none;
}
a:hover {
    color: #1D110B;
    text-decoration: underline;
}
img {
    border: 0px;
}
#wrapper {
    width: 778px;
    margin: auto;
    text-align: left;
}
#header p {
    font-size:18px;
    font-style:italic;
    color:#FFFFFF;
    font-family:Georgia, "Times New Roman", Times, serif;
    width:300px;
}
#header p.more {
    padding-right: 22px;
}
#header {
    height: 320px;
    background: url(images/header.png) no-repeat;
}
#header div {
    padding: 183px 213px 0px 82px;
}
#header p {
    margin: 0px;
    padding: 0px;
}
#header a {
    color:#FFFFFF;
}
#nav {
    width: 778px;
    height:48px;
    margin: 0px 0px 0px 0px;
    background-image:url(images/nav.gif);
    background-repeat:no-repeat;
    display:inline;
    float:left;
    
}
#nav a {
    font-size:24px;
    color:#260403;
    font-family:Georgia, "Times New Roman", Times, serif;
    margin: 12px 0px 10px 0px;
    padding: 0px 20px 0px 20px;
    display:inline;
    float:left;
    border-right-width: 2px;
    border-right-style: inset;
    border-right-color: #76644f;
}
#nav a:hover {
    color:#862e06;
    text-decoration:none;
}
.lastchild {
    border-right: none 0px !important;
}
#body {
    background: url(images/body_bg.gif) repeat-y;
    clear: both;
    width: 100%;
    }
#body-top {
    background: url(images/body_top.gif) no-repeat;
}
#body-bot {
    background: bottom url(images/body_bot.gif) no-repeat;
    padding: 21px 25px 15px 42px;
}
#about-box {
    height: 385px;
    overflow: auto;
    float: left;
    width: 315px;
}
#about-box ul {
    margin-left: 8px;
}
#express-box {
    float: right;
    width: 327px;
}
#foot {
    width: 738px;
    margin-left: 20px;
    background: url(images/foot_bg.gif) repeat-y;
}
#foot-top {
    background: url(images/foot_top.jpg) no-repeat;
}
#foot-bot {
    background: bottom url(images/foot_bot.gif) no-repeat;
    padding: 13px 21px 12px 28px;
}
#what-box {
    float: left;
    width: 332px;
}
#what-box img.left {
    margin-left: 10px;
}
#what-box ul {
    float: left;
    margin-left: 2px;
    width: 184px;
}
#news-box {
    float: right;
    width: 316px;
}
#news-box ul {
    float: left;
    margin-left: 2px;
    width: 184px;
}
#footer {
    margin: 14px;
    text-align: center;
}
h2 {
    margin: 0px;
    padding: 0px 0px 10px 0px;
    font:Arial, Helvetica, sans-serif;
    font-size:20px;
    font-style:italic;

    color:#862e06;
}
h2 b{
    color:#341c12;
}

ul {
    margin: 0px;
    padding: 0px;
}
li {
    margin: 0px;
    padding: 0px 0px 5px 20px;
    list-style: none;
    background: 0px 3px url(images/bullet.gif) no-repeat;
}
p {
    margin-top: 0px;
    margin-bottom: 10px;
}
div.narrow-text {
    margin-right: 18px;
}
img.left {
    float: left;
    padding-right: 14px;
    padding-bottom: 16px;
}
#body p.more {
    padding-top: 6px;
}
#news-box p.more {
    padding-top: 0px;
    margin-top: 0px;
}
p.more {
    text-align: right;
}
.clear {
    clear: both;
}
Odpowiedz
#2
Nie ma takiej możliwości. Albo zrobisz 2 divy, albo zrobisz 1 div na calosc, dasz mu stosowny margines dolny i jemu ustawisz 1 czesc, a body dasz druga dolna
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Fullsize background slider z możliwością ustawienia czasu dla każdego elementu atp 2 3,697 24-09-2013, 18:25
Ostatni post: atp
  [CSS] Zmiana ustawienia modułu ze wspólnymi klasami Ciekawy 1 2,390 19-06-2011, 20:37
Ostatni post: hieroshima

Skocz do:


Użytkownicy przeglądający ten wątek:
Sponsorzy i przyjaciele
SeoHost.pl