Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!
<!DOCTYPE html>Paste the html code.
* {
box-sizing: border-box;
}
Body {
background: url(/images/srtc-graphs.jpg);
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
#navigation {
display: flex;
align-items: center;
background-color: #FFF;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-bottom: 0.05px solid black;
}
.logo {
margin-left: 40px;
width: 150px;
display: flex;
justify-content: center;
}
.logo img {
height: 58px;
margin-left: 30px;
}
#navigation ul {
margin-left: 20px;
margin: 8px 0;
display: flex;
}
#navigation li {
margin: 20px 0;
}
#navigation a {
margin-left: 20px;
margin: 20px 0;
padding: 8px 16px;
font-family: 'Arial narrow';
font-size: 13px;
font-weight: bold;
color: black;
}
.line {
border-right: 1px solid black;
}
#navigation > p > a {
margin-left: 30px;
margin: 0 40px;
padding: 0;
font-size: 13px;
}
#page-container {
width: 50%;
margin: 0 auto;
}
.a {
margin-bottom: 40px;
display: flex;
flex-direction: column;
}
.a > h2 {
margin: 50px 0 10px 0;
text-align: center;
font-size: 25px;
color: black;
height: 45px;
}
.b {
display: flex;
margin: 0 auto;
}
.b > ul {
padding: 0;
}
.b > ul > li {
margin: 6px 0;
display: flex;
border: 1px solid black;
box-shadow: 0 2px 3px #999;
}
.b > ul > li > a {
width: 230px;
padding: 10px 0;
padding: 10px 20px;
color: black;
}
.b > ul > li > a:hover {
background-color: #E6EAF5;
}
.footer {
font-family: 'Arial';
padding: 30px 0;
font-size: 15px;
background-color: white;
text-align: center;
border-top: 0.2px solid black;
width: 100%;
}
.footer a {
color: black;
text-decoration: underline;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SRTC Member's Area!</title>
<link rel="stylesheet" type="text/css" href="style2.css">
</head>
<body>
<div class="navigation-menu">
<div id ="navigation">
<div class="logo">
<img src="logo.jpg">
</div>
<ul>
<li><a href="#home" class="line">Home</a></li>
<li><a href="#bullish" class="line">Itroduction</a></li>
<li><a href="#bearish" class="line">Disclaimer</a></li>
<li><a href="#irish" class="line">Technical Analysis</a></li>
<li><a href="#uk" class="line">Videos</a></li>
<li><a href="#euro" class="line">Member's Area</a></li>
<li><a href="#market">Market Topics</a></li>
</ul>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<div id="page-container">
<div class="a">
<h2>WELCOME TO THE MEMBERS AREA!</h2>
<div class="b">
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a class="active" href="#bullish">Most Bullish Shares</a></li>
<li><a class="active" href="#bearish">Most Bearish Shares</a></li>
<li><a class="active" href="#irish">Irish Shares</a></li>
<li><a class="active" href="#uk">UK Shares</a></li>
<li><a class="active" href="#euro">European Shares</a></li>
<li><a class="active" href="#us">US Shares</a></li>
<li><a class="active" href="#trading">Trading Room</a></li>
<li><a class="active" href="#market">Market Topics</a></li>
</ul>
</div>
</div>
</div>
<div class="footer">
Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer
</div>
</body>
</html>
The only thing missing is the container box that the menu heading and the vertical menu itselfHere -
CSS:
HTML:CSS:* { box-sizing: border-box; } Body { background: url(/images/srtc-graphs.jpg); font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 0; } li { list-style: none; } a { text-decoration: none; } #navigation { display: flex; align-items: center; background-color: #FFF; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border-bottom: 0.05px solid black; } .logo { margin-left: 40px; width: 150px; display: flex; justify-content: center; } .logo img { height: 58px; margin-left: 30px; } #navigation ul { margin-left: 20px; margin: 8px 0; display: flex; } #navigation li { margin: 20px 0; } #navigation a { margin-left: 20px; margin: 20px 0; padding: 8px 16px; font-family: 'Arial narrow'; font-size: 13px; font-weight: bold; color: black; } .line { border-right: 1px solid black; } #navigation > p > a { margin-left: 30px; margin: 0 40px; padding: 0; font-size: 13px; } #page-container { width: 50%; margin: 0 auto; } .a { margin-bottom: 40px; display: flex; flex-direction: column; } .a > h2 { margin: 50px 0 10px 0; text-align: center; font-size: 25px; color: black; height: 45px; } .b { display: flex; margin: 0 auto; } .b > ul { padding: 0; } .b > ul > li { margin: 6px 0; display: flex; border: 1px solid black; box-shadow: 0 2px 3px #999; } .b > ul > li > a { width: 230px; padding: 10px 0; padding: 10px 20px; color: black; } .b > ul > li > a:hover { background-color: #E6EAF5; } .footer { font-family: 'Arial'; padding: 30px 0; font-size: 15px; background-color: white; text-align: center; border-top: 0.2px solid black; width: 100%; } .footer a { color: black; text-decoration: underline; }
HTML:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>SRTC Member's Area!</title> <link rel="stylesheet" type="text/css" href="style2.css"> </head> <body> <div class="navigation-menu"> <div id ="navigation"> <div class="logo"> <img src="logo.jpg"> </div> <ul> <li><a href="#home" class="line">Home</a></li> <li><a href="#bullish" class="line">Itroduction</a></li> <li><a href="#bearish" class="line">Disclaimer</a></li> <li><a href="#irish" class="line">Technical Analysis</a></li> <li><a href="#uk" class="line">Videos</a></li> <li><a href="#euro" class="line">Member's Area</a></li> <li><a href="#market">Market Topics</a></li> </ul> <p><a href="mailto:[email protected]">[email protected]</a></p> </div> </div> <div id="page-container"> <div class="a"> <h2>WELCOME TO THE MEMBERS AREA!</h2> <div class="b"> <ul> <li><a class="active" href="#home">Home</a></li> <li><a class="active" href="#bullish">Most Bullish Shares</a></li> <li><a class="active" href="#bearish">Most Bearish Shares</a></li> <li><a class="active" href="#irish">Irish Shares</a></li> <li><a class="active" href="#uk">UK Shares</a></li> <li><a class="active" href="#euro">European Shares</a></li> <li><a class="active" href="#us">US Shares</a></li> <li><a class="active" href="#trading">Trading Room</a></li> <li><a class="active" href="#market">Market Topics</a></li> </ul> </div> </div> </div> <div class="footer"> Copyright © 2019 All rights reserved | Designed by <a href="https://www.cosmicitsolutions.com/">Cosmic IT Solutions</a> | Disclaimer </div> </body> </html>
I don't understand, could you kindly explain please.The only thing missing is the container box that the menu heading and the vertical menu itself
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.