- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
hello all, i am having afew issues with images not being able to be resized, everytime i try to resize the images i just get blank white background, ideally i just want each background image to fill each section, i think if i had the images specified in css it would be easier but i have no idea how to implement this so any help would be grateful
Not seeing an issue in codepen
the problem is noticable when viewed on any resolution higher than 1080
the images just will not scale on larger displays, i just cannot make the image height scale to window height
The CSS you’re looking for is background-size: cover. You may want to change how you’re setting the image using inline styles from background to background-image and put the other background styles in your CSS file since that will override background-size. If you don’t want to do that, instead use background-size: cover !important (though this isn’t best-practice).
@uxfed Thank you for the info, as I said I am a complete novice but I kind of understand I think haha, I will play around and see what I can change
@uxfed you are a true legend, i think i followed what you suggested could you take a look at the codepen and see if i have done it correctly
https://codepen.io/waynehinder/pen/pBWJYN
thank you once again
You got it.