Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Image align centre

    Hi, I'm hoping someone can help me with this...trying to centre a logo on a Volusion template... I needed to increase the image area, so I adjusted the template.html and template.css to accommodate the new width of 617 px and height 117 px

    html head

    <!-- LOGO UPLOAD DIMENSIONS -->
    <meta id="v65-logo-dimensions" data-height="117" data-width="617">

    style sheet

    #display_homepage_title a {
    background: url('../images/template/header_bg.jpg') no-repeat center center;
    display: block;
    left: 0;
    height: 117px;
    text-indent: -9999px;
    top: 0;
    width: 617px;

    like i say all i did was change the pixel dimensions and now it forces slightly to the right in its position - any help would be greatly appreciated - thanks in advance...

  • #2
    New Coder
    Join Date
    Jun 2005
    Location
    Blackpool. UK
    Posts
    98
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Images are inline elements, so use text-align: center on the parent element.
    Chris

    Indifference will be the downfall of mankind, but who cares?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •