Border around profile picture
raymondfranco - June 12, 2008 - 11:37
| Project: | User Maintenance |
| Version: | HEAD |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hi guys, not sure if this is the right place to post.
I have a profile image and cant seem to get a border around it.
Here is the code
<?php if($user->picture) {print theme('user_picture', $user);}?>
The image shows just fine, but i need to get a border around them..
please help

#1
What did you try so far? What is it that's not working?
#2
i tried putting it in to a div then giving the div a border its a 200x200 image so i set the dive to be that size, but couldnt see any border.
I also tried giving a table a border but nothing :(
I need to put a border around the profile images
any ideas?
#3
Do it with CSS.
Use firefox with developer toolbar extension, press CTRL+SHift+F and point on the image to get its CSS style.
Press CTRL+SHIFT+E, switch to styles.css and create a css rule for that element.
Something like:
img {border: 1px solid black;
}
replace img with your profile image style selector class
#4
The only guess I can make from the information provided is that something in your style syntax is wrong. Like you missed a semi-colon somewhere.
Unless you post a link to the site or the code, we are working blind.
Did you VALIDATE?
#5
No guys, you are getting it all wrong, follow this link:
http://drupal.org/node/35730
This is where i got the code from
#6
I don't get your point.
If your problem still exists, please provide more information about what you did to achieve a bordered image.
In general I would say, borders on images are best created using a style for the element to have a border.
If you are talking about something like : that's oldschool and won't validate.