Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 CSS question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 22 October 2003 :  17:49:17  Show Profile
Anyone have a good way I can emulate the max-height property to render in Internet Explorer (and Netscape)? I've got some data pulled from database that I want to display in a div. I want the height of the div to be no more than let's say 150px, but if the amount of data is small, I want the div to shrink to whatever height is necessary.

Any ideas?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 October 2003 :  18:22:01  Show Profile  Visit D3mon's Homepage
Is it just text?


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 October 2003 :  18:32:47  Show Profile  Visit D3mon's Homepage
Gotta hit the sack, but here's my theory:

Set the line height (in CSS) to 15 px then write a maximum of 10 lines of text. Height of wrapper DIV will vary depending on how many lines of text you write, but neer more than 150-odd pixels.
Depends on the ability of CSS to accurate reproduce line height, cross-browser though.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 October 2003 :  18:38:02  Show Profile  Visit D3mon's Homepage
According to TopStyle Pro 3, line-height is quite well supported.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 22 October 2003 :  18:47:50  Show Profile
Yeah, but the width will vary and therefore the number of lines will vary too.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 October 2003 :  18:49:48  Show Profile  Visit D3mon's Homepage
What kind of data?


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 22 October 2003 :  19:33:58  Show Profile
just text.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07