Problem with background images_html/css_WEB-ITnose
The background of the website is a whole big picture. If there is more content on the web page, the whole big picture will be repeated. Now the big picture is divided into three sections, header, footer and the middle part. Now I want the header to always be at the top. The middle part is In this part, if the page has a lot of content, repeat-y, and the footer will always be at the bottom.
Dear gods, please help.
Reply to the discussion (solution)
Now divide the big picture into three sections header footer and the middle part
re:
These three sections are still in one picture inside?
background:transparent url(xxx.png) no-repeat scroll ?% ?%;
?% ?% Define header, footer, and middle height
Now divide the big picture into three sections header footer and middle part
re :
Are these three paragraphs still in one picture?
background:transparent url(xxx.png) no-repeat scroll ?% ?%;
?% ?% defines the height of header, footer and middle
It has been cut into 3 pictures
#header{...} #body{background:url(footer.png)repeat-y center center}#footer{background:url(footer.png)no-repeat center center}
#header{...} #body{background:url(footer.png)repeat-y center center}#footer{background:url(footer.png)no-repeat center center}
Thank you, I will give it a try. Dare I ask the master how much QQ is?
#header{position:fixed top;}
#body{background-image :url(),background-repeat:repeat-y;}
#footer{position:fexed bottom;}

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit
