03-07-2009, 03:20
(Ten post był ostatnio modyfikowany: 03-07-2009, 03:41 przez shadar_logoth.)
Witam,
mam problem z poprawnym generowaniem wartości width w footerze.
index.html
style.css
Wszystkie resety są w oddzielnym pliku.
Problem polega na tym że mam dziwnie zrobioną stopkę (w znaczeniu grafiki), prawa strona jest inna niż lewa, więc nie mogę zrobić jednego diva z repeat-x.
Zrobiłem trzy divy, lewy środkowy i prawy. Chce żeby lewy i prawy dostosowały width, natomiast center ma być stały.
Niestety to co napisałem jakoś nie bardzo się sprawdza...
Może ktoś coś zasugeruje?
mam problem z poprawnym generowaniem wartości width w footerze.
index.html
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Untitled Document</title>
</head>
<body>
<div class="container">
<div class="header_bg">
<div class="header">
<div class="header_menu">
<div class="logo"></div>
<div class="menu">
<ul class="menu_top">
<li><a href="#">Strona główna</a></li>
<li class="menu_top_divider">|</li>
<li><a href="#">Oferta</a></li>
<li class="menu_top_divider">|</li>
<li><a href="#">Realizacje</a></li>
<li class="menu_top_divider">|</li>
<li><a href="#">Referencje</a></li>
<li class="menu_top_divider">|</li>
<li><a href="#">Kontak</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="slider_bg">
<div class="slider"><img src="images/slider_img.jpg" width="763" height="269" alt="slider_img" /></div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="realization">test</div>
<div class="info">test</div>
<div class="footer">
<div class="footer_left"></div>
<div class="footer_content">s</div>
<div class="footer_right"></div>
</div>
<div>
</div>
</body>
</html>
style.css
Kod:
body {
font: 100% Trebuchet MS, Arial, Helvetica, sans-serif;
background:#111;
}
.header_bg {
height:410px;
background:url(../images/header_bg_right.png) repeat-x;
}
.header {
margin: 0 auto 0 auto;
width:1014px;
height:410px;
background:url(../images/header_bg.png) no-repeat;
}
.header_menu {
width:1014px;
}
.logo {
float:left;
background:url(../images/logo.png) 0 0 no-repeat;
width:146px;
height:52px;
margin: 26px auto 0 125px;
display:inline;
}
.menu {
float:left;
margin:63px 0 0 170px;
}
.menu_top {
font-size:12px;
}
.menu_top li {
display:block;
height:16px;
float:left;
margin-right:10px;
margin-left:10px;
}
.menu_top a {
color:#838383;
text-decoration:none;
}
.menu_top a:hover {
color:#33205d;
}
.menu_top_divider {
font-size:8px;
color:#838383;
}
.slider_bg {
width: 778px;
height: 282px;
background:url(../images/slider_bg.png) 0 0 no-repeat;
margin: 25px auto 0 auto;
}
.slider {
float:left;
margin: 7px;
width: 763px;
height: 269px;
display:inline;
}
.realization {
width:100%;
height:316px;
background:url(../images/realization_bg.png) repeat-x;;
}
.info {
width:100%px;
height:291px;
background:url(../images/info_bg.png) 0 0 repeat-x;
}
.footer {
height:83px;
}
.footer_left {
float:left;
width:auto;
height:83px;
background:url(../images/footer_bg_left.png) repeat-x;
}
.footer_content {
float:left;
width:1014px;
height:83px;
background:url(../images/footer_bg.png) 0 0 no-repeat;
}
.footer_right {
float:right;
width:auto;
height:83px;
background:url(../images/footer_bg_right.png) repeat-x;
}
Wszystkie resety są w oddzielnym pliku.
Problem polega na tym że mam dziwnie zrobioną stopkę (w znaczeniu grafiki), prawa strona jest inna niż lewa, więc nie mogę zrobić jednego diva z repeat-x.
Zrobiłem trzy divy, lewy środkowy i prawy. Chce żeby lewy i prawy dostosowały width, natomiast center ma być stały.
Niestety to co napisałem jakoś nie bardzo się sprawdza...
Może ktoś coś zasugeruje?