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 3 of 3
  1. #1
    New Coder
    Join Date
    May 2010
    Location
    Saint Louis, MO
    Posts
    31
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Question How do I center this image in Dreamweaver?

    I was here yesterday with a problem on the same site, and it was resolved quickly. I love it here!

    Anyways - I'm doing all of my editing on this site in Dreamweaver, and I am having a problem centering an image. I've tried changing all of the properties, but anything I do doesn't effect the placement of the image.

    The URL to the website is www.reboundsusedbooks.com.

    If you go to that homepage and scroll down, you'll see the "Subscribe to our Newsletter" image. It's misplaced - it goes over the edges and is not centered. If anybody could help, I would appreciate it very much.

  • #2
    Regular Coder
    Join Date
    Apr 2008
    Posts
    685
    Thanks
    15
    Thanked 105 Times in 104 Posts
    You can add text-align:center; to the images parent and it will center the image. Or you can add display:block; width:imagewidth; margin:0 auto; to the image. Note: these are CSS statements so would either go in style="" tags or inside the head of the document.

    Have you ever thought about using a DIV based layout and making more use of CSS rather than a table based, it allows for greater flexibility and it's a lot easier to edit. CSS allows for controlling the presentation of the page.

  • #3
    New Coder
    Join Date
    May 2010
    Location
    Saint Louis, MO
    Posts
    31
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Scriptet View Post
    You can add text-align:center; to the images parent and it will center the image. Or you can add display:block; width:imagewidth; margin:0 auto; to the image. Note: these are CSS statements so would either go in style="" tags or inside the head of the document.

    Have you ever thought about using a DIV based layout and making more use of CSS rather than a table based, it allows for greater flexibility and it's a lot easier to edit. CSS allows for controlling the presentation of the page.

    I tried this, but it didn't work..

    This website is a template, not something that I designed on my own, so I didn't have the choice to do one or the other


  •  

    Tags for this Thread

    Posting Permissions

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