Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Background image height problem – not fitting to the screen Reply To: Background image height problem – not fitting to the screen

#265316
Beverleyh
Participant

I THINK the “webkit” part is how it displays on a phone

Not quite, but it’s easy to see where your logic is coming from, since the -webkit extension is for targeting WebKit/Blink browsers like Sarafi and Chrome, so if you’re checking the CSS in an iPhone (and probably on the default Safari browser) your changes using -webkit will show there. But it will also be in effect in Chrome on desktop.

If you’re interested in narrowing the CSS down to manipulate it only on small screen devices, look into “media queries”: those are what the @media rules are in some of the snippets you’ve been posting.