Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to HTML and CSS!
You have completed Introduction to HTML and CSS!
Preview
Explore CSS techniques for enhancing images and backgrounds. Learn how to style images, center them, add borders, and set background properties to create visually appealing web designs.
Resources
- Responsive Web Design Introduction - w3schools
- background-image - w3schools
- background-attachment - w3schools
Treehouse - Responsive web development
Want to go further with responsive web development?
Check out our Flexbox and Grid content!
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
width properties earlier in the stage.
0:00
This image is currently displaying
at its original dimensions,
0:01
which are 600 by 400 pixels.
0:06
However, something interesting
happens if we resize the screen so
0:08
that it's narrower than the image.
0:12
Since the image is displaying at its
original dimensions, it will always
0:15
display at 600 pixels wide even if
the browser window is too small for it.
0:20
This is not ideal for
0:25
us because we might have visitors
who are viewing from their phones.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up