Web Hosting Talk







View Full Version : html question


CyberWorldHosting
12-20-2008, 03:21 PM
html question

Hello,
When I have an image with a link to it why does it have a boarder around it? Is it possible to get reed of it.http://www.cyberworldhosting.com/new...orldindex.html
upper right side under starter package.
Thanks Jeremy

040Hosting
12-20-2008, 03:26 PM
Current code for that image is:
Code:
<img width="85" height="26" src="images/more2.gif" alt=""/>
Should be something like:
Code:
<img width="85" height="26" src="images/more2.gif" alt="" border="0" />
This happens because this is a link.





__________________ Being good in business is the most fascinating kind of art - Andy Warhol | Follow us at Twitter: @040hosting
» 040 Hosting (Registered company #17093425 KVK Eindhoven, The Netherlands)

Infinitas
12-20-2008, 03:46 PM
You can also put like below in your css
Code:
.img {border:none;}
This way you will be free from from putting border ="0" in each and every img tag. It will work with all img tags. just put this one line in your css and enjoy. No more borders. But if you need further border anywhere you can put specifically put the border="some value" in required img tag or put a class and control through css

040Hosting
12-20-2008, 03:48 PM
Quote:



Originally Posted by Infinitas


You can also put like below in your css
Code:
.img {border:none;}
This way you will be free from from putting border ="0" in each and every img tag. It will work with all img tags. just put this one line in your css and enjoy. No more borders. But if you need further border anywhere you can put specifically put the border="some value" in required img tag or put a class and control through css


Obviously a better solution and most certainly does the trick when using css.





__________________ Being good in business is the most fascinating kind of art - Andy Warhol | Follow us at Twitter: @040hosting
» 040 Hosting (Registered company #17093425 KVK Eindhoven, The Netherlands)

Infinitas
12-20-2008, 04:01 PM
Exactly, one can easily handle the things through css in easy way rather than editing each html page.If you're usingsame css file in all page that single line will remove border of every image in the website.

040Hosting
12-20-2008, 04:08 PM
Never mind; i am old-school so just looked at the html. css just didnt exist in the times i started, and habit is to look at the html code first.

CyberWorldHosting
12-20-2008, 05:01 PM
Thanks everyone for helping me out.