Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML/CSS] Pisanie po obrazku
Xca
post
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 19.02.2010

Ostrzeżenie: (0%)
-----


Moja strona jest na tyle 'mała', że postanowiłem ją zapisać jako 1 obrazek bez tekstu, dodatkowo na wszelkie buttony (są 3) ustawiłem kordy, jednak jak piszę to treść nie chce wejść na obrazek.

Kod
body {
background-color : #ebebeb;
margin : 0;
padding : 0;
font-family: Verdana, Tahoma, Arial;
color: #161616;
text-align : center;
font-size : 11px;
}

img {
border-style: solid;
border-width: 0px;
}

h1 {
text-indent: 5px;
}

#calosc {
margin: 0 auto;
padding: 0 0 0 0;
position: relative;
width: 778px;
text-align: left;
margin-top: 10px;
z-index: 1;
}

#content {
width: 550px;
height: 5px;
z-index: 2;
}


Ustawiłem z-index; ale to się nie sprawdza. W Html wygląda to tak:

Kod
<div id="calosc">
        <img src='www.png'>
    <div id="content">
        tekst


Jak to zrobić poprawnie? Bo nie mam pomysłów.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Xca
post
Post #2





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 19.02.2010

Ostrzeżenie: (0%)
-----


Kod
body {
background-color : #ebebeb;
margin : 0;
padding : 0;
font-family: Verdana, Tahoma, Arial;
color: #161616;
text-align : center;
font-size : 11px;
}

img {
border-style: solid;
border-width: 0px;
}

h1 {
text-indent: 5px;
}

#calosc {
background: transparent url('img/www.png') repeat;
margin: 0 auto;
padding: 0 0 0 0;
position: relative;
width: 778px;
height: 390px;
text-align: left;
margin-top: 10px;
z-index: 2;
}

#content {
width: 700px;
height: 150px;
z-index: 1;
}


Kod
<?xml version='1.0' encoding='ISO-8859-2'?>
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>

<html>
<head>

<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-2'>
<meta name='Description' content=''>  
<meta name='Keywords' content=''>
<meta http-equiv='Content-Language' content='pl'>
<meta name='Author' content=''>
<link rel='stylesheet' href='style.css' type='text/css'>
<title></title>

</head>
<body>

<div id="calosc">
    <div id="content">
        tekst
    </div>
    </div>
    
</body>
</html>

Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.12.2025 - 13:49