Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Help changing the length of my page

Posted by: mrblack2049 Sep 8 2023, 06:59 PM

I'm using an image as the background of my webpage, and I want to increase the length of my page so that you can scroll up and down to see the full image.

Site:

mrblack2049.neocities.org

code:

body {
background-image: url('Images/projecteva2.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
color: white;
font-family: 'fonts/font1.otf';
}
h1{
font-size: 80px;
}

Posted by: mrblack2049 Sep 8 2023, 07:00 PM

The image is 858 x 1072

Posted by: mrblack2049 Sep 8 2023, 07:38 PM

Nvm, I just had to increase the background-size: ; to match the image, and then delete the background-attachment: fixed; line.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)