Hallo nochmal
Grüße,
<p> im <div>. <p> schwarz, <div> sternenhintergrund, padding enstcheidet über die breite.
Sorry, das ist doch HTML und kein CSS, oder?combo - aber du kannst nicht ohne weiteres einen textblock mit 2 hintergründen haben.es müssen 2 verschachtelte elemente sein.
Schon klar. Das heißt ich mache im CSS
BODY {
color: #F5FFFA;
background-image: sterne.jpg;
padding: 2cm
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: medium;
text-align: justify;
cursor: crosshair;
}
A {
color: Red;
text-decoration: none;
}
A:HOVER {
color: #F5FFFA;
text-decoration: underline;
cursor: pointer;
}
P {
background-color: #000000
color: #FFFFFF
}
Und dann im HTML:
<body>
<p>Lorem ipsum, dolor sit amet consectetur sadipisci velit.</p>
</body>
für nicht ie - position:fixed;
position:fixed in welchem Element? Doch nicht Body, oder?und was wollest du fixieren? sidebar oder body?
Sidebar. Aha, das heißt ich muss dann im CSS:
SIDEBAR {
position:fixed
}
Und im HTML:
<body>
<div class="sidebar"><img url="/button1.png"><img url="/button2.png"><img url="/button3.png"></div>
<p>Inhalt</p>
</body>
Sorry dass ich immer so blöd frage, aber ich bin gerade erst von WYSIWMILB (What You See Is What Makes It Look Bad) umgestiegen, habe jetzt mittelmäßige HTML-Kenntnisse und nahezu keine CSS. Aber ist halt notwendig.
Liebe Grüße,
friedebarth