

- 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
Shorthand property to set the background in CSS
You can use the background property to set all the background properties at once such as background image position, repeat, etc:
Example
<html> <head> </head> <body> <p style = "background:url(/images/pattern1.gif) repeat fixed;"> This parapgraph has fixed repeated background image. </p> </body> </html>
- Related Questions & Answers
- The Background Shorthand Property in CSS
- Shorthand property to set the font with CSS
- Shorthand property to set columns with CSS
- Shorthand property to set all the animation properties with CSS
- The padding shorthand Property in CSS
- The outline Shorthand Property in CSS
- The margin Shorthand Property in CSS
- The border Shorthand Property in CSS
- CSS Animation Shorthand property
- The list-style Shorthand property in CSS
- CSS background property
- CSS Multi background property
- CSS background-size property
- CSS background-origin property
- CSS background-clip property
Advertisements