|
|
|
|
div position bottom right bzw left |
Easy
Philosophieterrorist
Dabei seit: 29.11.2001
Beiträge: 112
Herkunft: Naja, Ne!
|
|
Hier ein Beispiel für absoltue Positionierung:
Zitat: |
<html>
<head><title>position</title>
<style type="text/css">
#box1 { position:absolute; top:50px; left:10px; width:150px; height:150px; z-index:1; }
#box2 { position:absolute; top:80px; left:40px; width:100px; height:100px; z-index:2; }
#box3 { position:absolute; top:120px; left:50px; width:150px; height:150px; z-index:3; }
</style>
</head>
<body>
<div id="box1" style="background:red; border:solid 2px blue;">box1</div>
<div id="box2" style="background:blue; border:solid 2px white;">box2</div>
<div id="box3" style="background:yellow; border:solid 2px red;">box3</div>
</body>
</html>
|
Natürlich kannst du die Head Angaben auch in einer erxternen Datei deponiern (dadurch kann man schnell und mit wenig Umstend ein komplette Projekt verändern)
Hier der Tag zur einbindung einer externen CSS Datei:
Zitat: |
<link rel="stylesheet" type="text/css" href="whatever.css"> |
Für mehr Informationen Siehe SelfCSS
Ich hoffe Ich konnte helfen.
__________________ -=Wer den Berg raufkriecht fällt um wenn er aufsteht=-
|
|
29.09.2006 11:49 |
|
|
|
|
|
|