Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Whole page tabs, just need help starting?

Featured Replies

Hello, so im just doing a mock site.

 

I want to have it where there is a small header like 30px which has some navigation on it.

 

These navigation buttons show different pages but i dont want it to load new pages but just change the tab.

 

But the whole page wish to be a tab. Any help if you know what i mean?

 

EDIT: Like this, but with tabs...

 

http://wpbase.comze.com/?page_id=2

Edited by Lovelock

  • Author

Okay, ive found a tutorial for this so have this working.

 

However when using php include, the file i have included isnt showing in the tab... any ideas?

 

The tabs are shown via javascript, can i use php include within javascript?

 

I have made a jsfiddle here:

 

http://jsfiddle.net/5DQAU/2/

 

It appears that nothing inside the tabs is showing unless its plain text...

Edited by Lovelock

$("#content div").hide();

 

You're hiding ALL divs within #content with this.

 

$('#' + $(this).attr('title')).fadeIn();

 

Over here you're only showing the outer divs, which means the divs inside are still hidden.

 

 

By replacing the two lines which hide the divs by this:

 

$("#content>div").hide();

 

It works because the content never gets hidden.

Edited by sebdd

  • Author

Sorted it out. The content div had a fixed height causing the file to be stretched across it.

 

(didnt know that was possible but seems to have happened)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.