HTML Code For Button And Linked Image

  dogbreath1 11:04 07 Feb 11

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

a href="htt://" title="Nooo! Don't Do It!!!"> img src="htt://" 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?



  Chris the Ancient 13:54 07 Feb 11

This same question is also running in Helproom!

  dogbreath1 15:41 07 Feb 11

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

  adam32 18:27 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 19:19 09 Feb 11

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

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

Nintendo Switch (Nintendo NX) release date, price, specs and preview trailer: Codename NX console…

1995-2015: How technology has changed the world in 20 years

8 things designers (and brands) need to know about the modern woman

How to speed up a slow Mac: 19 great tips to make an iMac, MacBook or Mac mini run faster | Speed…