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?
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?
no subject
Date: 2019-01-10 05:09 pm (UTC)#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;
};
no subject
Date: 2019-01-10 05:23 pm (UTC)The first code sort of worked, but it's obscuring part of the header. What value should I play with to bring it further down?
How do I go about centering the navigation links (as well as making them all lowercase and bold)?
no subject
Date: 2019-01-10 06:03 pm (UTC)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 {
}
should do the tricker for that bit.
no subject
Date: 2019-01-10 06:28 pm (UTC)That second one worked as well, thank you very much for your time and patience!
no subject
Date: 2019-01-10 06:33 pm (UTC)No problem! Honestly CSS is a nice change of pace from wrangling Java and Python for my day job :)
no subject
Date: 2019-01-10 09:26 pm (UTC)How do I get rid of the "Tags" link in the navigation bar? Merely removing the text isn't a solution because it leaves a wider gap and I don't like that.
As suggested here, I tried this code:
.module-navlinks .module-list-item:nth-child(4) {display: none;}
but I replaced 4 with 5, since tag is fifth in the module list, but it did nothing.
no subject
Date: 2019-01-11 02:25 am (UTC)no subject
Date: 2019-01-11 03:35 am (UTC)no subject
Date: 2019-01-11 06:36 pm (UTC)no subject
Date: 2019-01-11 08:05 pm (UTC)I tried this today:
#header .tags {
display: none;
}
which worked, but there's a wide gap (looks the same as it does when i simply remove the text from the wizard).
Should I make a new entry, so maybe others can help too? I really don't want to keep bothering you about this, but I don't know if two entries in a row would be considered spamming. ^^;
no subject
Date: 2019-01-11 08:40 pm (UTC)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.no subject
Date: 2019-01-10 06:33 pm (UTC)