Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:05:00+00:00 2026-06-17T17:05:00+00:00

I have always used a global wrapper to keep my layout 960px and contain

  • 0

I have always used a global wrapper to keep my layout 960px and contain all of my content inside of the wrapper. I am attempting to move away from this and rather have all of my “divisions” (like masthead, navigation, slider, content_area) to look like this:

 // CSS:
 .container {
            width: 960px;
            margin: 0 auto;
        }

        #masthead {
            width: 100%;
            background: #000;
        }

        #navigation {
            width: 100%;
            background: red;
        }

        #slider {
            width: 100%;
            background: grey;
        }

 // HTML:
 <div id="masthead">
        <div class="container">
            <!-- masthead content goes here -->
        </div>
 </div>
 <div id="navigation">
        <div class="container">
            <!-- navigation content goes here -->
        </div>
 </div>
 <div id="slider">
        <div class="container">
            <!-- masthead content goes here -->
        </div>
 </div>

First off all, I am not convinced that this is the only way (or possibly the best way) of
achieving my end result. Although this works and I am able to style my individual divisions better and still constrain the width and “position” of the content, I would really value input as to how to achieve the above without the excessive container classes.

My 2nd problem, and more specifically why I am asking for advice is in the project I am working with now, I do not have a “container” for the slider above. I want my slides to be full screen (so effectively slide is from the edge of the screen) to a centered position on the page. I still want my slides to be 960px width or not exceed that, but when slided in to be positioned in the centre of the “slider” div.

The plugin I am using is called LayerSlider, which allows for me to have “layers” per slide which can slide in from different directions to the final position for the slide. (example here: LayerSlider full screen preview).

Each slide element is absolutely positioned and you have to indicate using “left” and “top” where the slide layer will be positioned after the animation.

I have managed to get the content “centered” using “left: 50%; top: 5%”, but when I resize my browser, the elements move out of place.

I hope I am making sense and hope someone can give me assistance as to how to position elements in a full width div and still look the same irrespective of the users resolution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:05:01+00:00Added an answer on June 17, 2026 at 5:05 pm

    Couldnt find any other solution, sticking with what I know 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have always used the mouseover event, but while reading the jQuery documentation I
As a hardcore WinForms programmer from a Win32 background I have always used Spy++
I have generally always used some sort of Hungarian Notation for my field names
I always have used Spring Framework classes as-is. However I am thinking of customizing
I have a C program which has always used hard coded define statements for
We have used Infragistics controls in our applications for years. However, we have always
I have java sdk 1.7. I've always used django/python for web development, this will
I have used linked lists before with Strings, doubles, etc., and they always worked
I have always used relative paths in PHP. Last time I have realized that
I have always used the Visual Studio Dependencies option to ensure that, for example,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.