The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Apply margins to img depending its aligment?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #41132


    I would like to add margins to images depending on their alignment. For example; if an image is aligned or floated to the left, I would like to add margin to its right and bottom only. If aligned to the right, apply margins to left and bottom.

    Is that possible with css? or do I need some javascript in order to perform this task?

    Thanks again for your time and input.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.