Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] HTMLFrage
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
amdunlock
Guru
Guru


Joined: 24 Apr 2004
Posts: 409
Location: Darmstadt Germany

PostPosted: Sun Jan 16, 2005 3:48 pm    Post subject: [OT] HTMLFrage Reply with quote

Hi,

ich habe mal eine frage zu html.

ich habe links am rand eine divbox positioniert.

Code:

#main2
        {
   position: absolute;
   border-style:solid;
   border-color:black;
   margin: 10px 10px;
   border-width:0px 0px;
   left: 270;
   width: 460;   
        }


wie bekomme ich diese dazu, mitzuscrollen, also das sie immer sichtbar ist. mir wurde in einem ircchannel geraten, zwecks nicht anderer moeglichkeiten mit javascript zu machen.

gibt es keine "interne css moeglichkeit" ? wenn nein, wie mache ich das mit js? thx a lot olli :D
_________________
-2500+ @ 3200+ ---- 512MB-Ram watercooled Htf X Triple @ 3 x 5V - Abit AN7 s*cking microguru - Geforce 6800 - Audigy 2 -=Gentoo Stage 2004.2 @ ext3=-
Back to top
View user's profile Send private message
zeroK
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 159
Location: Austria.Klagenfurt

PostPosted: Sun Jan 16, 2005 3:54 pm    Post subject: Reply with quote

Probiers mal mit
Code:
position:fixed;


Ein Problem gibts damit aber leider: Wenn ich mich richtig erinnere, haben einige (wenn nicht sogar alle) IE-Versionen ein Problem damit.
Back to top
View user's profile Send private message
viper26
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 132
Location: Brilon

PostPosted: Sun Jan 16, 2005 4:05 pm    Post subject: Reply with quote

ich meine es funktioniert nur bei ie bin mir aber auch nicht mehr 100% sicher. alternativ gäbe es auch nen frame oder ein inlayer leider funktioniert letzteres auch nicht bei allen browsern
Back to top
View user's profile Send private message
zeroK
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 159
Location: Austria.Klagenfurt

PostPosted: Sun Jan 16, 2005 4:09 pm    Post subject: Reply with quote

viper26 wrote:
ich meine es funktioniert nur bei ie bin mir aber auch nicht mehr 100% sicher. alternativ gäbe es auch nen frame oder ein inlayer leider funktioniert letzteres auch nicht bei allen browsern


Also soweit ich sehe, ist das hier auch nur ein "position:fixed" div, und das ging bei mir schon immer in Firefox und Opera ;-)
Back to top
View user's profile Send private message
amdunlock
Guru
Guru


Joined: 24 Apr 2004
Posts: 409
Location: Darmstadt Germany

PostPosted: Sun Jan 16, 2005 4:22 pm    Post subject: Reply with quote

kewl :D

mit fixed funzt es. nur ist unser lehrer ein iefanatiker. naja kompatibilitaet ist bei uns noch kein bewertungsgrund, auch nicht die kompatibilitaet zum ie :twisted:

gut. nur habe ich noch ein anderes kleines prob. die seite ist linksbuendig. jedoch bekomme ich es per div nicht hin, sie mittelbuendig zu machen, da dies mit mehrern divboxen logischerweise nicht funtkioniert. ich waere sehr dankbar fuer diese unterstuetzung. thx olli :D
_________________
-2500+ @ 3200+ ---- 512MB-Ram watercooled Htf X Triple @ 3 x 5V - Abit AN7 s*cking microguru - Geforce 6800 - Audigy 2 -=Gentoo Stage 2004.2 @ ext3=-
Back to top
View user's profile Send private message
zeroK
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 159
Location: Austria.Klagenfurt

PostPosted: Sun Jan 16, 2005 4:32 pm    Post subject: Reply with quote

Vielleicht hilft ein WrapperDIV um alle herum, das du dann auf margin:auto setzen kannst.
Back to top
View user's profile Send private message
amdunlock
Guru
Guru


Joined: 24 Apr 2004
Posts: 409
Location: Darmstadt Germany

PostPosted: Sun Jan 16, 2005 4:42 pm    Post subject: Reply with quote

was bedeutet wrapperdiv? ;) ich finde dazu in selfhtml nichts.

denn ein normales div wird ja immer mit </div> beendet. nun kann ja dann nicht unterschieden werden, welches beendet werden soll. oder ist ein wrapperdiv ein besonderes? thx olli :D
_________________
-2500+ @ 3200+ ---- 512MB-Ram watercooled Htf X Triple @ 3 x 5V - Abit AN7 s*cking microguru - Geforce 6800 - Audigy 2 -=Gentoo Stage 2004.2 @ ext3=-
Back to top
View user's profile Send private message
viper26
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 132
Location: Brilon

PostPosted: Sun Jan 16, 2005 4:51 pm    Post subject: Reply with quote

@zeroK

hm, kann sein. vielleicht hab ich mich ja auch vertan

:lol:
Back to top
View user's profile Send private message
viper26
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 132
Location: Brilon

PostPosted: Sun Jan 16, 2005 4:51 pm    Post subject: Reply with quote

@zeroK

hm, kann sein. vielleicht hab ich mich ja auch vertan

:lol:
Back to top
View user's profile Send private message
zeroK
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 159
Location: Austria.Klagenfurt

PostPosted: Sun Jan 16, 2005 5:01 pm    Post subject: Reply with quote

amdunlock wrote:
was bedeutet wrapperdiv? ;) ich finde dazu in selfhtml nichts.

denn ein normales div wird ja immer mit </div> beendet. nun kann ja dann nicht unterschieden werden, welches beendet werden soll. oder ist ein wrapperdiv ein besonderes? thx olli :D


Mit wrapperdiv meine ich einfach ein div, das um alle deine anderen divs herumgeht.
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Sun Jan 16, 2005 9:09 pm    Post subject: Reply with quote

Eine einfache Methode, auch im IE einen Hauch von position:fixed zu bekommen, ist IIRC das:
Code:
position: absolute; position: fixed;
top: 0; top: expression( document.documentElement.scrollTop + "px" );

Und ein </div> schließt natürlich immer das zuletzt geöffnete <div>.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum