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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:20:47+00:00 2026-06-07T02:20:47+00:00

So I have been experimenting with RootsTheme (which uses Bootstrap), WordPress (from Joomla! background)

  • 0

So I have been experimenting with RootsTheme (which uses Bootstrap), WordPress (from Joomla! background) and Pagodabox;

here’s the result of it: http://ajmalafif.com/

However I am having some known issues with the navigation bar with any javascript solution that I’ve tried:

route #1) Chris Coyier’s smooth-scrolling

Currently my site runs on this one.

what doesn’t work
– for smaller screen or when browser resized, the nav will stop at awkwardly at much higher height (since it’s set to offset at -90px on > 1200px screen width)

what works
– the next & previous link button for images work (click on mysite.com#link doesn’t conflict between the nav bar anchor and the image link click anchor)

example of the code: http://jsfiddle.net/ajmalafif/LvPUC/1/

route #2) William Malo’s getElementbyId

I like and used this solution at first.

what doesn’t work
– it doesn’t have offset solution so it stops directly on the h1 title and blocks the view of it.
– it conflicts with the bootstrap-carousel.js where upon click the image carousel, the screen/navbar will moves and align the image with the top of the browser.

what works
– It works with any browser size (and upon resized) and targets/arrives accordingly.

example of the code: http://jsfiddle.net/ajmalafif/bReUF/

—

It may looks like route#1 is the clear winner but like what’s currently running on my site, it has few glitches especially when view, say inside an iPad. So is there any pointer/help I can get to make this works either by;

  • a href target is accurately offset regardless of the browser width (maybe a solution to have diff offset based on diff browser’s width)?, OR

  • a way to offset when using getElementbyId solution (see route#2) AND to make it compatible with bootstrap-carousel.js (so it doesn’t move itself when click another image carousel # anchor tag)?

Thanks for your concern and time for taking a look at this.

  • 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-07T02:20:48+00:00Added an answer on June 7, 2026 at 2:20 am

    you can calculate browser’s height and return scrolling for that variable;

    here is DEMO

    var browH = $(window).height();
                //alert(browH);
        if ( browH < 500 ) {
          $(scrollElem).animate({scrollTop: targetOffset-80}, 800,function() { location.has = target;});
        }
        else if ( browH > 500 ) {
           $(scrollElem).animate({scrollTop: targetOffset-80}, 400,function() { location.has = target;});
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been experimenting with sending messages from two .NET Windows Forms applications using
So I have been experimenting with building a new site... http://zergxost.com/test.html - it will
I have been experimenting with the lightweight NiceDog PHP routing framework, which routes like
I have been experimenting with ways to read data from a SQL server as
I have been experimenting with woopra.com A web analytics tool. Which requires a piece
I'm new to Lambda expressions so have been experimenting from an hour. I have
I have been experimenting with Firefox's Audio API to detecting silence in audio. (The
I have been experimenting with a lot of web development apps like Drupal, Moodle,
I have been experimenting with writing applications that use a local SQL Database to
I have been experimenting with TMask in Delphi 2010 and it seems to work

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.