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 9132383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:18:10+00:00 2026-06-17T08:18:10+00:00

I have a top div that is 50px in height and the width has

  • 0

I have a top div that is 50px in height and the width has to be the width of the entire browser window.
I’m setting the `width: 100%; but the problem is that when I zoom in the other content that is placed inside will overlap onto other.
I know that width:100%; will always be only as much as the screen in currently zoomed and that is why the content overlaps.

The position of this div is fixed.
I tried to set up the width with jQuery and it works, but then when zooming out the top div will not keep max available screen width.

(document).ready(function(){
    var widthT = $(window).width();
    $('#top_status').css("width", widthT);
});

The jQuery above is fine on zooming in, but not zoom out since the width had already been set and not changing.

I’m trying to acquire something that works somehow as the facebook top blue bar. That one stays in place very well regardless of zoom.

thx

  • 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-17T08:18:11+00:00Added an answer on June 17, 2026 at 8:18 am

    If you post a jsFiddle we could help with specific examples, but you should be able to take care of these issues with Media Queries. They’ll let you have control over break points when resizing the window and make sure it looks good no matter what resolution the site is being viewed.

    Here are some resources for media queries in navigation:

    A Responsive Design Approach for Navigation

    Progressive And Responsive Navigation

    Convert a Menu to a Dropdown for Small Screens

    Create A Pure CSS Responsive Menu

    Responsive drop down menu with CSS media queries & jQuery

    Even if you don’t want to change the structure or turn it into a dropdown, you can use the same media queries to adjust the menu elements to make them fit anywhere.

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

Sidebar

Related Questions

I have two div -elements, the top one has the height of 40% and
I have a #header div that is 100% width and within that div I
I have a div that is absolutely positioned from the top left corner of
At the top of my page I have a div that spans the page,
I have one horizontally div on the top of my page with a height
i have a problem with IE8 + jQuery.css('top') function. 1) I have a DIV
I have a DIV container that is a CSS class defined on the top
I'm working on a site that has a fixed width div that is centered
I have a parent div (container) that has a child div (inner) which also
How would I have a top right corner div as shown in the image.

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.