AlexD
04.07.2008, 08:31:14
Hallo,
ich bin grad dabei eine Seite zu erstellen....
Nun hab ich unter anderem den Tipp bekommen das Style so gut es geht ohne Tabellen über CSS zu realisieren. Ich hab mich daraufhin damit beschäftigt und jetzt stoße ich auf Probleme.
die überflüssigen Ränder im Mittelbereich sind nur zur Illustration um die Containergrösse besser sehen zu können.
Hauptproblem ist:
Ist es möglich die Container nach unten hin immer gleich abschließen zu lassen damit die Seite immer mit dem Footer abschließt bzw. die Login-Box mit dem Trennbalken?!
Zentrieren der Kopfgrafik 'Internet-Portal', liegt an der Digi-Clock.
Google-Suche 'mittig' in die Box setzen, auch hier sollte der DIV-Container am Balken abschließen.
Unterschliedliche Darstellung der Login-Box in FireFox und IE... der IE mach unterhalb des Submit-Buttons einen großen Abstand während FF und Opera hier bündig abschließen. Mit 'marigin-bottom' lässt sich kein einheitlicher Abstand erzwingen.
Hier mal die Links:
Aktuelle Seite:
http://startseite.dyndns.org
Hier noch die CSS, die sicher noch verbesserungsfähig ist ;
BODY {
SCROLLBAR-BASE-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #CCCCCC;
background-color: #444440;
font-family: Helvetica,Arial,sans-serif;
font-size: 12px;
color: #CCCCCC;
min-width: 41em;
}
a:link { COLOR: #CCCCCC; text-decoration:none; }
a:visited { COLOR: #CCCCCC; text-decoration:none; }
a:hover { COLOR: #990000; text-decoration:underline; }
a:active { COLOR: #CCCCCC; text-decoration:underline; }
#header {
width: 100%;
background: #E2E2E2;
}
#main{
width: 100%;
}
#foot{
clear:both;
text-align:center;
width: 100%;
}
div.topline{
height:40px;
background-color: none;
background:url(../img/balken.jpg);
background-repeat: reapeat-x;
}
div.topline_clock{
float:left;
height:40px;
width:200px;
background-color: none;
background:url(../img/head_clock.jpg);
background-repeat: no-repeat;;
}
div.line{
clear:both;
background-color: none;
background:url(../img/line_1.jpg);
background-repeat: reapeat-x;
}
div.left {
float:left;
border:1px solid;
border-color:#000000;
width:200px;
}
div.middle {
margin-left:220px;
margin-right:220px;
padding-top:10px;
border:1px solid;
border-color: #000000;
div.right {
float:right;
border:1px solid;
border-color:#000000;
width:200px;
}
div.topbox{
height:100%;
margin:5px;
paddin:2px;
border:1px solid;
border-color:#666666;
font-size:10px;
}
.hintergrund{
background-color: none;
background:url(../img/blackmetal.gif);
background-repeat: reapeat;
}
.contentbox{
border:1px solid;
border-color:#000000;
margin-top:0px;
margin-bottom:10px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 5px;
}
.tbl_kopf{
background-color:#000000;
font-weight:bold;
margin-top:2px;
margin-left: -3px;
margin-right: -3px;
padding-left:4px;
}
.input{
background-color: #000000;
padding-left:2px;
color: #CCCCCC;
font-family: Helvetica,Arial,sans-serif;
font-size: 11px;
}
.button {
background-color: #222222;
font-family: Helvetica,Arial,sans-serif;
font-size: 10px;
color: #CCCCCC;
padding-right: 4px;
padding-left: 4px;
padding-bottom: 0px;
padding-top: 2px;
}
.menuebox{
border-bottom:1px solid;
border-right:1px solid;
border-left:1px solid;
border-top:1px solid;
border-color:#999999;
margin-left:10px;
margin-right:10px;
margin-top: 15px;
padding-left: 5px;
padding-bottom:5px;
padding-top: 5px;
}
.legende{
font-family: Helvetica,Arial,sans-serif;
font-size: 11px;
font-weight:bold;
color: #999999;
}
Gruß
Alex
ich bin grad dabei eine Seite zu erstellen....
Nun hab ich unter anderem den Tipp bekommen das Style so gut es geht ohne Tabellen über CSS zu realisieren. Ich hab mich daraufhin damit beschäftigt und jetzt stoße ich auf Probleme.
die überflüssigen Ränder im Mittelbereich sind nur zur Illustration um die Containergrösse besser sehen zu können.
Hauptproblem ist:
Ist es möglich die Container nach unten hin immer gleich abschließen zu lassen damit die Seite immer mit dem Footer abschließt bzw. die Login-Box mit dem Trennbalken?!
Zentrieren der Kopfgrafik 'Internet-Portal', liegt an der Digi-Clock.
Google-Suche 'mittig' in die Box setzen, auch hier sollte der DIV-Container am Balken abschließen.
Unterschliedliche Darstellung der Login-Box in FireFox und IE... der IE mach unterhalb des Submit-Buttons einen großen Abstand während FF und Opera hier bündig abschließen. Mit 'marigin-bottom' lässt sich kein einheitlicher Abstand erzwingen.
Hier mal die Links:
Aktuelle Seite:
http://startseite.dyndns.org
Hier noch die CSS, die sicher noch verbesserungsfähig ist ;
BODY {
SCROLLBAR-BASE-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #CCCCCC;
background-color: #444440;
font-family: Helvetica,Arial,sans-serif;
font-size: 12px;
color: #CCCCCC;
min-width: 41em;
}
a:link { COLOR: #CCCCCC; text-decoration:none; }
a:visited { COLOR: #CCCCCC; text-decoration:none; }
a:hover { COLOR: #990000; text-decoration:underline; }
a:active { COLOR: #CCCCCC; text-decoration:underline; }
#header {
width: 100%;
background: #E2E2E2;
}
#main{
width: 100%;
}
#foot{
clear:both;
text-align:center;
width: 100%;
}
div.topline{
height:40px;
background-color: none;
background:url(../img/balken.jpg);
background-repeat: reapeat-x;
}
div.topline_clock{
float:left;
height:40px;
width:200px;
background-color: none;
background:url(../img/head_clock.jpg);
background-repeat: no-repeat;;
}
div.line{
clear:both;
background-color: none;
background:url(../img/line_1.jpg);
background-repeat: reapeat-x;
}
div.left {
float:left;
border:1px solid;
border-color:#000000;
width:200px;
}
div.middle {
margin-left:220px;
margin-right:220px;
padding-top:10px;
border:1px solid;
border-color: #000000;
div.right {
float:right;
border:1px solid;
border-color:#000000;
width:200px;
}
div.topbox{
height:100%;
margin:5px;
paddin:2px;
border:1px solid;
border-color:#666666;
font-size:10px;
}
.hintergrund{
background-color: none;
background:url(../img/blackmetal.gif);
background-repeat: reapeat;
}
.contentbox{
border:1px solid;
border-color:#000000;
margin-top:0px;
margin-bottom:10px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 5px;
}
.tbl_kopf{
background-color:#000000;
font-weight:bold;
margin-top:2px;
margin-left: -3px;
margin-right: -3px;
padding-left:4px;
}
.input{
background-color: #000000;
padding-left:2px;
color: #CCCCCC;
font-family: Helvetica,Arial,sans-serif;
font-size: 11px;
}
.button {
background-color: #222222;
font-family: Helvetica,Arial,sans-serif;
font-size: 10px;
color: #CCCCCC;
padding-right: 4px;
padding-left: 4px;
padding-bottom: 0px;
padding-top: 2px;
}
.menuebox{
border-bottom:1px solid;
border-right:1px solid;
border-left:1px solid;
border-top:1px solid;
border-color:#999999;
margin-left:10px;
margin-right:10px;
margin-top: 15px;
padding-left: 5px;
padding-bottom:5px;
padding-top: 5px;
}
.legende{
font-family: Helvetica,Arial,sans-serif;
font-size: 11px;
font-weight:bold;
color: #999999;
}
Gruß
Alex