Hier mal meine CSS:
HTML-Code:
html, body {
background-image: url(website/hg/body/wand.jpg);
}
#header {
width: 930px;
height: 50px;
background-image: url(website/hg/info/header-hg.jpg);
margin: auto;
padding: 15px 25px;
z-index: 19;
}
#header h2{
display: inline;
color: #FF6600;
text-decoration: underline;
}
#header .text{
position: relative; left: 35px;
color: #FF9933;
}
#impressum{
position: relative; top: 270px; right: -820px;
color: #FF9933;
text-decoration: none;
font-weight: bold;
font-family: 'Comic sans MS';
font-size: small;
}
a:link, a:visited{
text-decoration: none;
color: #FF9933;
}
td {
width: auto;
}
.zr{
width: 40px;
}
.zr-p{
width: 20px;
}
.trcolor{
color: #FF6633;
}
table {
width: 450px;
}
/**************************/
/*Einstellungen des Menues*/
/**************************/
#menue {
width: 950px;
height: 50px;
position: relative; top: -14px;
margin: auto;
z-index: 20;
}
#menue ul li{
float: left;
text-decoration: none;
list-style: none;
}
#menue a:link, #menue a:visited {
display: block;
width: 109px;
height: 50px;
text-decoration: none;
}
/********************************/
/*Einstellungen der Menuebuttons*/
/********************************/
#but-index {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/index.png);
}
#but-index:hover{
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/index-hv.png);
}
#but-fw {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/fw.png);
}
#but-fw:hover{
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/fw-hv.png);
}
#but-vort {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/vort.png);
}
#but-vort:hover {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/vort-hv.png);
}
#but-preise {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/preise.png);
}
#but-preise:hover {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/preise-hv.png);
}
#but-rabatte {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/rabatte.png);
}
#but-rabatte:hover {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/rabatte-hv.png);
}
#but-beisp {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/beisp.png);
}
#but-beisp:hover {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/beisp-hv.png);
}
#but-best {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/best.png);
}
#but-best:hover {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/best-hv.png);
}
#but-links {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/links.png);
}
#but-links:hover {
display: block;
width: 109px;
height: 50px;
background-image: url(website/buttons/links-hv.png);
}
.anim {
position: relative; top: -315px; left: -110px;
}
#inhalt {
width: 980px;
height: 650px;
background-image: url(website/hg/info/visitenk.png);
position: relative; top: 70px;
margin: auto;
}
#infotext{
width: 480px;
height: 290px;
position: relative; bottom: -30px; left: 20px;
font-family: 'Comic sans MS';
font-size: small;
color: #FF9933;
/* overflow: auto;*/
}
#infotext h3{
display: inline;
color: #FF6600;
text-decoration: underline;
}
#infotext strong{
text-decoration: underline;
}
/*
#impressumbox, #agb-box{display:inline;}
#impressumbox span, #agb-box span{display:none;}
#impressumbox:hover span{
display:block;
width:350px;
height: 350px;
position: relative; bottom: 550px; left: 67px;
background-image: url(website/hg/info/infobox-hg.png);
border:1px dashed black;
padding:10px;
font:normal 10px verdana, sans-serif;
color: #0000FF;
}
#agb-box:hover span {
position: relative; bottom: 550px; left: -260px;
display:block;
width:350px;
height: 350px;
background-image: url(website/hg/info/infobox-hg.png);
border:1px dashed black;
padding:10px;
font: normal 10px verdana, sans-serif;
color: #0000FF;
}
*/
HTML-Code:
<!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">
<head>
/* Titel Metatags und der ganze Krempel ... */
<body>
<div id="header">
<h2>"Bezeichnung"<br /></h2>
<span class="text"><?php include("ok24daten/website/logotext.txt"); ?></span> /* hab ich eingefügt per PHP, weil wenn sich was ändert, brauch ich das nur einmal zu tun :) */
<div id="menue">
<ul>
<li id="but-index"><img src="ok24daten/website/buttons/index-hv.png"/></li>
<li><img src="ok24daten/website/buttons/zr-h.png"/></li>
<li id="but-fw"><a href="fuerwen.php"></a></li>
<li><img src="ok24daten/website/buttons/zr-h.png"/></li>
<li id="but-vort"><a href="vorteile.php"></a></li>
<li><img src="ok24daten/website/buttons/zr-h.png"/></li>
<li id="but-preise"><a href="preise.php"></a></li>
<li><img src="ok24daten/website/buttons/zr-h.png"/></li>
<li id="but-beisp"><a href="beispiele.php"></a></li>
<li><img src="ok24daten/website/buttons/zr-h.png"/></li>
<li id="but-best"><a href="bestellung.php"></a></li>
<li><img src="ok24daten/website/buttons/zr-h.png"/></li>
<li id="but-links"><a href="links.php"></a></li>
</ul>
</div>
</div>
<div id="inhalt">
<div id="infotext">
<h3>"Die Überschrift"</h3><br />
Bla Bla Text ....... überlang ...
</div>
<span id="impressum"><a href="agbs.php"> AGBs</a> • <a href="impressum.php"> Impressum</a></span> /* Diese 2 folgenden Divs haben sich verschoben ....*/
<span class="anim"><img src="ok24daten/website/bilder/anim-startseite.gif" /></span>
</div>
</body>
</html>
Lesezeichen