Tabs causing page jumping

6 replies · opened Mar 6, 2017

NnolybomMar 6, 2017

I'm using the latest version of your theme. I have tabs positioned toward the bottom of the page.
Every time I click a tab, the screen jumps toward the top.
How can I prevent this from happening?

Here is a demo link:

http://ic.mobylon.com/ved/tabs-page-jumping-bug.html

NnolybomMar 6, 2017

Dirty fix is to give the

.tab-container {
/fix page jumping when clicking on tabs/
min-height: 440px;
}

Can you please come up with something more proper?

Thank you!

SSemicolon WebSTAFFMar 22, 2017

Hello,

Please consider adding the onclick="return false;" Attribute to the <a> Tag of the Tab Navs.

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SS853736Apr 10, 2017

Unfortunately I have the same problem and "onclick" doesn't solve it.

Here is my code:


    
    
        
- [Tab 1](#tab1)
        
- [Tab 2](#tab2)
        
- [Tab 3](#tab3)
        
- [Tab 4](#tab4)
    

    
    
        Tab 1
        Tab 2
        Tab 3
        Tab 4
    

Every time I click a tab the screen scrolls up so that the tab is on top of the page.

Any advise how to fix this? Thanks!

Sebastian

SS853736Apr 10, 2017

This is caused by a 3rd party script that I use on my site. Nothing you can do here.

IikovicApr 20, 2017

Have the same problem.
Tried this. Does not change anything.

SSemicolon WebSTAFFApr 23, 2017

Hello,

Consider using the following code:

$(".tabs ul li").on( 'click', 'a', function(e){
	e.preventDefault();
	return false;
});

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard