The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Avatar display

3 posters

Go down

Solved Avatar display

Post by Mr Rockeye 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
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 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
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Solved Re: Avatar display

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

Thanks it worked Smile
Mr Rockeye
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 June 15th 2014, 11:38 pm

Topic Solved & Archived


Avatar display Slgray10

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

Male Posts : 51567
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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