hippie lettuce Posted September 5, 2006 Share Posted September 5, 2006 i have made previous pages using html in the past, and i have got a decent understanding of the coding, but whie working on a new project the simple task of aligning an image does not work. i was wondering why, here is the code im using:<a href = "about.html"><img src ="IMG_1296.jpg"align="center"> </a>when opening this up in ie the picture is a link, but does not align. any help would be appreciated. Link to comment Share on other sites More sharing options...
The Praetorian Posted September 5, 2006 Share Posted September 5, 2006 You can't use styles in an img element. Put <center></center> around the block that you want to be centered. Link to comment Share on other sites More sharing options...
holmedwa04 Posted September 5, 2006 Share Posted September 5, 2006 Yeh, the align element wotn work, you should use this code: <center><a href="mysite.html"><img src="mypic.gif"></a></center> Link to comment Share on other sites More sharing options...
hippie lettuce Posted September 5, 2006 Author Share Posted September 5, 2006 thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now