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

HTML Code For Button And Linked Image

  dogbreath1 11:04 AM 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 PM 07 Feb 11

This same question is also running in Helproom!

  dogbreath1 15:41 PM 07 Feb 11

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

  adam32 18:27 PM 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 PM 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.

Surface Pro 4 UK release date, price and specs: Thinner, lighter, faster with new Type Cover and Pen

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

Territory delivers realistic NASA screens for The Martian - as they will be in 20 years time

21 brilliant tips for Mac OS X El Capitan: The best new Mac features in OS X 10.11