This commit is contained in:
rodert committed 2024-05-29 13:04:28 +00:00
1 parent d530415b76
commit 1ea60f9a87
1 file changed
+35 -46
+35 -46
View File
@@ -1,50 +1,39 @@
<link rel="stylesheet" href="Roberts.css">
<!-- Side navigation -->
<div class="sidenav">
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Clients</a>
<a href="#">Contact</a>
<!DOCTYPE html>
<html>
<head>
<style>
body {
display: flex;
}
.sidebar {
width: 250px;
background-color: #f2f2f2;
padding: 20px;
}
.main-content {
flex-grow: 1;
padding: 20px;
background-color: #fff;
}
</style>
</head>
<body>
<div class="sidebar">
<!-- Add your sidebar content here -->
<h3>Sidebar</h3>
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</div>
<!-- Page content -->
<div class="main">
<!-- Your content here -->
<div class="main-content">
<!-- Add your main content here -->
<h1>Main Content</h1>
<p><a herf="index.html" >test</a></p>
</div>
<Script>
/* The sidebar menu */
.sidenav {
height: 100%; /* Full-height: remove this if you want "auto"
height */
width: 160px; /* Set the width of the sidebar */
position: fixed; /* Fixed Sidebar (stay in place on scroll)
*/
z-index: 1; /* Stay on top */
top: 0; /* Stay at the top */
left: 0;
background-color: #111; /* Black */
overflow-x: hidden; /* Disable horizontal scroll */
padding-top: 20px;
}
/* The navigation menu links */
.sidenav a {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
}
/* When you mouse over the navigation links, change their
color */
.sidenav a:hover {
color: #f1f1f1;
}
/* Style page content */
.main {
margin-left: 160px; /* Same as the width of the sidebar */
padding: 0px 10px;
}
</script>
</body>
</html>