[personal profile] bemused_writer posting in [community profile] style_system
Hello! I was wondering if anyone would have any advice on how to get the names of the months in my archive to start with a capital letter? I'd like it to say "January" instead of "january" for example. I managed to get my journal entries fixed, but I'm not sure about the archive itself. Thanks! 

Date: 2019-11-29 01:39 am (UTC)
fueschgast: (non-fandom: computer - productive)
From: [personal profile] fueschgast
Oh wow, I just learned something new! I thought every word in an addressed element would be capitalized, if that's what you tell it to do - turns out every word except for the first one gets capitalized. I guess the W3 assumed the first word would be a capitalized already. But luckily there's the first-letter selector!

So to finally get to the point: just add this to your CSS:
.month h3:first-letter {
text-transform: capitalize;

Date: 2019-11-29 03:03 pm (UTC)
fueschgast: (Default)
From: [personal profile] fueschgast
Just the headline or the tags themselves too?

Date: 2019-11-29 08:59 pm (UTC)
fueschgast: (Default)
From: [personal profile] fueschgast
Okay, then add this:
.tags-container h2 {
text-transform: capitalize!important;
}


D'oh, I just noticed the closing curly bracket is missing in the code I gave you for the archive page. You need to add one after the semicolon or any code after it won't work.

Date: 2019-11-29 03:41 pm (UTC)
fueschgast: (non-fandom: computer - productive)
From: [personal profile] fueschgast
Okay, in the the HTML the headline is actually capitalized, which means there's code somewhere in there which makes it lowercase. The proper way to deal with this
would be to take out that bit of the code instead of overriding it.
My Web Developer add-on shows me that your layout's CSS and your CSS edits are separate, so I'm guessing you linked to the layout CSS. If you put it into the "Custom stylesheet" field instead (in this case you can remove the archive-page code I gave you), you could just take out the bits of code that bother you. If you do that, go to

#archive-year .header h3, .tags-container .header h2, .icons-container .header h2 {
font-family: Franklin Gothic Medium, Arial, sans-serif; font-size: 2.1em;
color: #000000;
;
text-transform: lowercase;
padding: .5em;
}


and remove

;
text-transform: lowercase;


If you can't or don't want to do that, let me know and I'll give you something to override instead.

Date: 2019-11-30 03:44 am (UTC)
momijizukamori: (tired space gay)
From: [personal profile] momijizukamori
While it's possible to modify the base layout CSS and then recompile the layout, it's not easy, unfortunately, and overrides are a lot simpler.

(also, while capitalize works just fine, you can also use 'text-transform:none' to override the lowercase transform and set it back to the unstyled default!

Profile

Dreamwidth style system discussion

January 2026

S M T W T F S
    123
45678910
11121314151617
18192021222324
25 262728293031

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 27th, 2026 06:15 am
Powered by Dreamwidth Studios