Join James Williamson for an in-depth discussion in this video Floats, part of Learning CSS.
- [Voiceover] Any discussion on positioning elements…would be incomplete without mentioning floating.…Floating is by far the most popular CSS layout technique,…however it's also one…that many new web designers struggle with.…That's because how the technique works changes…based upon the relationship of the elements…that are being floated.…Let's take a closer look at floating and how it works.…So what's a float?…Essentially, it's an element that is shifted…to the right or to the left of its current position.…You assign floating, logically enough,…by using the float property.…
You can use the left, right, or none keywords…to define the direction of the float.…Here's how it works.…Remember that a normal document flow,…block level elements simply stack…one on top of another.…They're commonly referred to as boxes,…and that's actually a really good way…of thinking about them.…When you float an element,…it moves as far over as it can,…either to the right or the left,…depending on the property that's been assigned to it.…
CSS Fundamentals covers the basic concepts, terminology, and techniques you need to read and write CSS. It's for people who want a big-picture overview before taking hands-on courses. Author James Williamson explains how CSS affects text, borders, backgrounds, and images; how CSS works with HTML; and how the W3C's evolving CSS specification impacts designers. He also reviews some of the most popular CSS editors and frameworks and lists online tools and resources for further study.
- What is CSS?
- Basic selector types
- Using CSS with HTML
- How browsers render CSS differently
- Exploring CSS specifications
- Checking browser support
- Working with fonts
- Understanding the box model
- Adjusting margins and padding
- Positioning elements
- Basic CSS layout concepts
- Media types and media queries
- Working with CSS frameworks and CSS grids
Skill Level Beginner
Design the Web: Pie Charts with CSSwith Chris Converse25m 33s Beginner
1. CSS Basics
2. CSS Specifications
3. Common CSS Concepts
4. CSS Resources
- 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.