Forums

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

Home Forums CSS complete novice needs help

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #286334
    waynehinder
    Participant

    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

    https://codepen.io/waynehinder/pen/pBWJYN

    #286336
    Paulie_D
    Member

    Not seeing an issue in codepen

    #286339
    waynehinder
    Participant

    the problem is noticable when viewed on any resolution higher than 1080

    https://imgur.com/a/HVR6f47

    the images just will not scale on larger displays, i just cannot make the image height scale to window height

    #286363
    uxfed
    Participant

    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).

    #286365
    waynehinder
    Participant

    @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

    #286366
    waynehinder
    Participant

    @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

    #286466
    uxfed
    Participant

    You got it.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.