Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- how to center a photo, back to previous page button, and add text


Sub_Seven - 6:31 am on Aug 29, 2011 (gmt 0)


Hey there...

One thing, if you link directly to the image file you wont be able to assign attributes to the image (to center it for example), it will just be displayed by the browser as is.

Having said that, this is probably what you need, inline css in it but seems to be a quick way to make it

index.html:


<html>
<head>
</head>
<body>
<a href="page.html"><img src="image1.jpg" /></a>
</body>
</html>


page.html (the page holding the image and back link):


<html>
<head>
</head>
<body>
<p style="text-align: center;"><img src="image2.jpg" /></p>
<p style="text-align: center;"><a href="index.html">Back to previous page</a></p>
</body>
</html>


Hope that helps a little :)


Thread source:: http://www.webmasterworld.com/html/4355172.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com