HighDots Forums  

DIV question...

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss DIV question... in the Cascading Style Sheets forum.



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

Default DIV question... - 05-06-2005 , 09:31 AM






is it possible to have a div so that when its height grows more than say
100px, do an overflow:auto ?

what i really need is a div with say one line of text to be as high as the
one line is and for a 1000 line to be no more than 100px with scrollbars
displayed :-)

code sample is appreciated



Reply With Quote
  #2  
Old   
Barbara de Zoete
 
Posts: n/a

Default Re: DIV question... - 05-06-2005 , 09:47 AM






On Fri, 6 May 2005 09:31:57 -0400, Mel <mel.m.heravi (AT) hp (DOT) com> wrote:

Quote:
is it possible to have a div so that when its height grows more than say
100px, do an overflow:auto ?

what i really need is a div with say one line of text to be as high as
the one line is and for a 1000 line to be no more than 100px with
scrollbars
displayed :-)

<http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-max-height>
<http://www.doxdesk.com/software/js/minmax.html>


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
Quote:
weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'


Reply With Quote
  #3  
Old   
Barbara de Zoete
 
Posts: n/a

Default Re: DIV question... - 05-07-2005 , 04:42 AM



[As extracted from my private e-mailbox. That really pisses me off.
Mel, sending this stuff to my mailbox instead of replying in the newsgroup
Is a *big* mistake. You ask in this group, you discuss the rest in this
group. I'm not here to personnally aid you, unless you pay me 1.000
dollars for each answer.
If my answer is helpful to you, it can be to others too. Keep your
correspondence in here (so all gets archived to be found by others) or get
killfiled instandly.

And topposting too... another *bad*. Had you been reading here a bit, you
would have noticed this within a few posts (toppost fixed)]

"Barbara de Zoete" <b_de_zoete (AT) hotmail (DOT) com> wrote

Quote:
On Fri, 6 May 2005 09:31:57 -0400, Mel <mel.m.heravi (AT) hp (DOT) com> wrote:

is it possible to have a div so that when its height grows more than
say 100px, do an overflow:auto ?

what i really need is a div with say one line of text to be as highas
the one line is and for a 1000 line to be no more than 100px with
scrollbars displayed :-)

http://www.w3.org/TR/REC-CSS2/visude...def-max-height
http://www.doxdesk.com/software/js/minmax.html
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses:
----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html
[and not deleting the sig(nature) of my message... Mistake after mistake.
Do you _need_ to piss off people or something?]

Quote:
i tried the suggestion,
No, you didn't. Read the _second_ url.

Quote:
but it does not work on IE.
Had you actually read the second url I provided, you would have know this
*and* you would have known the solution too.

Quote:
am i doing something wrong ?
All too many things, and that includes your coding.

---------------

[for clearity to others than Mel and me, I leave in the rest of his post
to my e-mail address]

Quote:
thanks for your help
style
.xxx {
clear:right;
overflow:auto;
padding:10px;
min-width:400px;
max-width:500px;
min-height:50;
max-height:100px;
background:wheat;
color=brown;
/style
div class=xxx
p
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
nostrud exercitation ulliam corper suscipit lobortis nisl ut
diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
nostrud exercitation ulliam corper suscipit lobortis nisl ut
diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
nostrud exercitation ulliam corper suscipit lobortis nisl ut
/p
/div


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
Quote:
weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'


Reply With Quote
  #4  
Old   
Jan Roland Eriksson
 
Posts: n/a

Default Re: DIV question... - 05-07-2005 , 07:36 AM



On Sat, 07 May 2005 10:42:05 +0200, "Barbara de Zoete"
<b_de_zoete (AT) hotmail (DOT) com> wrote:

Quote:
[As extracted from my private e-mailbox.
[That really pisses me off...
Here is my high five for you Barbara :-)

--
Rex




Reply With Quote
  #5  
Old   
Mel
 
Posts: n/a

Default Re: DIV question... - 05-09-2005 , 09:20 AM




"Jan Roland Eriksson" <jrexon (AT) newsguy (DOT) com> wrote

Quote:
On Sat, 07 May 2005 10:42:05 +0200, "Barbara de Zoete"
b_de_zoete (AT) hotmail (DOT) com> wrote:

[As extracted from my private e-mailbox.
[That really pisses me off...

Here is my high five for you Barbara :-)

--
Rex



Mel's apologies to all. No disrespect, it just happend :-(

sorry Barbara




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 - 2008, Jelsoft Enterprises Ltd.