treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Browser Alignment Problems

  • So I had my site all setup and good until I closed my sidebar and realized that it was only good if the user had a sidebar too. Is there a way to set it up where it adjusts to the browser and displays and what not. Say someone is using IE without a sidebar and another is using Safari with one. Can it be done where is always stays centered in the middle. Using %'s or something?
  • If you want to center your entire website, wrap it in a div set to the width of the content and apply this css to it...

    #website-wrap {
    width: 800px; /* example */
    margin: 0 auto; /* this will center it */
    }
  • thank you thank you thank you!