Adventure Game Studio

Community => General Discussion => Topic started by: vict0r on Thu 11/01/2007 13:28:25

Title: HTML problem..
Post by: vict0r on Thu 11/01/2007 13:28:25
I'm just practising with some HTML stuff, and I'm trying to hyperlink an image.
Problem is, that when I do hyperlink them, a weird blue frame appears around
it :-\

Anyone know what I've done wrong:

<a href="hjemmeisden.html"><img src="home.jpg"></a><br>
Title: Re: HTML problem..
Post by: dasjoe on Thu 11/01/2007 14:33:45
the blue border is normal.
just set img { border:0; } in your css and it'll disappear
Title: Re: HTML problem..
Post by: voh on Thu 11/01/2007 16:07:50
<a href="hjemmeisden.html"><img src="home.jpg" border="0"></a><br>

Would also work, and since you're not using XHTML, is acceptable :)
Title: Re: HTML problem..
Post by: TerranRich on Thu 11/01/2007 18:50:03
The proper way according to XHTML, would be to use

<a href="hjemmeisden.html"><img src="home.jpg" style="border: none" /></a><br />

Including the /> parts. But voh's way is just fine. ;)
Title: Re: HTML problem..
Post by: voh on Thu 11/01/2007 18:59:40
Well, TR, technically speaking an alt tag is also required ;)

<a href="hjemmeisden.html"><img src="home.jpg" style="border: none" alt="home" /></a><br />

Also, border="0" is allowed in Transitional and Frameset. So unless you're doing Strict, using style="" is not necessary.

But since he mentioned he's experimenting with HTML, I doubt XHTML will be very important at this point. regular HTML will do fine ;)
Title: Re: HTML problem..
Post by: vict0r on Thu 11/01/2007 20:04:33
Thanks alot! :)
I don't have the html file available right now, but I guess you know your stuff! So thanks a bunch!  :)
Title: Re: HTML problem..
Post by: voh on Thu 11/01/2007 21:17:43
If you ever need assistance with (X)HTML or CSS or whatnot, you know how to reach me. I love helping people with that stuff :)