Hallo Leute,
hab ein Problem und irgendwie bekomm ich das nicht so hin wie ich möchte. Übersehe ich etwas?
Folgendes Problem.
Ich habe eine Scrollbar per Prototype/Scriptaculous hinzugefügt. Alles funktioniert einwandfrei.
Normalerweise sollte er jetzt den Text scrollen aber nicht den Text und die gesamte Seite.
Sieht jmd. den Fehler in Quellcode?
Alles anzeigen
Alles anzeigen
Wenn ich jetzt bei #content, #innercontent oder div#content div.text-content margin oder padding setzte positioniert er es zwar richtig, aber wie gesagt der Text und die gesamte Seite Scrollen dann mit. Wenn ich die margin und padding Werte weg lasse scrollt nur der Text aber der gesamte Content Bereich ist falsch positioniert.
Lg
hab ein Problem und irgendwie bekomm ich das nicht so hin wie ich möchte. Übersehe ich etwas?
Folgendes Problem.
Ich habe eine Scrollbar per Prototype/Scriptaculous hinzugefügt. Alles funktioniert einwandfrei.
Normalerweise sollte er jetzt den Text scrollen aber nicht den Text und die gesamte Seite.
Sieht jmd. den Fehler in Quellcode?
Quellcode
- /*Einstellungen*/
- div#container { position: relative; left: 20px; width: 780px; }
- div#head { position: relative; width: 229px; }
- div#content { position: relative; width: 500px; }
- /*Text*/
- div#content div.text-content { margin-top: 25px; width: 500px; padding-bottom: 30px; }
- div#content div.text-content * { text-align: justify; line-height: 20px; }
- div#content div.text-content a { opacity: 0.7; }
- div#content div.text-content a:hover, div#content div.text-content a:focus, div#content div.text-content a:active { opacity: 1; }
- /*Ajax Scrollbar*/
- div#scroll-track { position: absolute; top: 103px; right: 100px; width: 21px; height: 500px; }
- div#scroll-handle { position: absolute; top: 0; left: 0; width: 21px; height: 44px; background: #0d0f13; }
- div#scroll-wrapper { position: relative; width: 100%; }
- div#innercontent { position: relative; padding-top: 240px; width: 100%; }
- div.draggable, div.draggable * { cursor: -moz-grab; }
- div.draggable a { cursor: pointer; }
- body.dragging, body.dragging * { cursor: -moz-grabbing !important; }
Quellcode
Wenn ich jetzt bei #content, #innercontent oder div#content div.text-content margin oder padding setzte positioniert er es zwar richtig, aber wie gesagt der Text und die gesamte Seite Scrollen dann mit. Wenn ich die margin und padding Werte weg lasse scrollt nur der Text aber der gesamte Content Bereich ist falsch positioniert.
Lg