There are many different background styles. In this video, look at the exceptions when using the shorthand syntax for the background property.
- [Instructor] Each background property value…is specific to that property, so when using shorthand,…the order of values don't matter,…but make sure they are separated by a space.…However, there is one exception.…When using background size with the shorthand property,…you don't have to declare all the values.…But it must be included after background position…and separated with a forward slash.…If no background position value is being used,…this shortcut will not work.…It's generally good practice to use shorthand properties…because it reduces the amount of CSS…from several lines to one.…
But in this case, if you're not using…the background position property, just add background size…after the shorthand declaration.…Make sure it's after, though, because in this case,…order really does matter.…There's one more thing to keep in mind…when using the shorthand syntax.…While you don't have to include a value for each property,…if you don't, the CSS assumes the default value.…So if you mix shorthand and longhand, the values…
- Reviewing CSS syntax
- Reviewing simple selectors and attribute selectors
- Using pseudo-class selectors and pseudo-element selectors
- Reviewing the CSS box model
- Adding a menu to your project
- Using float, display, and position
- Debugging CSS
- Resetting stylesheets
- Working with background images
- Exploring a mobile-first approach for responsive web design
- Creating flexible and fluid layouts
Skill Level Beginner
Building Responsive Forms with Flexboxwith James Williamson1h 19m Intermediate
1. CSS Selectors
3. Tips and Tools
4. Responsive and Mobile
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.