|
|||
Layout Box
Folgendes Problem plagt mich gerade:
ich möchte eine "Box" schaffen, die sich auf einer bestimmten Höhe befindet und sich dann beim Scrollen "fix" verhält. Safari = Box wird wie gewollt angezeigt FF= box erscheint nicht Opera= box erscheint nicht I-SYCN » test Code:
<div style="position:absolute; top:305px; left:-230px;"> <div style="position:fixed; width:150px; height:150px; background-color:#afa";> text </div> </div> Habe es durch try and error gelöst. Die Box soll ja in das bestehende Layout eingefügt werden. Safari sowie FF und Opera haben den Befehle (position:absolute) unterschiedlich behandelt. Folgender Code schafft eine Box die von alle gleich behandelt wird und links der eig. Content-"Box" erzeugt wird. Code:
<div style="position:static; left:0px; "> <div style="position:fixed; top:405px; width:160px; height:100px;padding:5px; margin-left:-230px; background-color:grey";> Text </div> </div> Geändert von xava (26.02.2011 um 14:06 Uhr) |
Sponsored Links |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
ich habe totale Schwerigkeiten mit Absolute und Relative Positionierung?!? | damonster | CSS | 12 | 27.08.2008 15:56 |
Layout Problem mit div box | powerpika | CSS | 8 | 16.12.2006 12:36 |
Layout Problem (Head, Navi, Box, Content, Footer) | Al3x0r | CSS | 11 | 01.08.2006 14:07 |
Kniffliges Layout mit float | Roadrunnerle | CSS | 6 | 14.03.2006 11:26 |
#boxes a:hover.info: 2.posting mit css !!! | marioN | CSS | 5 | 25.01.2004 17:04 |