课程: HTML and CSS: Creating Navigation Bars
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Style a horizontal nav bar
(upbeat music) - [Instructor] And with that, it's time for another challenge. In this challenge, we're revisiting the vertical nav bar that we made on our first challenge. I'd like you to reorient this nav bar so that it goes horizontally. Add the LinkedIn logo, and see if you can put it on the left side of the nav bar with the rest of the navigation on the right. You can get the LinkedIn logo from Font Awesome. Change the styling to make this look best in a horizontal format, and watch for links that move on hover. So remember, we have this working now. That's the way this is going to wind up working. I have those instructions I just gave you here inside of the JavaScript block for the challenge. And my solution looks like this. So you see I've got the LinkedIn logo over here on the left-hand side. You get that right out of Font Awesome. Over here on the right-hand side I have all of my links, and I happened to center the icon over top of the words. The icons are still a different…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-
-