Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Centering Alignment

Discussion in 'Troubleshooting & How-To's' started by DevineSpeller, Apr 1, 2017.

  1. DevineSpeller

    New Member

    Joined:
    Apr 1, 2017
    Messages:
    2
    Likes Received:
    0
    My absolutely awesome website is not allowing me center align an image that says "Book Now".

    Coding it so that a text item is aligned works fine, however, not an image.

    I have adjusted the style.css to include the following to no avail.

    img.alignright {float:right; margin:0 0 1em 1em}
    img.alignleft {float:left; margin:0 1em 1em 0}
    img.aligncenter {display: block; margin-left: auto; margin-right: auto}
    a img.alignright {float:right; margin:0 0 1em 1em}
    a img.alignleft {float:left; margin:0 1em 1em 0}
    a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

    and even:

    img.alignright { float: right; margin: 0 0 1em 1em; }
    img.alignleft { float: left; margin: 0 1em 1em 0; }
    img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
    .alignright { float: right; }
    .alignleft { float: left; }
    .aligncenter { display: block; margin-left: auto; margin-right: auto; }

    Please HELP! I'm losing money. Help me get back the money I deserve!!!
     
    #1
  2. WPhelp

    Administrator Staff Member

    Joined:
    Feb 24, 2013
    Messages:
    945
    Likes Received:
    25

Share This Page

Web Hosting