课程: HTML and CSS: Creating Navigation Bars

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Removing default list styling

Removing default list styling

- [Instructor] Once you have correctly marked up your HTML navigation. The next thing you inevitably want to do is get rid of the bullets that are associated with the unordered list. This is probably why a lot of people have stopped using an ordered lists with their navigation, because it just seems sort of silly to put it in and then have to turn off all the styling. But as you'll see, having all of these boxes in place really makes for interesting navigation bars, and we can do all kinds of crazy things with them if we have all of these boxes in place. And then of course, we still have the accessibility advantage here as well, but we do need to turn off these bullets. It's probably not what you want on any navbar. So let's go through how to do that. I'm going to start with my selector. I'm going to use nav ul. And although just plain ul would work here inside of this document, chances are in real life. You're going to want to be a little bit more specific to select your navigational…

内容