<

Introduction to CSS (Part 1)

Posted on
6,080 Points
80 Views
Last Modified:
Published
Experience Level: Beginner
5:18
The viewer will receive an overview of the basics of CSS showing inline styles.

Video Steps

1. In the head tags set up your style tags


<style>

</style>

Open in new window

2. Reference the nav tag and set your properties.

nav {position relative; left: 0; top:10%;}

Open in new window

3. Set the reference for the UL element and styles for it to ensure no browser defaults are present

nav>ul {list-style-type: none; width:100%; height:3em; padding:0; margin:0;}

Open in new window

4. Position the list elements in line on one row with a width of 60 pixels

nav>ul>li{display:inline; width:60px;}

Open in new window

5. Create your navigation menu as follows


			<nav>
				<ul>
					<li class="mysite"><a href="#">Home</a></li>
					<li class="mysite"><a href="#">Contact</a></li>
					<li class="mysite"><a href="#">About</a></li>
				</ul>
			</nav>

Open in new window

0
Author:Jason Baker
0 Comments

Suggested Videos

Title Views Activity
Drop-Cap Effect in CSS 90
Embedded Audio in HTML5 184
PHP, jQuery, and Form Actions 978
Introduction to HTML (Part 2) 151
reCAPTCHA Version 3 was released in 2018, and it works differently to the "I'm not a robot" checkbox in reCAPTCHA version 2. With v3, there's no robot checkbox, but an annoying badge is displayed in the lower right corner of your entire website. Eve…
In programming development, it is very common that a piece of code could be developed, customized, re-used and deployed in many similar areas, so that we can optimize the development and configuration time needed.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month