Hey there, I'm looking for some help with my code. Here's what I have:
.center{
width: 100%;
margin: 0 auto;
border: 1px solid red;
}
.nav{
background: #606060;
width: 90%;
}
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/stylesheet.css" />
<title></title>
</head>
<body>
<div class="center">
<div class="nav">
<p>Hello</p>
</div>
</div>
</body>
</html>
I've experimented with .center
without the width:
property but it didn't work. I looked through different themes and solutions here but couldn't find an answer. The .nav
div remains on the left side. Any assistance would be greatly appreciated. Thank you!