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

Galaxy S6 UK release date, price, specs: When is the Samsung Galaxy S6 coming out? Samsung Galaxy S6......

IDG UK Sites

5 things we hate about MWC: What it's like to be a journalist at a technology trade show

IDG UK Sites

Interview: Lauren Currie, "There is currently a big gap between what schools teach and what designe"......

IDG UK Sites

12in Retina MacBook Air release date rumours: new MacBook Air to have fingerprint ID, could launch...