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
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

HTML Code For Button And Linked Image


dogbreath1

Likes # 0

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.

Like this post
Chris the Ancient

Likes # 0

This same question is also running in Helproom!

Like this post
dogbreath1

Likes # 0

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

Like this post
adam32

Likes # 0

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.

Like this post
dogbreath1

Likes # 0

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

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Swatch to release its own line of smartwatches to rival iWatch

IDG UK Sites

From the iPhone 6 to the iWatch and a new Apple TV we look at the products Apple is set to launch...

IDG UK Sites

Miranda July's Somebody app offers a very unusual take on messaging

IDG UK Sites

The 7 most ridiculous iPhone 6 rumours: what Apple WON'T reveal on 9 September