Unit 2, Lesson 17

Project

I am creating an ID tag and want to center my image. I am using this block of css that works in Notepad++: display:block;
margin-left: auto;
margin-right: auto;

Nothing happens.

Hi @skschiltz!

Great looking page! The float:right style for img is stubborn! So, in your id notes1, try adding:
clear:both;
float:none;
That should clear the previous float and define that there is no float. Then your margin left and right auto should work.

Good luck!
~Michelle

Thank you. That worked.