Results 1 to 3 of 3

Thread: Centering img question

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,067
    Thanks
    156
    Thanked 3 Times in 3 Posts

    Default Centering img question

    Hi,

    Here is the page in question http://www.theatticbanwell.co.uk/index.html

    I am trying to center the image which reads Click for directions.
    In my main css file at line 608 it was,
    Code:
    padding-left: 1em;
    But ive changed it to which now looks correct,

    Code:
    padding-left: 0em;
    My question is,why do i need it there if it is 0em,i mean if i just remove that line of code it moves back to the right again ???

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    492
    Thanks
    8
    Thanked 53 Times in 51 Posts

    Default

    You should be able to remove it; unless there is another css that is altering the padding.
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  3. The Following User Says Thank You to Deadweight For This Useful Post:

    theremotedr (02-19-2018)

  4. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,067
    Thanks
    156
    Thanked 3 Times in 3 Posts

    Default

    Hi,
    Ive left it there at present as i couldnt find the reason as to why.
    Will look when i have some spare time.

    Thanks

Similar Threads

  1. Centering Nav. Bar.
    By Ron D in forum HTML
    Replies: 2
    Last Post: 02-01-2011, 03:06 AM
  2. centering css nav bar
    By nolanbuc in forum CSS
    Replies: 5
    Last Post: 07-02-2008, 11:06 AM
  3. Please help me with centering
    By nycguurl in forum JavaScript
    Replies: 2
    Last Post: 10-05-2007, 02:19 PM
  4. IE not centering...
    By trs in forum CSS
    Replies: 1
    Last Post: 07-20-2006, 05:44 AM
  5. question about auto-centering popup window
    By limitedvista in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-01-2005, 09:07 PM

Bookmarks

Posting Permissions

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