CSS: Absolute Position auch beim Scrollen |
Schweinebacke
Mitglied
Dabei seit: 06.01.06
Beiträge: 826
Herkunft: Baden Württemberg
|
|
in etwa so:
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html><head><title>fixed</title>
<style type="text/css">
body {
margin:0;
padding:0;
height:1500px;
color: #000;
background: #fff;
}
#b1 {
position:fixed;
overflow: hidden;
left: 0px;
bottom: 0px;
width:150px;
height:150px;
background-color:#afa;
}
</style>
</head><body>
<div id="b1">b1 fixed</div>
</body></html> |
|
|
|
11.10.07 19:37 |
E-Mail
Finden
Als Freund hinzufügen
|
|
|