Username: Password:   Forgot your password?
 
Forums
» View Categories » Coding Help & Templates » Two questins about links
Previous 30
Page of 1 Next 30

Member:18,557
Posts:2,943
Joined:3-15-2007
Seen:11-27-2009
Jul 21,`09 7:16am | Quote |

On my comic, I have two issues:

One: The url tags (on author comments) always open new windows.
Two: All the image links have borders around them.

Can someone give me HTML codes to solve these? Or is there no way?

This post was last edited on Jul 21,`09 9:04pm


"The only moral it is possible to draw from this story is that one should never throw the letter Q into a privet bush, but unfortunately there are times when it is unavoidable."
-Douglas Adams, The Restaurant At the End of the Universe
 
Member:3,427
Posts:194
Joined:4-28-2006
Seen:11-27-2009
Jul 23,`09 12:32am | Quote |

"therealtj" Said:

Two: All the image links have borders around them.


Add border="0" like so -

<a href="URL"><img src="IMG" border="0"></a>

when you make an image link to something. That should fix it.

This post was last edited on Jul 23,`09 12:37am

 
skoolmunkee
Admin
Send a private quack!
Member:56
Posts:5,889
Joined:1-2-2006
Seen:11-27-2009
Jul 23,`09 3:58am | Quote |

That will work if the images are in the html coded parts of the page, yes!

However if he's putting the images in the author's comments (it's not clear where he's got them) then he's stuck with the bbcode tags, where you can't specify things like border. What would need to happen to get rid of the border is figure out which image code in the css it's using, and then apply a border:none to it.

The URL-opening thing sounds like something that's been set in the css too, or at least COULD be. The default ont he web is to open in the same window, so there's something somewhere telling it NOT to do that... if it's in the page code or css it could be removed.

sorry I couldn't give you detailed code, I'm running late here and would need to start looking stuff up. Maybe if you can post a link to a page where it's doing those things, someone might be able to identify the bits of code to change?

 
Member:18,557
Posts:2,943
Joined:3-15-2007
Seen:11-27-2009
Jul 23,`09 12:38pm | Quote |

"Luminous" Said:

"therealtj" Said:

Two: All the image links have borders around them.


Add border="0" like so -

<a href="URL"><img src="IMG" border="0"></a>

when you make an image link to something. That should fix it.

Thanks! That worked

skoolmunkee Said:
The URL-opening thing sounds like something that's been set in the css too, or at least COULD be. The default ont he web is to open in the same window, so there's something somewhere telling it NOT to do that... if it's in the page code or css it could be removed.


Well, heres the line of code I'm currently using:
<link rel="stylesheet" type="text/css" href="http://www.drunkduck.com/gfx/css/global.css">

I did try switching it to
<link rel="stylesheet" type="text/css" href="http://www.drunkduck.com/gfx/template_gfx_new/global.css">
And that didn't fix it.

My problem's on this comic.


"The only moral it is possible to draw from this story is that one should never throw the letter Q into a privet bush, but unfortunately there are times when it is unavoidable."
-Douglas Adams, The Restaurant At the End of the Universe

Previous 30
Page of 1 Next 30

 

Not Registered?
Signup for a FREE Account!


Registered users can:
Comment on comics!
Create their own comics!
Vote in polls and contests!
Use the forums!
   Latest News
   DD Cam (Now Featuring: DDBook)