Hallo Ihr,
ich bin muss ich vorweg sagen, weder sicher in HTML, noch in PHP oder CSS.
Ich bringe mir alles per trial and error bei...
Folgendes: Ich möchte ein Grundgerüst für eine recht einfache Website entwickeln.
Ich stelle mir z.B. eine horizontzale Einteilung von 10% Seitenrand (ohne Funktion), 10%Navigationsbar, 60% Inhalt, 10% interne Werbefläche und 10% Seitenrand vor.
Den Rand links und rechts habe ich irgendwie hinbekommen.
Mit den restlichen 80% habe ich jedoch meine Probleme, wie man im Bild sehen kann.
Sobald ich die Größe mit Strg+Mausrad verändere, verschiebt sich alles.
Da wo "test" steht, ist ein Div-Container, denn ich möchte, dass die 60% Inhalt eine andere Farbe bekommen; über den Body habe ich das nicht geschafft, ohne dass der Rand ebenfalls diese Farbe annimmt... Die gelbe Hinterlegung war eine andere Idee, die vielleicht ebenfalls praktikabel wäre....
Problem 1: Die Buttons und das Logo sollen sich nciht vergrößern oder verkleinern lassen, damit diese nicht aus ihrem Rahmen springen.
Problem 2: Ich verstehe schlichtweg nicht, wieso der Hintergrund der Navigationsbar schön brav statisch an seinem Platz bleibt; alle anderen Rahmen jedoch nicht......
head {
link rel="icon" href="img/favicon.png" type="image/png";
}
body {
/* background-image: url("img/bg_weiss.gif");*/
background-color:#e4d9c0;
color: black;
}
html, body {
top:0; left:0; right:0;
min-height:100%;
margin:0;
padding:10px;
width:80%;
}
p {
font-size: 16px;
}
/*
img {
width: 60%;
}
*/
.title {
font-size: 65px;
}
a {
text-decoration: none;
}
#footer {
clear:left;
background:#CDC6AD ;
text-align:center;
}
header {
background-color: #CDC6AD;
position: fixed;
top: 0;
left: 5%;
width: 15%;
float:left;
/*padding:10px;*/
height: 100%;
font-weight: bold;
list-style-type: none;
}
#menu {
}
#menu li{
background-color: rgba(193, 163, 115, 0.71);
border: solid 0px #000000;
width: 7em;
margin: 5px;
display: inline-block;}
#menu li a {color: maroon;
text-decoration: none;
}
#menu li:hover {background-color: #837c6b;}
#menu li a:hover {color: #FFFFFF;}
#content
{
margin-top: 5%;
margin-left: 23.5%;
margin-right: 10%;
padding: 5px 5px 25px 5px;
}
#impressum2
{
text-align: left;
}
#impressum2 li
{
list-style-type: none;
border: solid 0px #000000;
width: 7em;
padding: 2px;
margin: 5px;
font-weight: normal;
}
#wrapper
{
margin: 0 auto;
border: none;
background: #FEFCE9;
}
Alles anzeigen