Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-11-08 23:54:28

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

(SOLVED) How To: Fixed Vertical Menu?

Hi all,

I will use a fixed vertical menu on the left side.
I tried with:

.page__pallet[data-position="T1"] {z-index: 2; position: fixed;}

that works but "the__copy" on the right side now overlaps the menu :-/

how to prefent this???

thx in advance.

Best regards,
Oliver

Last edited by volvoxturbo (2017-11-10 01:13:11)

Offline

#2 2017-11-09 00:43:51

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

no need for custom css for a fixed vertical menu. Just set it up in the page template > Navigation > Horizontal Navigation: Location: Disabled
then scroll down to Vertical Navigation and choose the location as either Pallet 1 or Pallet 2


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2017-11-09 01:11:03

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

Hi Rod,

thank you for your fast reply.
That was what I did.

Again:
I have a pallet with a vertical menu on the left side and in the main column a gallery.
If I scroll down the gallery, the menu should not scroll.

;-)

Offline

#4 2017-11-09 01:11:50

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

link?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2017-11-09 01:15:37

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

Offline

#6 2017-11-09 01:25:31

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

I don't see the menu moving at all. Viewing in Firefox and Chrome


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2017-11-09 01:27:17

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

but the content on the right side is overlapping the pallet :-(

Offline

#8 2017-11-09 01:29:29

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

I'm not seeing it. It all looks pretty good to me. Do you have a specific page this is happening on? A screen shot showing the problem?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#9 2017-11-09 01:30:42

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

never mind, I just hovered over the menu and saw the problem. Maybe try reducing the pallet width?

If I expand the browser window enough (over two monitors), the problem goes away.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2017-11-09 02:06:57

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

why is it overlapping and what is the trick that it doesn't. Nether on small nor on large browser windows.

Best regards,
Oliver

Offline

#11 2017-11-09 02:25:39

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

I don't know. Matt will need to take a look.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2017-11-09 02:27:11

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

So thank you again Rod for your help :-)

I tried it with decreasing the pallets width, but the problem is: if the main content overlapse the left pallet, the content is not centered :-/

Best regards,
Oliver

Last edited by volvoxturbo (2017-11-09 02:30:20)

Offline

#13 2017-11-09 02:35:10

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

have you tried decreasing the Gallery Max-Width in the album template's Thumbnail Grid section?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#14 2017-11-09 02:39:55

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

Even if the templates content area is 920px it's always larger and overlaps the pallet with this css active:

.page__pallet[data-position="T1"] {
    z-index: 2;
    position: fixed;
}

Last edited by volvoxturbo (2017-11-09 03:09:37)

Offline

#15 2017-11-09 02:56:48

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

I now disabled:

.page__pallet[data-position="T1"] {
    z-index: 2;
    position: fixed;
}

what else can I do to have everything in order but with a menu which will not scroll if youre scrolling the page (fixed menu)???

Best regards,
Oliver

Offline

#16 2017-11-09 03:28:01

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

I'm not an expert on the position property, but I think that when you set position:fixed; that you're positioning relative to the browser window and taking the element out of the normal document flow. This is probably why the rest of the page content is moving over. It's filling the space vacated by the menu.
You probably need to set some positioning for the page content too.
This seems to do something:

.main__column > .content {
      left: 120px;

You'll probably need to put that in a media query so it doesn't mess things up on smaller devices.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#17 2017-11-09 03:41:42

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

thank you Rod,
tried it but it only worked for one size and is not flexible :-/
...

Offline

#18 2017-11-09 03:51:35

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

yeah, you'd probably have to put it in multiple media queries and tailor it to several widths.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#19 2017-11-09 05:35:17

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

thanks Rod :-)

Is there maybe a smarter solution???

Offline

#20 2017-11-09 05:44:58

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

probably. I'm just not that smart wink


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#21 2017-11-09 14:28:06

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

Oliver, the problem is your custom styling. Disable the stylesheet at /backlight/custom/css/homepage.css and the problem goes away.


Matt

The Turning Gate, http://theturninggate.net

Offline

#22 2017-11-09 20:19:42

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

Hi Matt,

OK, I did a reset of the homepage.css.
Now the question again: how to fix / nail the vertical menum, that it will NOT scroll?

Best regards,
Oliver

Offline

#23 2017-11-10 00:14:22

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: (SOLVED) How To: Fixed Vertical Menu?

Hi all,

got it to work with:

.page__pallet {
    position:fixed;
    left:0;
    width:200px;
    height:100%;
}   

main {
    padding-left:200px;
}

Thanks Rod & Matt for your help :-)

Best regards,
Oliver

Offline

Board footer

Powered by FluxBB