[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 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.

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 09:10 pm
Powered by Dreamwidth Studios