The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Avatar display

View previous topic View next topic Go down

Solved Avatar display

Post by Mr Rockeye on June 13th 2014, 6:39 pm

Hey,

So I want to put the following in CSS to my site:
A location for the avatar, this location won't be overlapped by any other items.

I tried it with the following code:
Code:
.postprofile dl dt img {
width: 150px;
height: 150px;
}
But stretches the image, which isn't supposed to happen according to my plan.
Does anyone know how to fix this?

This can be solved by a second solution which I prefer (as is it more neat) that goes as follows:
If the avatar has a length of Y pixels high, how can I position my labels on, lets say Y+10 Pixels?
Is there a code for this?


Last edited by Mr Rockeye on June 15th 2014, 9:18 pm; edited 1 time in total

Mr Rockeye
Forumember

Posts : 86
Reputation : 1
Language : English

http://www.unitedcommunity.tk

Back to top Go down

Solved Re: Avatar display

Post by Jophy on June 15th 2014, 9:34 am

Hello,

If you're referring to the location only, I think you should remove the img to the selector as it would only apply to the image/avatar itself, try this code instead:

Code:
.postprofile dl dt {
  width: 150px;
  height: 150px;
}

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: Avatar display

Post by Mr Rockeye on June 15th 2014, 9:17 pm

Thanks it worked Smile

Mr Rockeye
Forumember

Posts : 86
Reputation : 1
Language : English

http://www.unitedcommunity.tk

Back to top Go down

Solved Re: Avatar display

Post by SLGray on June 15th 2014, 11:38 pm

Topic Solved & Archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35670
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum