Join James Williamson for an in-depth discussion in this video Fixed positioning, part of CSS: Page Layouts (2012).
Fixed positioning is part of the absolute positioning model, and it allows you to…position element relative to the viewport.…Unlike relative or absolute positioning, fixed positioning wasn't initially…supported very well by browsers, which is why it's not quite as well known as…absolute or relative positioning.…However, the reason increase in support, especially among mobile devices, means…that fixed positioning is beginning to see widespread use among designers. Now…to demonstrate fixed positioning, I have the fixed.htm file open from the 04_03…directory, and if I scroll down, I can see that we are pretty much using the…same file that we've been using for the past couple of exercises.…
We have our three elements, elements 1, 2, and 3, and they are wrapped in our…section, with the class attribute of container.…Okay, so I am going to go up to element 1 here, and let's just go ahead and set…position for that to fixed.…Now since we understand the concept of offsets now, we will go ahead and apply…
Author
Released
2/9/2012- Reviewing the box model
- Calculating em and percentage values
- Controlling how elements display
- Creating fixed, fluid, and responsive layouts
- Structuring content with HTML5
- Floating elements
- Using relative, absolute, or fixed positioning
- Defining column spacing
- Creating grid-based assets and layouts
- Considering mobile-design-specific issues
- Working with multi-column text
- Enhancing page design CSS Sprites
Skill Level Beginner
Duration
Views
Related Courses
-
HTML Essential Training
with James Williamson5h 54m Beginner
-
Introduction
-
Welcome51s
-
-
1. Layout Basics
-
Box model review8m 47s
-
Calculating element dimensions11m 11s
-
Calculating em values7m 41s
-
Normal document flow13m 3s
-
Controlling element display8m 53s
-
Using CSS Resets7m 11s
-
CSS debugging tools6m 46s
-
-
2. Design Considerations
-
Page design workflow3m 6s
-
Page design tools4m 56s
-
Determining page structure7m 18s
-
Creating image assets8m 58s
-
Building internal structure10m 25s
-
-
3. Working with Floats
-
Floating elements7m 50s
-
Clearing floats7m 28s
-
Containing floats7m 50s
-
Clearfix technique10m 38s
-
Floating inline elements14m 34s
-
Two-column floated layouts8m 17s
-
Three-column floated layouts11m 30s
-
Creating equal-height columns10m 42s
-
Floats: Lab5m 25s
-
Floats: Solution5m 21s
-
-
4. Positioning Elements
-
Relative positioning7m 59s
-
Absolute positioning8m 59s
-
Fixed positioning4m 23s
-
Controlling stacking order8m 31s
-
Clipping content8m 21s
-
Controlling content overflow5m 38s
-
Positioning elements: Lab3m 59s
-
-
5. Building Fixed Layouts
-
Establishing the layout grid7m 57s
-
Defining column spacing9m 30s
-
Creating grid-based assets8m 26s
-
Grid design resources6m 22s
-
6. Building Flexible Layouts
-
Making images flexible8m 10s
-
7. Building Responsive Layouts
-
Responsive layout overview3m 49s
-
Using media queries7m 16s
-
Organizing styles8m 39s
-
Making content responsive8m 33s
-
Mobile design considerations7m 32s
-
-
8. Enhancing Page Design
-
Creating multi-column text6m 36s
-
Using borders to enhance design13m 59s
-
Rounding corners6m 56s
-
Adding drop shadows10m 35s
-
Working with opacity6m 8s
-
Working with CSS sprites7m 58s
-
Enhancing page design: Lab6m 22s
-
-
Additional Resources
-
Additional resources6m 25s
-
- 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: Fixed positioning