Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: HTML-help, please.  (Read 1470 times)

0 Members and 1 Guest are viewing this topic.

Fox

Turnbeutelvergesser since 1988.
HTML-help, please.
« on: June 25, 2007, 05:57:10 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
Right, so I want a picture to link to a different website. When I use this:
Code: [Select]
<a href="www.homepage.com"><img src="www.pictures.com/pic.jpg"></a>
then it does link to that site, but it has an ugly blue border around it. How can I prevent that?
Logged
  • Me on deviantART

CrystalAngel04

Resident ZFGC female
Re: HTML-help, please.
« Reply #1 on: June 25, 2007, 05:58:28 pm »
  • \\*Caution*\\ The Internets: May contain Women
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1323
Code: [Select]
<a href="www.homepage.com"><img src="www.pictures.com/pic.jpg" border="0"></a>
I think.... don't hold me to it though
Logged
  • -= Crystal Angel Creations =-

Fox

Turnbeutelvergesser since 1988.
Re: HTML-help, please.
« Reply #2 on: June 25, 2007, 06:00:19 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
Code: [Select]
<a href="www.homepage.com"><img src="www.pictures.com/pic.jpg" border="0"></a>
I think.... don't hold me to it though
You win several internets. It worked.
Logged
  • Me on deviantART
Re: HTML-help, please.
« Reply #3 on: June 25, 2007, 06:04:11 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 256
Aye. "boarder" is technically a deprecated element, you should use CSS to define the border style as 0px or none, but most browsers still support it.
Logged
  • My Myspace?
Re: HTML-help, please.
« Reply #4 on: June 27, 2007, 07:38:32 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1645
Aye. "boarder" is technically a deprecated element, you should use CSS to define the border style as 0px or none, but most browsers still support it.
Yeah you're right.

Code: [Select]
<style type="text/css">
img
{
  border: 0;
}
</style>

Use this fox, the most browsers supports it.
Logged
  • Virtual Security
Re: HTML-help, please.
« Reply #5 on: June 27, 2007, 10:15:15 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 256
Correct. Another way to specify this style would to be in a span or other separating element:
Code: [Select]
<span style="border: 0;"><img src="lol.jpg" /></span>Forgive me if my syntax isn't exactly correct, it's been a few years since I've done a lot of web design and CSS, but I believe that's correct.
Logged
  • My Myspace?
Re: HTML-help, please.
« Reply #6 on: June 27, 2007, 01:57:51 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 563
Correct. Another way to specify this style would to be in a span or other separating element:
Code: [Select]
<span style="border: 0;"><img src="lol.jpg" /></span>Forgive me if my syntax isn't exactly correct, it's been a few years since I've done a lot of web design and CSS, but I believe that's correct.

That is similar to the above its just the css is located within the span and also its not a link, I find its best to use an external .css mostly.
Logged

I ♥ Open Girlfriend (What!? I didn't add this.. must have been Solly!)
  • My DevArt Account
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.019 seconds with 47 queries.