szkielet strony w css - czy jest ok?
: pn lis 27, 2006 8:53 pm
Witam, zrobilem sobie szkielet stronki www w css, to moj pierwszy taki projek, postanowilem pozbyc sie tabel
Nie wiem tylko czy jest to zrobione poprawnie, bardzo prosze o opinie, co powinienem zmienic, co usunac, dodac itp.
Maly opis:
gorne 1,2,3 - banner z czego 2 bedzie we flash
boczne 1,2,3,4,5,6 - to jest menu, przyciski we flash
7 - glowny blok w ktorym beda rozne informacje, grafika itp.
8 - dolny bannerek
TUTAJ znajduje sie screen, a ponizej zrodlo w css i w html.
Maly opis:
gorne 1,2,3 - banner z czego 2 bedzie we flash
boczne 1,2,3,4,5,6 - to jest menu, przyciski we flash
7 - glowny blok w ktorym beda rozne informacje, grafika itp.
8 - dolny bannerek
TUTAJ znajduje sie screen, a ponizej zrodlo w css i w html.
Kod: Zaznacz cały
body {
position: relative;
top: 16px;
text-align: center;
padding: 0px 0px 0px 0px;
border-collapse: collaps;
border-spacing: 0px;
margin: 0px auto;
background-color: #ffffff;}
#all {
border: 0px;
width: 802px;
height: 590px;
background-color: #d2d2d2;
margin: 0px auto;
padding: 0px 0px 0px 0px;}
#bl {
position: absolute;
border-left: solid 1px;
border-top: solid 1px;
border-bottom: solid 1px;
width: 80px;
height: 128px;
margin: 0px 0px;
background-color: #d4d4d4;
padding: 0px 0px 0px 0px;
background-image: url(grafika/bl.png);
background-repeat: no-repeat;}
#bm {
position: absolute;
border-top: solid 1px;
border-bottom: solid 1px;
width: 200px;
height: 128px;
margin: 0px 81px;
background-color: #d8d8d8;
padding: 0px 0px 0px 0px;
background-image: url(grafika/bm.png);
background-repeat: no-repeat;}
#br {
position: absolute;
border-top: solid 1px;
border-bottom: solid 1px;
border-right: solid 1px;
width: 520px;
height: 128px;
margin: 0px 281px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;
background-image: url(grafika/br.png);
background-repeat: no-repeat;}
#mu {
position: absolute;
border-top: solid 1px;
border-left: solid 1px;
border-bottom: solid 1px;
width: 150px;
height: 430px;
margin: 134px 0px;
background-color: #bbbbbb;
padding: 0px 0px 0px 0px;}
#a {
position: absolute;
width: 140px;
height: 36px;
margin: 4px 4px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;}
#b {
position: absolute;
width: 140px;
height: 36px;
margin: 44px 4px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;}
#c {
position: absolute;
width: 140px;
height: 36px;
margin: 84px 4px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;}
#d{
position: absolute;
width: 140px;
height: 36px;
margin: 124px 4px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;}
#e {
position: absolute;
width: 140px;
height: 36px;
margin: 164px 4px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;}
#f {
position: absolute;
width: 140px;
height: 36px;
margin: 204px 4px;
background-color: #dddddd;
padding: 0px 0px 0px 0px;}
#ma {
position: absolute;
width: 650px;
height: 430px;
margin: 134px 151px;
background-color: #aaaaaa;
padding: 0px 0px 0px 0px;
border-top: solid 1px;
border-bottom: solid 1px;
border-right: solid 1px;}
#bs {
position: absolute;
border: solid 1px;
width: 800px;
height: 18px;
margin: 570px 0px;
background-color: #dedede;
padding: 0px 0px 0px 0px;
background-image: url(grafika/adres.png);
background-repeat: no-repeat;}Kod: Zaznacz cały
<?xml version="1.0" encoding="iso-8859-2"?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link rel="stylesheet" type="text/css" href="style.css" />
<?xml-stylesheet type="text/css" href="style.css" ?>
<title>test</title>
</head>
<body>
<div id="all">
<div id="bl">1</div>
<div id="bm">2</div>
<div id="br">3</div>
<div id="mu">
<div id="a">1</div>
<div id="b">2</div>
<div id="c">3</div>
<div id="d">4</div>
<div id="e">5</div>
<div id="f">6</div>
</div>
<div id="ma">7</div>
<div id="bs">8</div>
</div>
</body>
</html>