[personal profile] nimueth posting in [community profile] style_system
Hello comm, I need your help!

Last night, as I was testing new styles, I made a rookie mistake and messed up my CSS so bad that it was easier to delete everything and start from scratch. I'm using Dusty Foot, but in the past, thanks to this community, I managed to make it look virtually identical to the Mixit based layout I was using on LJ for years.

I checked those entries again, and while I managed to fix most things, for this particular issue nothing seems to work this time.

This is what my header looks like right now with the navigation links.

This is what I'm trying to achieve.

Also, I managed to "detach" the header from the navbar with this code:

#canvas {
margin-top: 20px;
};

but I can't figure out how to do the same for the bottom of the canvas.

And lastly, how do I go about adding a 1px border around the entire canvas, like in that second screencap?

Date: 2019-01-10 05:09 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
I actually just wrote something for Tectonic that does more or less the same thing you want to do with the header:

#header {
position: relative;
}

#header .inner {
position: absolute;
width: 100%;
bottom: 0;
}


For the margin, margin-bottom: 20px seems like it might work? You may have to add !important. And you can just add a 1px border to that.


#canvas {
margin-top: 20px;
margin-bottom: 20px;
border: 1px solid #bbb;
};

Edited Date: 2019-01-10 05:11 pm (UTC)

Date: 2019-01-10 06:03 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

You have to make the header height taller - and you may want to attach the background image to the top center rather than the center - both of those are settings in the wizard, if you added the header that way.

header .module-navlinks .module-content {

text-align: center;
text-transform: lowercase;
font-weight: bold;

}

should do the tricker for that bit.

Date: 2019-01-10 06:33 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

No problem! Honestly CSS is a nice change of pace from wrangling Java and Python for my day job :)

Date: 2019-01-11 02:25 am (UTC)
momijizukamori: A sleeping dreamsheep with a '<3' sign. It says 'Momiji' above it, and 'Styles' below it. (dreamsheep volunteer)
From: [personal profile] momijizukamori
It actually did do something - it's hiding the memories link instead. Because you don't have a paid account, you don't have the Network nav item, so Tags is the 4th one!

Date: 2019-01-11 06:36 pm (UTC)
momijizukamori: (dreamsheep | styles)
From: [personal profile] momijizukamori
Hmm, it was hiding at least one element from me, but I'd have to double-check.

Date: 2019-01-11 08:40 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

On yours, which yeah, weird. The reason the .tags/blank text thing doesn't work is that the parent list item is still there, and that's what got all the styling on it. Unfortunately CSS doesn't have a good way to select a parent by a given child, which is why targetting this is so hard. Firefox claims the CSS selector is div.module-content:nth-child(1) > ul:nth-child(1) > li:nth-child(4) though I think if you had more tags or links that code would probably select them too.

Date: 2019-01-10 06:33 pm (UTC)
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
From: [personal profile] momijizukamori
also oops, I forgot that # is the header syntax for markdown and it autoformatted, lol. Sorry about that.

Profile

Dreamwidth style system discussion

January 2026

S M T W T F S
    123
45678910
11121314151617
18192021222324
25 26 2728293031

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 30th, 2026 10:23 pm
Powered by Dreamwidth Studios