Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Image alignment not working?

edited March 2016 in Help! with 2.0
I am wondering if the image alignment is still working properly...

for example: <img src= "thesiteyourimageisfrom.com/whatever.jpg" width="800" height="360" align="right">

For some reason, that isn't working in my new project that I am doing for my college work, is there a way to fix this?

In the meantime, ill try copying it over from my old project.

P.S: Can confirm that copying and pasting an image link from a previous project then changing it to the one you want works, not sure why it doesn't work when typing it normally

Comments

  • If you read the MDN img element documentation you will discover that the align attribute has been made obsolete in HTML5.

    It suggests using the vertical-align CSS property for vertical alignment, for horizontal alignment try using the float property.
    <img src= "thesiteyourimageisfrom.com/whatever.jpg" width="800" height="360" style="float: right;">
    
Sign In or Register to comment.