Join Chris Converse for an in-depth discussion in this video Adjustments for the header and hero, part of Creating a Responsive Web Design.
- So, now we're going to create a series…of CSS rules for very small screens.…There's still a lot of mobile devices out there…that have a CSS width of about 320 pixels.…So, we'll create a series of rules…that will target devices under 425 pixels wide.…So, we'll start by going back to our CSS file.…We're going to add one more media query in here…with a maximum width of 425.…So we'll type media, space,…screen,…and,…put in our parentheses,…max-width,…425 pixels.…
Then put in our brackets.…Now, the first thing we'll target here…is going to be the header area.…So, I'll add a CSS comment here…called header.…Then, we'll create a CSS rule,…targeting the header element.…The first thing we'll do here,…is set a height of 110 pixels.…This matches the smaller banner graphic…that we've got in our exercise files.…And then we'll come down here…and redefine the background image.…So, background dash image, url,…put in our parentheses,…dot, dot, slash,…images, slash, banner, underscore, 425 dot jpg.…
And next, we'll switch out the logo…for the horizontal version.…
Author
Released
11/9/2015The exercise files for this course are free to all members. Download them and start creating your own responsive websites today.
- Planning your layout
- Creating HTML containers, content, and links
- Creating and styling the layout with CSS
- Creating a menu system
- Styling headings, body text, and footers
- Styling and repositioning navigation links
- Swapping high-resolution graphics for Retina displays
- Making sure content is printable
Skill Level Beginner
Duration
Views
Related Courses
-
Building a Responsive Portfolio Site
with Justin Seeley1h 47m Intermediate -
Design the Web: Responsive SVG Images
with Chris Converse22m 46s Beginner -
Building a Responsive Single-Page Design with Sass
with Ray Villalobos4h 55m Intermediate -
Creating a Responsive Presentation in HTML5
with Justin Putney1h 24m Intermediate
-
Introduction
-
Introduction to this course1m 47s
-
About this course1m 6s
-
About the exercise files1m 22s
-
-
1. Preparing the HTML Content and Structure
-
Setting up our project4m 7s
-
The strategy for our layout1m 40s
-
Adding the navigation5m 2s
-
Adding the footer content2m 20s
-
-
2. Creating the Style and Layout with CSS
-
Importing a Google Font3m 54s
-
Creating the button style4m 32s
-
Styling the footer3m 22s
-
-
3. Creating a Menu System with CSS
-
Repositioning the nav4m 39s
-
Adding indication arrows7m 24s
-
-
4. Making Layout Adjustments for Large and Medium Screens
-
5. Making Adjustments for Small Screens
-
6. Making Adjustments for the Smallest Screens
-
Adjusting the how-to section2m 48s
-
Adjusting the footer3m 56s
-
7. Making Layout and Content Adjustments for Print
-
Strategy for printing3m 58s
-
Linking a CSS file for print2m 33s
-
Setting up the base styles4m 36s
-
Setting up the header4m 34s
-
Main section4m 41s
-
Atmosphere section2m 34s
-
Styling the footer4m 24s
-
Setting page breaks with CSS2m 30s
-
-
Conclusion
-
What's next?58s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Adjustments for the header and hero