img src="htt://img.photob..."> img src="htt://img.photob..."> img src="htt://img.photob...">

HTML Code For Button And Linked Image

  dogbreath1 07 Feb 11
Locked

The following HTML code creates a clickable button which links to an image.

a href="htt://img.photobucket.com/albums/v513/dogbreath1/rasp1.gif" title="Nooo! Don't Do It!!!"> img src="htt://img.photobucket.com/albums/v513/dogbreath1/DoNotPress.jpg" width="150" height="130" border="0" /> /a>

(I've removed the 'p' in both 'http's to display the code without 'click here's' being produced.)

On some PC's, the revealed image displays centrally on the screen and on others in the top LH corner.

How can I force the image to display centrally?

How can I force the background screen to display in black?

TIA

db.

  Chris the Ancient 07 Feb 11

This same question is also running in Helproom!

  dogbreath1 07 Feb 11

...reason being that someone from Helproom suggested that I post it here.

  adam32 09 Feb 11

The above suggestion is correct. It depends entirely on the browser engine. Opera is one that centres images, for example.

Why not display it in a modal overlay? Just make sure that you pick one that recognises keyboard input for user-friendliness - most do, but some don't.

  dogbreath1 09 Feb 11

Thanks for that. Makes sense. Let the image rather than the code force the desired result. Cheers.

Advertisement

This thread is now locked and can not be replied to.

Windows 10 Home vs Windows 10 Pro comparison: Here are the extra features you get in the Pro version

Behind the scenes at Silverstone, the 70th British Grand Prix: Hisense starts UK push with Red…

How Found created this skateboard, bike and parkour stunts-laden, single-take car ad

Apple Pay UK launch date, UK user guide and participating UK banks | Apple Pay to launch in UK on 1?…

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message