[personal profile] carisma_sensei posting in [community profile] style_system
Now that I got my header up as you can see on my journal, it looks great on PC which is where I mostly use Dreamwidth. But on mobile it's obviously not responsive (the css is, the header isn't).

Is there anything I could do to fix this, or should I rather learn to live with it? hahaha. If this were transmogrified, I know the content and the header would have the same measures when zooming in and out. But for this, since it's customized for mobile viewability, I don't know what I could do. So any input would be appreciated.

Thanks in advance!

Date: 2019-12-03 04:30 pm (UTC)
momijizukamori: A sleeping dreamsheep with a '<3' sign. It says 'Momiji' above it, and 'Styles' below it. (dreamsheep volunteer)
From: [personal profile] momijizukamori
#header {
background-size: cover;
width: auto;
background-position: right; }


(you may have to add !important to width and position to get those to register). Alternatively, background-size: contain will keep the entire header visible, but you will probably have to do some tricky things with height to not have huge empty borders on mobile - you can see an example with the sidebar image code on https://pinned-together.net/

Date: 2019-12-04 01:28 am (UTC)
momijizukamori: Shatterstar from the comic series X-Factor, looking very excited (you mean there's more?)
From: [personal profile] momijizukamori
Glad to help! background-size is a newer attribute and I think not really well-known, but it's great for stuff like this.

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 11th, 2025 04:45 am
Powered by Dreamwidth Studios