I have just began coding in HTML and I am getting ready for my first exam but I have already found a problem. I can not align side div to the left side, two divs are acting as one even tho I have chosen different classes. Also I do not now how to move up Contacts and About tab a bit. Here it is:
<!DOCTYPE html>
<html>
<head>
<style>
.lol ul li {
display: inline;
margin-left: 10px;
margin-bottom: 10px;
border-right: 1px solid white;
overflow: hidden;
float: right;
padding: 0px 5px;
}
div ul {
margin-right: 20px;
margin-bottom: 20px;
}
.lol {
padding: 5px ;
background-color: black;
color: white;
height: 30px;
}
.side {
background-color: black;
align: left;
width: 100px;
height: 500px;
}
</style>
<title>Page Title</title>
</head>
<body>
<div class="lol">
<ul>
<li> Contact </li>
<li> Phone </li>
<ul/>
<div/>
<div class="side">
<div/>
<body/>
<html/>
<!DOCTYPE html>
<html>
<head>
<style>
.lol ul li {
display: inline;
margin-left: 10px;
margin-bottom: 10px;
border-right: 1px solid white;
overflow: hidden;
float: right;
padding: 0px 5px;
}
div ul {
margin-right: 20px;
margin-bottom: 20px;
}
.lol {
padding: 5px ;
background-color: black;
color: white;
height: 30px;
}
.side {
background-color: black;
align: left;
width: 100px;
height: 500px;
}
</style>
<title>Page Title</title>
</head>
<body>
<div class="lol">
<ul>
<li> Contact </li>
<li> Phone </li>
<ul/>
<div/>
<div class="side">
<div/>
<body/>
<html/>