Image Alignment tag not working (html) | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Image Alignment tag not working (html)

I placed a bit of code for html titled "Image Problems". It would be a great help if anyone could take a look at it and see where I've gone wrong. The bottom image is refusing to cooperate and sometimes glitches out when I run it. Really not sure what's going on. -Thanks

23rd Oct 2016, 4:49 PM
Joshua Townsend
Joshua Townsend - avatar
3 Respuestas
0
Post the code in the question
24th Oct 2016, 12:29 AM
Brian
0
<html> <head> <title>"Image Placement""</title> </head> <body> <h2>Image Placement</h2> <div style="background-color:blue;color:white ;padding:10px;" /> </div> <br /> <div style="background-color:orange ;padding:10px;"/> <img src="http://www.sololearn.com/images/tree.jpg" height="150px" width="150px" border="1px" alt="" align="left"/> <img src="http://www.sololearn.com/images/tree.jpg" height="150px" width="150px" border="3px" alt="" align="right"/> <br /> <img src="http://www.sololearn.com/images/tree.jpg" height="30px" width="30px" border="2px" alt="" align="centre"/> </div> </body> </html>
24th Oct 2016, 8:43 AM
Joshua Townsend
Joshua Townsend - avatar
0
The last image tag won't align to the centre and seems to stick to the first image tag. Also the line break function isn't working for images. I'm not sure how to fix it
24th Oct 2016, 8:45 AM
Joshua Townsend
Joshua Townsend - avatar