borders

liunx

Guest
I want to put borders round my thumbnail images and I've always used <border="1> in my scripting. However when I try to use that script in my new website, it doesn't work. The site uses css... will this have caused the problem, and how do I get around it- I'm sure that it's something very simple, but I'm inept. Let me know if you need to see the HTML that I have used.<!--content-->here's the URl for the site I'm talking about- <!-- w --><a class="postlink" href="http://www.geocities.com/nessdog42">www.geocities.com/nessdog42</a><!-- w --><!--content-->Depends on what type of border you want around the image. If you want the default border that appears around a linked image, then just enter the BORDER property to the IMG tag. This will over-ride any css that would have affected that specific feature.<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"someplace.ext"><br />
<img src=http://www.htmlforums.com/archive/index.php/"thumbnailpic.gif" border="1"><br />
</a><br />
<br />
If you want to put a border on a border that is not the link border, try using a table with border around the image like so...<br />
<br />
<table border="1"><tr><td><br />
<img src=http://www.htmlforums.com/archive/index.php/"thumbnailpic.gif"><br />
</td></tr></table><!--content-->it can also be that you have 4 body tags.<br />
<br />
<body><br />
<body bgcolor=999966><br />
<center><font face="verdana" size="2" color=ffffcc><br />
<body link=ffffcc><br />
<body vlink=ffffcc><br />
<br />
you can only use one.<!--content-->It's still not working- pooh. Thanks anyway :)<!--content-->what do you mean, it works for me.<br />
<br />
and you are still using 4 body tags.<!--content-->I wasn't using body tags on my test page. And it does work with 4 body tags because it was working on my enlarged images. Anyway, I've been advised not to use borders, so thanks anyway.<!--content-->well, you are using 4 body tags on the test page you showed us,<br />
<br />
<body><br />
<body bgcolor=999966><br />
<center><font face="verdana" size="2" color=ffffcc><br />
<body link=ffffcc><br />
<body vlink=ffffcc><br />
<br />
that will confuse any browser and is not recommended. if you want to use all that stuff make it 1 body tag.<br />
<br />
<br />
<body bgcolor=999966 link=ffffcc vlink=ffffcc><br />
<center><font face="verdana" size="2" color=ffffcc><br />
<br />
<br />
and while you are at it, read on how to do html. that will work but is not recommended and not good coding practice, as you forgot to add the # to the hex numbers.<br />
<br />
<body bgcolor="#999966" link="#ffffcc" vlink="#ffffcc"><br />
<center><font face="verdana" size="2" color="#ffffcc"><!--content-->oki thank you very much.<!--content-->
 
Back
Top