Forums

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

Home Forums CSS Why won’t my code

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44712
    LegacyP7
    Participant

    Hello!

    I’m trying to make a page which has two images, which link to certain areas of a website. On hover, they change to a coloured version of the same image, which is done via the :hover function in CSS.

    This all works fine, but I need the images to be centered, but nothing I’ve tried is working. Can someone help me?

    http://codepen.io/anon/pen/mJvqx

    Thank you!

    #134799
    Senff
    Participant

    This should get you in the right direction: http://codepen.io/senff/pen/iGylw

    #134801
    JTParrett
    Participant

    I would recommend margin: 0 auto; for center aligning elements. http://codepen.io/JTParrett/pen/DtveJ

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