Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów
[css] Problem z tłem - Wersja do druku

+- Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów (https://www.webmastertalk.pl)
+-- Dział: Technologie internetowe - tworzenie stron WWW (https://www.webmastertalk.pl/forum-technologie-internetowe-tworzenie-stron-www)
+--- Dział: xHTML, CSS, JavaScript (https://www.webmastertalk.pl/forum-xhtml-css-javascript)
+--- Wątek: [css] Problem z tłem (/thread-css-problem-z-tlem)



[css] Problem z tłem - informatyczka2010 - 03-01-2010

Mam pytanie tworzę stronę i chiałam jak zawsze zrobić tło w css to znaczy w tym wypadku logo strony miało być tłem nagłówka wpisałam to co zawsze wpisuję i nic do piero po wpisaniu tekstu ukazuje się tło czy to tak powinno być czy też coś sknociłam z resztą sami ocencie.
XHTML
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">


<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-2" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="robots" content="index, follow" />
<meta name = "author" content = "Marta Majchert"/>
<meta name = "keywords" content = "sklep internetowy, ALE RAJ, prezenty, świeczki"/>
<link rel="stylesheet" href="mojstyl.css" type="text/css" />

<title>Sklep internetowy - ALE RAJ - WITA!!!</title>
</head>
<body>
<div id="tlo">
<div id="srodek">
<div id="naglowek">

</div>
<div id="menu"> </div>
<div id="tresc"></div>
<div id="aktualne"></div>
<div id="stopka"></div>
</div>
</div>
</body>
</html>

Css
Kod:
body {background-color: #4671D5; text-align:center;}
#tlo {
    width:1000px;
    margin:0 auto;
}
#srodek {
    background-color: blue;
    text-align: justify;
    height: auto;
    text-decoration: none;
    text-indent: 0,5cm;
    font-family: Arial, Verdana, Helvetica, sans-serif;
    width: 800px;
    position: relative;}
#naglowek  {
    margin: 0;
    position: absolute;
    background-imge: url(logo.gif);
    }
A logo zdjęcie jest w załaczniku


RE: [css] Problem z tłem - Kamil - 03-01-2010

Nadaj nagłówkowi minimalne wartości tj. min-width: 100px; min-height: 100px;


RE: [css] Problem z tłem - informatyczka2010 - 03-01-2010

to nic nie dało nadal nie ma tła buuu!


RE: [css] Problem z tłem - Kamil - 03-01-2010

Teraz nie bardzo rozumiem, chcesz aby było widoczne tło loga w divie "naglowek" ?


RE: [css] Problem z tłem - informatyczka2010 - 03-01-2010

Tak właśnie już muwię jeszcze raz logo strony ma być tłem nagłówka!!! Właśnie w divie naglowek


RE: [css] Problem z tłem - Kamil - 03-01-2010

Do nagłówka dopisz:

Kod PHP:
min-width790px;
min-height90px

I nie background-imge tylko background-IMAGE


RE: [css] Problem z tłem - informatyczka2010 - 04-01-2010

Ogromne dzięki problem rozwiązany