0

I create x img tags from javascript inside divMyAbilities and would like them centered to the div. I thought margin: auto would do that but it doesn't. How can I get these images all lined up from left to right but centered to the div? Honestly I can code in 20 different languages but css just doesn't register with me.

<div id="abilities" style="width: 600px; height: 75px; background-color: red;">
    <div id="divMyAbilities" style="margin: auto;">

    </div>
</div>
user441521
  • 6,942
  • 23
  • 88
  • 160

0 Answers0