The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help changing the length of my page
mrblack2049
post Sep 8 2023, 06:59 PM
Post #1





Group: Members
Posts: 3
Joined: 8-September 23
Member No.: 29,045



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;
}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
mrblack2049
post Sep 8 2023, 07:00 PM
Post #2





Group: Members
Posts: 3
Joined: 8-September 23
Member No.: 29,045



The image is 858 x 1072
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
mrblack2049
post Sep 8 2023, 07:38 PM
Post #3





Group: Members
Posts: 3
Joined: 8-September 23
Member No.: 29,045



Nvm, I just had to increase the background-size: ; to match the image, and then delete the background-attachment: fixed; line.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 08:46 AM