View Full Version : Removing Border Around Linked Image
SNIPER
June 28th, 2007, 05:26 PM
I liked Kirupa's tutorial on making a page with random images every time the page refreshed but I needed to be able to do that AND have each of the images link. I found a tutorial that shows how to do that using PHP on some site and everything works except there is a border around the image.
I uploaded the original source files to this link. There were no images so it shows the alternate text and as you can see it has the ugly blue border around it.
http://www.urgentfury.com/test2/
I can't have a border because the page I want to use it for already has an image border made specifically for a 160 x 600 skyscraper ad and the line border causes the image to "break". See example here:
http://www.urgentfury.com/test/
I don't know if this is a PHP or HTML problem but I can't find out where in the world to remove that border. All my code has Border=0.
I did a search on the net for an answer and some people say that you can't see the border in IE but you can see it in Firefox, which is the browser I use.
If you want to take a look at the source files you can download the zip here:
http://www.alistapart.com/d/betterrotator/rotator.zip
It contains an index.php, rotator.php and images.ini file.
Any help would be greatly appreciated. Thanks. :bucktooth:
simplistik
June 28th, 2007, 06:45 PM
in your css just do
img { border: 0 none; }
SNIPER
June 28th, 2007, 06:55 PM
in your css just do
img { border: 0 none; }
I'm a designer not a programmer so yes, I'm a noob, can you be a little more specific? Where do I input that code? I have an index.php and a rotate.php file, do I put it in one of those or do I have to create a separate .css page or something? Thanks.
simplistik
June 28th, 2007, 07:21 PM
http://www.w3schools.com/css/default.asp
SNIPER
June 28th, 2007, 07:35 PM
http://www.w3schools.com/css/default.asp
I'm sorry but that was not very helpful. I take it I'm supposed to use CSS....well, I can't find what I need on that site. All I need is a simple explanation like "Put this code "XXX" into this file between these tags"
Can anyone else help? Please?
simplistik
June 28th, 2007, 07:37 PM
see here's the problem... the fact that you don't take the initiative to read what i just sent you won't help you at all. that goes step by step on how to impliment css onto a page. the first 3 sections on the left navigation are exactly what you're looking for.
SNIPER
June 28th, 2007, 07:50 PM
see here's the problem... the fact that you don't take the initiative to read what i just sent you won't help you at all. that goes step by step on how to impliment css onto a page. the first 3 sections on the left navigation are exactly what you're looking for.
No, the problem is that I don't have the time to wade through pages and pages of info on how to do something when I don't even know what I'm supposed to be looking for and people like you getting pissed off because I ask. That's what I use the forums for. To get a concise answer to a specific question. I don't want to learn everything there is to know about CSS, I just need to solve one small problem that I know is easy to fix. I took the time to ask a specific question and even put a link to the source files, so if all I'm getting in return is some cryptic info with a piece of code I don't know where to put and link to pages upon pages of info, then I don't need your help. Let someone else help me if it's too much of a bother for you.
I don't have the luxury of being a forum rat and patting myself on the back just because I post up a link to "help" someone.
simplistik
June 28th, 2007, 07:56 PM
I'm not pissed... i gave you the solution, you say you don't have time to look for the answer when it's on the first few paragraphs of those pages, but you can post half an essay of how you want to cry about not being spoon fed. SO instead of tryin to help not be a one trick pony... and thinking that you may possibly want to try and learn something which is pretty relevant to what you want to do i'll go ahead and give you what you want.
<meta name="Robots" content="index,follow">
<meta name="Googlebot" content="index,follow">
<style type="text/css">
img { border: 0 none; }
</style>
</head>
you'll notice that what I just posted was smack dab on the front page of the 3rd link of that site.
thats all folks
June 28th, 2007, 07:56 PM
Simplistik beat me to the answer
SNIPER
June 28th, 2007, 08:25 PM
I'm not pissed... i gave you the solution, you say you don't have time to look for the answer when it's on the first few paragraphs of those pages, but you can post half an essay of how you want to cry about not being spoon fed. SO instead of tryin to help not be a one trick pony... and thinking that you may possibly want to try and learn something which is pretty relevant to what you want to do i'll go ahead and give you what you want.
<meta name="Robots" content="index,follow">
<meta name="Googlebot" content="index,follow">
<style type="text/css">
img { border: 0 none; }
</style>
</head>
you'll notice that what I just posted was smack dab on the front page of the 3rd link of that site.
Thank you. That's all I needed and all I wanted to know. :asleep:
I'll use that link you gave me to learn more later when I have time. Time is just something I don't have right now on the project I'm working on.
deletedUser2352352
July 1st, 2007, 03:59 PM
well that was a bit of a weird post.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.