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

Home Forums CSS How do you align these images perfectly?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #245054

    I have these aligned in illustrator, but I want them to be aligned at the right distance in my CSS code, I cannot seem to figure out how to get them to be aligned properly both distance wise from the edges and from each other.


    Only an image? Hmmm, you need to provide your code to show us what you’ve tried yourself.

    Tip: Look into Flexbox. We’ve touched on that before…
    (You’re welcome by the way)

    Or try 3 floated block-level elements and the appropriate maths to get their width; 100 / 3 = 33.333%. And maybe look into “box-sizing” to absorb padding, etc., from the box model (also Google “box model” if you’re unsure what that is).

    Good luck with your project.

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