SimplePortal
Customization => Custom Coding => Topic started 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!
-
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.
-
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.
-
Is setting a block a fixed height REALLY that difficult? Color me surprised.
-
This was answered on the SMF support forum for me.
I ended up fixing the height of the avatar by using this command:
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="35". height="35" />' : '', '
I simply added the "width="35. height="35" part... done.
-
Yep. I found it there and answered it.
-
Is there a way to fix the height of the SP blocks?
-
You can set the height in the body style of the block.
In that case, you might want to do something about the overflow.