Postponed (maintainer needs more info)
Project:
User Maintenance
Version:
master
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2008 at 11:37 UTC
Updated:
13 Jun 2008 at 08:19 UTC
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
Comments
Comment #1
dman commentedWhat did you try so far? What is it that's not working?
Comment #2
raymondfranco commentedi 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?
Comment #3
suit4 commentedDo 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:
replace img with your profile image style selector class
Comment #4
dman commentedThe 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?
Comment #5
raymondfranco commentedNo guys, you are getting it all wrong, follow this link:
http://drupal.org/node/35730
This is where i got the code from
Comment #6
suit4 commentedI 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.