changing the header and menu widths

  • Author
  • #1032224

    Right now, the header and the menus areas go across the fill width of the window. I would like to change it so that they have the same margins as the body content and I can put a border around it all. I want it to end up looking like this:

    Any advice would be appreciated. Thanks!

    The blog I need help with is



    Hey Rory,
    This will get you started:

    #body-container {
        border: 1px solid gray;
        margin: 0 auto;
        padding: 15px;
        width: 1180px;

    You can see that you can adjust that padding to make the outline further out or closer in to your content. Leave your margin setting as it is shown, because that ensures it centers the content. Anything else is adjustable!

    Good luck,


    Thanks Z! Worked perfectly…of course. I appreciate it. :-)



    Glad to help :)

The topic ‘changing the header and menu widths’ is closed to new replies.