• Hello,

    I am currently trying to Center Align a media image on my homepage for, LustHaveFashion.com

    I have read through several posts on this topic, and have not been able to execute a fix for this as of yet.

    GOAL
    To center align the image on my homepage

    STYLE.CSS
    .alignleft {float: left;}

    .alignright {float: right;}

    .aligncenter {clear: both; display: block; margin-left: auto; margin-right: auto;}

    PAGE TEXT
    <img class=”size-full wp-image-43″ src=”http://lusthavefashion.com/wp-content/uploads/2015/10/Lust-Have.png&#8221; alt=”Lust Have” width=”624″ height=”493″ />

    Could someone please let me know what I am doing wrong? I just can’t seem to get this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try:

    <img class="size-full wp-image-43 aligncenter" src="http://lusthavefashion.com/wp-content/uploads/2015/10/Lust-Have.png" alt="Lust Have" width="624" height="493" />

    Thread Starter LHFashion

    (@lhfashion)

    @esmi,

    Thank you for your response. I have applied the aligncenter function to the site. The photo moves over about half an inch. I have left this code on the page for you to view the new page.

    I am wondering if there is something going on with the right side of the page somewhere in the code that would make the center of the page alignleft?

    What theme are you using? Where did you download it from?

    Thread Starter LHFashion

    (@lhfashion)

    Esmi,

    I am currently using the Afterlight Theme. I accessed this through the wp admin panel/appearance/themes and selected something minimalistic.

    Try asking in the theme’s dedicated sub-forum:
    https://wordpress.org/support/theme/afterlight

    Thread Starter LHFashion

    (@lhfashion)

    Esmi,

    Thank you for your help.

    Enjoy your weekend.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Center Align Media Image’ is closed to new replies.