WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adjusting width problems. (9 posts)

  1. Kevin Kwok
    Member
    Posted 4 years ago #

    My site: ampersandbox.net
    Originally the width was 940px
    but I want to make it 1120px
    So opening the css file I extended the width accordingly, everywhere i saw 940px i switch it to 1120px;

    However the location of the photos did not move so I added a margin-left:-90px; since going from 940 to 1120 extends 90px out left and right.

    Once i did that theres a white bar that appears over my thumbnails, im not sure why I have looked through all the files searching for 940px but came up empty. Someone please help me! thank you!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Can't see any obvious white bars. Did you fix this?

  3. Kevin Kwok
    Member
    Posted 4 years ago #

    still have not fixed this =(
    I took a screen shot and circled here: http://img217.imageshack.us/img217/8198/fixf.jpg

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    That's not a white bar, your leftmost images are being pushed off the left edge of the page by your -90px left margin:

    #content {
    float:none;
    margin:0 0 0 -90px;
    width:1120px;
    }

    Change that to margin:0; and the images appear correctly.

  5. Kevin Kwok
    Member
    Posted 4 years ago #

    oh I know i want the images in that spot i made it go -90px but theres that white space on top. I basically want the align the images to that black line on the header

    thanks for responding! =)

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Try changing:

    #header {
    margin:0 auto;
    padding:20px 0;
    position:relative;
    z-index:20;
    }

    to

    #header {
    margin:0 auto;
    padding:20px 0 0;
    position:relative;
    z-index:20;
    }

    and remove .home #content from

    .msie #content, .single #content, .home #content, .page #content {
    padding-top:20px;
    }
  7. Kevin Kwok
    Member
    Posted 4 years ago #

    thank you! i tried those fixes but still has white area =( not sure whats wrong, could it be that there are other files still at the fixed width of 940px?

  8. Kevin Kwok
    Member
    Posted 4 years ago #

    any one else know how i can fix this problem?

  9. Kevin Kwok
    Member
    Posted 4 years ago #

    problem solved! there was additional css file with width still set to 940px... phew that took all day. thank you for helping esmi

Topic Closed

This topic has been closed to new replies.

About this Topic