Thread: border on image links
Results 1 to 12 of 12
How to remove blue border around image link Forum: HTML ForumReplies: 1
Using an image as a border Forum: HTML ForumReplies: 1
one image three links Forum: HTML ForumReplies: 9
Site Shifts To Left Upon Image Hover / Extra Border Problem Forum: CSS ForumReplies: 3
image border help plz Forum: Graphics ForumReplies: 5
07-25-2002, 01:16 PM #1
border on image links
as everyone knows, when u put up an image link, there's usually a border around the image. i learned dat by putting 'border="0"' , i could remove dat border. but wat if i want the border , however , in the color of black?
07-25-2002, 03:04 PM #2
The border color, by default, is the link color you specified in the BODY tag. I think you would be able to change the border color of an image link using CSS.
07-25-2002, 03:17 PM #3
in my head section, i wrote:
edit: edited to remove the first and last <> brackets (certain code likes to play nasty tricks on the front page )
but ,still, the border colour is blue
Last edited by HTML; 07-25-2002 at 03:37 PM.
07-25-2002, 03:39 PM #4
07-25-2002, 04:59 PM #5
but i use the code and it works on normal text links, so....
u can actualy chek out my web page at
07-25-2002, 05:05 PM #6
I clicked the link and it returns a 404 error(file not found)
Anticipating your response that you see the page just fine, I would suggest clearing your cache and you will see it is not there
edit: I also went to removed the links.html to visit your front page and tried to follow the link from there, still got a 404 error.
07-25-2002, 07:06 PM #7
sorry, i put something wrong b4, dat's y u got an 404 error page.
07-25-2002, 08:12 PM #8
This link worked, be sure to correct the link on your index page also. I looked at your CSS and the comment tags are there. Also, you only need 1 opening and closing style tag, a new set of tags are not needed for each element.
The best thing to do is to visit http://css.somepeople.net I have a feeling dean is going to give me a reason that the comment tags are ok.
Dean, if I may go off topic for a minute, http://www.quietdean.com/?page=css
07-25-2002, 09:19 PM #9
so.....how DO u get borders in color black?
07-26-2002, 12:14 AM #10
Thanks Dave. I got the hang of my referral id, lol.
The comment tags are good. They stop the css code being displayed as text in older browsers that do not understand the style tag.
Daves right, the tutorial covers borders quite well.
heres a shortcut -
<a href="mylink.html"><img src="myimage.jpg" style="border: 4px dashed black;"></a>If one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
07-26-2002, 09:31 AM #11
thx , i tried to go into dean's site, and couldn't find it the first time, now i could. thx
08-05-2002, 01:17 PM #12
its quite simple->
eg <size="1" color="#000000">
if it hasnt worked, press F5 to refresh ur cache