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

  • Home
  • SEARCH
  • 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 8320575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:41:44+00:00 2026-06-08T22:41:44+00:00

Well I am working on an small website. However I have problem with fixed

  • 0

Well I am working on an small website.

However I have problem with fixed position.

My header is 770px in width. It contain a couple of elements with it.

position: fixed; works really fine, but when I resize my website to another screen size, something like 640×480 the fixed element (header) cannot be fully visible in width.

I want it to be fixed for scrolling but I want it to be fully visible in width, if user is on smaller screen and cannot see it completely.

Here is an example on an wordpress theme.

http://dvl-den.net/

Same problem is with my small project. Try to open that website on 640×480 (resize browser) and you’ll see my problem.

Thanks in advance.

  • 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-08T22:41:47+00:00Added an answer on June 8, 2026 at 10:41 pm

    I don’t think there is a solution with CSS only properties. I’d try having position: absolute; on my CSS, and playing around JavaScript (my example requires jQuery) like:

    jQuery(function($) { // document ready
        var $win = $(window),
            handler = function() {
                // try not to overload browser, creating a throttle
                var throttle,
                    throttleFn = function() {
                        // this is what happens on window resize
                        $('#header').css({
                            top: $win.scrollTop()
                        });
                    };
                return function() {
                    clearTimeout(throttle);
                    throttle = setTimeout(throttleFn, 100);
                };
        };
        $win.resize(handler());
    });
    

    It doesn’t work really “cool” in mobile, but it’s widely know there are mobile issues with fixed headers in web apps (different than native). If you need I can update with a JSFiddle example.

    Check demo at: http://jsfiddle.net/qaKT7/ (you can play around with that 100 value to get a better experience, and also use .animate() instead of .css() to make it look fancier)

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

Sidebar

Related Questions

I have been working on a small Chrome extension with a problem I cant
Code below is working well as long as I have class ClassSameAssembly in same
I have a report working well where I extract the number of logins per
I have a script working well for creating ad hoc iPhone builds. I can
I have spatial search working well with SOLR 3.2 Example : ?q=*&fq={!geofilt pt=48.86761919303129,2.3527903735351856 sfield=coordinates
I have swipeleft/swiperight working well in my app but when the user does the
My current SOAP1.1 Message is working well and generating appropriate results. However, SOAP message
I have a show/hide toggle working well in multiple instances (thanks to help here
My Xcode's snapshot feature isn't working well. (version 4.2.1) I have used the snapshot
I am working on a factorisation problem and for small numbers it is working

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.