VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. How to make an element autoexpand right to left in HTML
Programming Blog

Atom/RSS Feed

html

How to make an element autoexpand right to left in HTML

html

Making an element expand the opposite direction is a useful html trick to remember

Float: right

Add the style float: right; to the container

<div class="container" style="float: right;">
    <div>1</div>
    <div>2</div>
    <div>3</div>
</div>
Join my mailing list