课程: HTML and CSS: Creating Navigation Bars
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Centering and styling a horizontal navigation bar
课程: HTML and CSS: Creating Navigation Bars
Centering and styling a horizontal navigation bar
- [Instructor] All right, navigation bar is looking good. So far we have, just as I explained previously, we have made our navigation bar go horizontally with FlexBox. We set up our large clickable area by making our nav a display block and putting a bit of padding on that to keep the text away from the edges of our navigation items so we have a nice large clickable area, but now we need to put back in some of the styling that we developed previously. And so what I'd like to do is pull over once again, some of the styling from my vertical navigation and apply it in the horizontal context here. So I'm going to start by going to the code pen here I have opened in another tab this is 02-05 end and all of the links to these code pens are inside of your exercise files folder. So I am going to copy all of these styles and then we can sort of get rid of them in the other code pen. So I'm going to copy the entire style sheet and I'm going to drop it in here, just like that. And we'll see some…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
(已锁定)
Making navigation go horizontal with inline-block5 分钟 27 秒
-
(已锁定)
Making navigation go horizontal with Flexbox5 分钟 30 秒
-
(已锁定)
Centering and styling a horizontal navigation bar4 分钟 28 秒
-
(已锁定)
Placing a logo in the center of a horizontal nav bar7 分钟 2 秒
-
(已锁定)
Challenge: Style a horizontal nav bar1 分钟 33 秒
-
(已锁定)
Solution: Style a horizontal nav bar4 分钟 29 秒
-
(已锁定)
-
-
-