Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: nagłówek xhtml - problem z css
Forum PHP.pl > Forum > Po stronie przeglądarki > CSS
uczeń php
kod css:

body {
background-color : black;
}
#menu {
position : relative;
height : auto;
display : inline;
margin-left : 1.25%;
float : left;
width : 18%;
vertical-align : top;
border : 2px dashed blue;
background-color : green;
text-align : center;
z-index : 2;
}
#wysunmenu {
visibility : hidden;
margin-left : 40.4%;
margin-top : 0.05%;
height : auto;
float : left;
width : 18%;
text-align : center;
display : block;
border : 2px dashed red;
background-color : green;
position : relative;
z-index : 2;
}
#baner {
width : 98%;
margin-left : 1%;
margin-right : 1%;
background-color : red;
height : 16%;
text-align : center;
color : blue;
margin-top : 3%;
font-weight : bold;
z-index : 1;
}
#reklama {
margin-left : 1%;
width : 98%;
height : 57%;
z-index : 1;
}
#nawigacja {
background-color : orange;
height : 36px;
margin-left : 1%;
width : 98%;
z-index : 1;
margin-top : -0.5%;
}
#stopka {
background-color : #ff21a5;
margin-left : 1%;
height : 17%;
text-align : center;
width : 98%;
font-weight : bold;
z-index : 1;
}
#reklama table.mreklama {
width : 97%;
float : left;
position : absolute;
height : 55.1%;
text-align : center;
font-weight : bold;
margin-left : -0.3%;
}
#reklama table.mreklama td.rek {
width : 25%;
background-color : yellow;
}
#reklama table.mreklama td.tr {
width : 72%;
background-color : blue;
}
wszystko działa ok do momentu gdy w pliku html dodam

<!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">
blooregard
Proszę dodać BBCode.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.