
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Show the background image only once with CSS
Use the background-repeat property to display the background image only once. You can try to run the following code to implement the background-repeat property −
Example
<!DOCTYPE html> <html> <head> <style> body { background-image: url("https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg"); background-repeat: no-repeat; } </style> </head> <body> <h1>Background Image</h1> </body> </html>
- Related Questions & Answers
- Repeat the background image with CSS
- Specify the background image with CSS
- Set the Background Image Position with CSS
- CSS background-image property
- Set background image as fixed with CSS
- Achieve Responsiveness for background image with CSS
- Set the background image of an element with CSS
- Setting Background Image using CSS
- Repeat the background image both horizontally and vertically with CSS
- Set a linear gradient as the background image with CSS
- Set a radial gradient as the background image with CSS
- How to create a blurry background image with CSS?
- Set all the background image properties in one section with CSS
- How to create a full-page background image with CSS?
- Usage of background-image property in CSS
Advertisements