WordPress.org

Ready to get started?Download WordPress

Forums

css for background, center, and width PLEASE HELP (8 posts)

  1. ethanator
    Member
    Posted 8 years ago #

    I have a couple problems that i have encountered and
    it would be great if you had any suggestions. i am doing a fixed
    layout where i want everything the all page to have a width of 950 px
    so i added in the main index.php a div id and named it containter
    which had everything in it. so i went to the stylesheet and did this

    #container {
    min-width: 950px;
    max-width: 950px;
    }

    also i cant figure out how to get it centered for example on my site
    i want everything to be centered and when you make the browser window
    smaller it stays centered. and i cant get the background color to
    cover the whole page , i only can get it to change the sidebar
    background color. i think this all relates to being able to control
    evrything with the css like i tried to do when i put everything in a
    div. thatnks so much for the help.

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    #container {
    width:950px;
    margin:0 auto;
    }

    Does that work ?

  3. ethanator
    Member
    Posted 8 years ago #

    no that didnt work when i view the source of my blog the container div i put in the main inde.php doesnt show up instead it looks like everything is in a page div and i tried using that for it but still didnt work.

  4. skulled
    Member
    Posted 8 years ago #

    Can you post the link to where you have this running?

  5. ethanator
    Member
    Posted 8 years ago #

    yea it is ethanbodnar.com and when i just went on it was centered so sorry that did work i guess it didnt update the stylehseet file. thanks for the centering PLEASE NOTE where it says navigation image and footer image those are going to be there centered and will blen in with the background

  6. ethanator
    Member
    Posted 8 years ago #

    so now the problem is getting the whitespace above the header, eventually below the footer and on the sides of the posts and sides of the bottom sidebar. i dont have any css done for these elements of the site so i dont know if they are inheriting there borders. it is a custom theme where i coppied the default and then renamed and deleted all styles. Thanks

  7. ethanator
    Member
    Posted 8 years ago #

    yea it is ethanbodnar.com and when i just went on it was centered so sorry that did work i guess it didnt update the stylehseet file. thanks for the centering PLEASE NOTE where it says navigation image and footer image those are going to be there centered and will blen in with the background

  8. ethanator
    Member
    Posted 8 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic