Join James Williamson for an in-depth discussion in this video Enhancing buttons with gradients, part of CSS: Styling Navigation.
The addition of gradients to CSS was a huge turning point in our ability to stylize elements through CSS.…Unfortunately, the syntax is not the easiest thing in the world to master, and uneven browser…support means we currently have to use a number of prefixes in older syntax as workarounds…in order to get them to work cross-browser.…So in this exercise we're going to explore the Gradient syntax and ways that you can…make writing them a little bit easier on yourself. I have the buttons file open from 06_03.…
Just underneath the box-shadow that we were creating in the last exercise, I'm going to…create another background declaration, and yes, I know I have one at top, but I like putting…the gradients at the bottom.…So gradients are always going to be a part of your background, and I have to specify…what type of gradient I want. In this case, I want a linear-gradient.…The next thing I have to do is specify the direction that I want the gradient to follow.…Now I open up parenthesis at this point, and for this particular gradient I want to say…
- Organizing menus with lists
- Creating block-level links
- Styling links, link states, and image links
- Defining link dimensions
- Controlling link spacing in a menu
- Creating rollovers
- Clearing floats
- Indicating current pages
- Controlling cursor states
- Building dropdown menus
- Creating CSS-only buttons
Skill Level Beginner
1. Structuring Navigation
2. Link Styling Basics
3. Creating a Vertical Menu
4. Creating Horizontal Menus
5. Dropdown Menus
6. Enhancing Navigation with CSS
Additional resources6m 29s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.