SimplePortal

Customization => Custom Coding => Topic started by: FrizzleFried on April 23, 2012, 07:47:58 PM

Title: Fixed Height.
Post by: FrizzleFried on April 23, 2012, 07:47:58 PM
I notice that a NEW USERS block I have resizes depending on the vertical size of the avatar causing the block to look out of place when sitting side by side with another fixed height block.

Is there an easy way to set a fixed height for a block?

Sorry for the newb question.

Thanks!

Title: Re: Fixed Height.
Post by: ARG on April 24, 2012, 01:23:39 AM
Can you provide a screenshot? If you have "Fixed height" blocks to match others then you may need to adjust avatars to a certain height to fit the area. The more users that you have in that specific block will determine the overall height.

Title: Re: Fixed Height.
Post by: FrizzleFried on April 24, 2012, 08:34:02 AM
Yes... I understand... however each users avatar is a different height (rather than a fixed height)... so the size of the box alters with the size of the different avatars... I need to either (A) Set the height of the avatars to a FIXED HEIGHT or (B) Set the box itself to a FIXED HEIGHT.  I know it's possible as I have a number of other blocks with scroll bars that have a fixed height.
Title: Re: Fixed Height.
Post by: FrizzleFried on April 25, 2012, 10:11:54 AM
Is setting a block a fixed height REALLY that difficult?  Color me surprised.

Title: Re: Fixed Height.
Post by: FrizzleFried on April 25, 2012, 04:00:19 PM
This was answered on the SMF support forum for me.

I ended up fixing the height of the avatar by using this command:

Code: [Select]
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="35". height="35" />' : '', '
I simply added the "width="35. height="35" part... done.

Title: Re: Fixed Height.
Post by: AngelinaBelle on April 30, 2012, 12:17:08 PM
Yep.  I found it there and answered it.
Title: Re: Fixed Height.
Post by: mjindustry on October 18, 2012, 08:08:38 PM
Is there a way to fix the height of the SP blocks?
Title: Re: Fixed Height.
Post by: AngelinaBelle on November 02, 2012, 04:23:00 PM
You can set the height in the body style of the block.
In that case, you might want to do something about the overflow.
SimplePortal 2.3.8 © 2008-2024, SimplePortal