Change Secondary background on mobile from image to colour
Tagged: #CSS #secondary background
-
AuthorPosts
-
-
[email protected]
ParticipantAs per the title. due to layout issues my background image is too short for a section when the screen size is small and the text only has a few words per line resulting in some of the text being displayed against a white background, What CSS code would I use to change the image for a plain colour for a small mobile screen?
-
ChrisM
ParticipantHi,
It’s hard to say whats going on without seeing it. Have a look in the background section you have used for the image, you’ll see advanced. If you click the dropdown you will have an option to resize the image according to screen width.
If you are wanting big text on the desktop you can use media query to create diffrent sizes as the website scales to diffrent widths, for example: @media only screen and (max-width: 600px) { }
I hope that helps. 😉
-
[email protected]
ParticipantThanks Chris.
-