[personal profile] carisma_sensei posting in [community profile] style_system
I want to disable it through CSS in my layouts (mainly transmogrified), would anyone happen to know what is the code I would need to apply, and be so kind to let me know? I don't know what controls the navstrip so I can't do that myself. So thank you in advance!

Date: 2012-02-29 08:53 pm (UTC)
ninetydegrees: Art: No-Face from Spirited Away (no-face)
From: [personal profile] ninetydegrees
May I ask why you want to disable it completely? I don't use myself and strongly dislike it but it's really useful to some people and disabling is kinda frowned upon to say the least.

If you need to adjust your layouts depending on whether it's there you can use:

.has-navstrip
.no-navstrip

There are body classes.

Just mentioning it in case you didn't know.

Date: 2012-02-29 09:03 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
Oh I understand. Coming from LJ, removing it from my layouts was my default mode too but DW has all these shiny classes which give layouts a lot more flexibility. *g* BTW, you might find this page and in particular the High level layout ids and classes article useful. CSS can be a little different in Transmo but it's mostly the same as described there really.

Date: 2012-02-29 09:05 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
I think it's set to be 45px high but I'm not sure.

Date: 2012-02-29 09:20 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
Well, it depends on your layout and how you coded it. Do you have an example? Besides, the padding for the nav strip should already be there. It's included in a CSS file you can't modify.

Date: 2012-02-29 09:27 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
Ok then maybe something like:

body.has-navstrip {
margin-top: 6%;
}

Date: 2012-02-29 09:52 pm (UTC)
facetofcathy: four equal blocks of purple and orange shades with a rusty orange block centred on top (Default)
From: [personal profile] facetofcathy
Actually I think the existing margin-top at 8% is the problem not the navstrip. The navstrip is positioned absolutely, it's not moving anything anywhere.

I tried out your layout and what moves the navigation module down is having a wide screen. Margins in % are based on the width of the containing block, so, the wider the screen, the bigger that margin is. It looks okay at about 1200 px wide with or without navstrip. Anything bigger and the navigation module is lower than the image.

Instead, why not get rid of the margin-top on body, and put the margin-top on the actual .module-navlinks (in pixels) to the right amount to set it where you want it. This will work for a fairly big range of font sizes, like it does now.

Date: 2012-02-29 10:49 pm (UTC)
facetofcathy: four equal blocks of purple and orange shades with a rusty orange block centred on top (Default)
From: [personal profile] facetofcathy
Alrighty! I have some answers. I turned off my navstrip and had a look at your journal. You are right, the navstip is causing a problem, and so am I the % margin is causing a similar problem!

So, what happens is that there is a padding-top on body of 45px that is only there when the navstrip is there. This is on the base Dreamwidth stylesheet that is not part of the layout or theme.

I would suggest you go back to your way of putting a margin on the body element since you know that works and just don't use a %. You can either do one for with navstrip and one without just like the suggestion above, or just set a padding-top of 45px that's there all the time and set one margin that works.

Date: 2012-03-05 06:58 am (UTC)
timeasmymeasure: michelle obama with her hands up (michelle: yay!)
From: [personal profile] timeasmymeasure
And this just answered a question I was having with a layout, so thank you!

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 24th, 2026 12:25 pm
Powered by Dreamwidth Studios