Problem with avatar image
4 posters
Page 1 of 1
Problem with avatar image
I put the reputation bar javascript in profile, but the problem is that if I put a picture of stars, they leave me high, because the avatar is of limited size ...
See picture ->
I like the avatar to be limited (150px 150px), but the reputation to be as shown... Like this: ->
How can I fix this? I'm looking CSS script just resize the avatar.
Thanks in advance!
See picture ->
I like the avatar to be limited (150px 150px), but the reputation to be as shown... Like this: ->
How can I fix this? I'm looking CSS script just resize the avatar.
Thanks in advance!
Last edited by smejker on May 19th 2014, 1:39 pm; edited 1 time in total
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Hello smejker,
Instead of using width and height to resize the avatar, try instead using max-width and max-height.
Ex :
If an image is larger than 150px in width, then it will be resized to the specified value.
Instead of using width and height to resize the avatar, try instead using max-width and max-height.
Ex :
- Code:
.class img {
max-width:150px;
max-height:300px;
}
If an image is larger than 150px in width, then it will be resized to the specified value.
Re: Problem with avatar image
Thanks Ange Tuteur
But but with this code nothing has changed ... everything is still the same.
But but with this code nothing has changed ... everything is still the same.
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Please post a link to a topic on your forum which guests can see.
Thank you.
Thank you.
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Hi
Hmm.. try this:
Regards,
Pizza Boi
Hmm.. try this:
- Code:
div.postprofile dl dt img {
max-width: 150px;
max-height: 150px;
}
Regards,
Pizza Boi
Pizza Boi- Hyperactive
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: Problem with avatar image
O, o... Nothing... anyway thanks!
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Change your selector to :
This should select the first image(usually the avatar)
- Code:
.postprofile dt > img
This should select the first image(usually the avatar)
Re: Problem with avatar image
No change, so I went back to the squares ... so now... no problems with the size of the avatar
I think you may be able to regulate the size of the stars in the script... Here:
Anyway ... Regards & Respect!
I think you may be able to regulate the size of the stars in the script... Here:
- Code:
repImage :'http://i57.servimg.com/u/f57/18/21/41/30/star12.png'
Anyway ... Regards & Respect!
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Any solution???
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Here Is it Ange:
- Code:
.postprofile dt img {
max-width: 150px;
min-width: 150px;
max-height: 150px;
min-height: 150px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
-moz-box-shadow: 0px 0px 5px black;
-webkit-box-shadow: 0px 0px 5px black;
box-shadow: 0px 0px 5px black;
border: 2px #0000ff;
padding: 2px;
}
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Replace it by :
- Code:
.postprofile dt > img {
max-width: 150px;
min-width: 150px;
max-height: 150px;
min-height: 150px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-box-shadow: 0px 0px 5px black;
-webkit-box-shadow: 0px 0px 5px black;
box-shadow: 0px 0px 5px black;
border: 2px #0000ff;
padding: 2px;
}
Re: Problem with avatar image
With this code avatar is with original size. It's not 150px...
I'll probably go back to the squares (cubes), because only then I haven't problem...
In any case thanks
You can close this thread...
Regards & Respect!
I'll probably go back to the squares (cubes), because only then I haven't problem...
In any case thanks
You can close this thread...
Regards & Respect!
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Problem with avatar image
Locked as Requested
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum