Struggling to create a Nav Bar using Divs and aligning the links side by side? Looking for some guidance on how to achieve this design? Lorem Ipsum placeholder text added here. Lorem Ipsum ad usu quem delectus, sea stet sale id. Nulla nostrud appetere ea sed. Ne nam accumsan verterem, ex mea cetero voluptaria. In vel latine labores splendide. Justo atomorum est cu, bonorum maiestatis ea sit. His an nobis tractatos, sea ut possit vidisse, quodsi quaestio vim ne. An eum liber persecuti, duo patrioque consetetur ad, duo et sonet populo.
Need assistance with styling and structuring your Nav Bar with Divs? Check out this HTML and CSS code snippets for reference:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>My website</title>
<link rel="stylesheet" type="text/css" href="../Web Design 3/stylesheet.css" />
</head>
<body>
<div class="headbar">
<div class="navigation">
<div class="Home"><a href="#">Home</a></div>
<div class="About"><a href="#">About</a></div>
<div class="Products"><a href="#">Products</a></div>
<div class="Contact"><a href="#">Contact</a></div>
</div>
<div class="logo">
</div>
</div>
</body>
</html>
CSS
@charset "UTF-8";
/* Stylesheet */
* {
padding: 0px;
margin: 0px;
}
.headbar {
width: 100%;
height: 75px;
background: black;
opacity: 0.5;
}
.navigation {
float:right;
height: 50px;
width: 500px;
top: 6.5px;
}
.Home {
height: 50px;
}