Align content inside div to the right

Might sound like a silly question but how do I align content inside a div to the right? I originally did <div align=“right”>Content</div> but saw somewhere that wasnt the correct way of doing it. Any suggestions?


text-align: right;

It’s not semantic, but I’ll sometimes add classes to my CSS like .left, .right and .center as needed just to make things a bit easier.

Woops should of mentioned these are images.

Float the image right.

Ryan’s correct. Float the images to the left or right using float: left; and float: right;.

:blush: I would like to thank my friends…family mostly. An occasional hotpocket.

Make sure as a ssafepoint you add overflow:hidden or some sort of containig/clearing metohd so adjacent elements can clear!