HighDots Forums  

scrollbar in layer

alt.html.dhtml alt.html.dhtml


Discuss scrollbar in layer in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fjodor Klondyke
 
Posts: n/a

Default scrollbar in layer - 07-29-2003 , 06:29 AM






hello

i have some layers on a page.
in one layer there must be text.
sometimes the text is longer than the layer.
i don't want to change the size of that layer.
is it possible to make a scrollbar in a layer, that works only for that
layer?

thanks

fjodor



Reply With Quote
  #2  
Old   
Fjodor Klondyke
 
Posts: n/a

Default Re: scrollbar in layer - 07-29-2003 , 07:42 AM






i mean a 'div' like:

#someLayer{
positon:absolute;
width:300px;
height:150px;
background-color:#aabbcc;
color:#aa22ee;
z-index:5;
}

<div id="someLayer">
here comes information from a database
</div>

because the text from the database is sometimes 5 lines, and another time 40
lines i want a scrollbar
in the layer.

i hope you can understand it

fjodor


"brucie" <brucie01 (AT) loser (DOT) brucies.com> schreef in bericht
news:1kw6hf013ulm2.dlg (AT) alt-html (DOT) org...
Quote:
In post <bg5ijk$kiv$1 (AT) reader11 (DOT) wxs.nl
Fjodor Klondyke said...

i have some layers on a page.

what is a layer? do you mean a z-index positioned <div>? or just a
positioned <div>? or something completely different?

in one layer there must be text.
sometimes the text is longer than the layer.
i don't want to change the size of that layer.
is it possible to make a scrollbar in a layer, that works only for that
layer?

http://www.w3.org/TR/REC-CSS2/visufx.html#overflow

--
brucie a. blackford. 29/July/2003 08:54:25 pm kilo.
http://loser.brucies.com/



Reply With Quote
  #3  
Old   
Fjodor Klondyke
 
Posts: n/a

Default Re: scrollbar in layer - 07-29-2003 , 08:04 AM



i have used 'overflow:auto' but the layer only gets as large as the text.
when i use 'overflow:scroll', there is a scrollbar, but the layer gets as
large as the text.

do you have any idee how to solve this?

thanks

fjodor



"brucie" <brucie01 (AT) loser (DOT) brucies.com> schreef in bericht
news:1dzo0s7guyly6$.dlg (AT) alt-html (DOT) org...
Quote:
In post <bg5mtr$fjg$1 (AT) reader08 (DOT) wxs.nl
Fjodor Klondyke said...

i mean a 'div' like:

#someLayer{
positon:absolute;
width:300px;
height:150px;
background-color:#aabbcc;
color:#aa22ee;
z-index:5;

add overflow:auto; (or scroll)

please don't toppost
How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post


--
brucie a. blackford. 29/July/2003 09:53:13 pm kilo.
http://loser.brucies.com/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.