- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I really have no idea what to call my question but here is exactly what I am wanting to do.
I have my own forum running on phpbb3 and I have set rules for signatures for users like your signature can’t be over 500 pixels in height. Now I know there will always be someone who either doesn’t read the rules or simply doesn’t care so I was wondering if there was a way to dynamically declare an overflow css depending on the size of the signature of a user.
Example:
User A:
signature contains a single image that is only 300 x 100…so I would want the size of the signature box to fit the image.
User B:
signature contains two images each 400 x 300 totaling the signature size to be 400 x 600…here I want the overflow to be declared so it creates scrollable signature for that user.
So basically I want the overflow to only activate if a user has 500px worth of content, text or images, but if they dont to just display the content normally.
What I tried:
This works essentially but the problem is that it resizes the signature field on EVERYONE’s signature including User A who wasn’t using 500px to suddenly be 500px regardless the content.
Haha you must really be fond of scrolling. lol
Yea, your (theoretical) solution lies in "max-height."
It’s the theoretical solution because it doesn’t work in IE6…