I am currently diving into the world of coding and embarking on the journey of crafting a website for my father. This project not only helps me gain valuable experience but also builds up my portfolio.
Utilizing unsemantic and normalize frameworks, I encountered some challenges along the way:
1) The alignment between the text "Michael Gilsenan" and the navigation bar is proving to be quite tricky. Despite experimenting with line-height adjustments, the text seems to move sporadically in unexpected directions.
2) Implementing a horizontal line under the header using either the <hr>
tag or the border-bottom property triggers a scroll bar inside the containing <div>
where the <nav>
element resides.
After tirelessly searching for solutions over the past 4 hours and delving into numerous resources, exhaustion has started to set in. Apologies if I might be overlooking something glaringly obvious at this point!
Your assistance is greatly appreciated.
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>
<link rel="stylesheet" type="text/css" href="../external/css/normalize.css">
<link rel="stylesheet" type="text/css" href="../external/css/unsemantic-grid-responsive-tablet.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:700|Open+Sans:400,600" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body class="grid-container">
<header class="grid-parent">
<div class="grid-50">
<a href="" class="headertext">Michael Gilsenan</a>
</div>
<div class="grid-50">
<ul>
<li><a href="">About</a></li>
<li><a href="">Bio</a></li>
<li><a href="">Portfolio</a></li>
<li><a href="">Blog</a></li>
<li><a href="">Contact</a></li>
</ul>
</div>
</header> <!-- end of header-->
</body>
* {
margin: 0;
text-decoration: none;
}
hr {
border-style: solid;
border-color: #cacaca;
position: relative;
top: -40px;
}
/* header styles */
header {
font-family: 'Open Sans', sans-serif;
margin-top: 80px;
overflow: auto;
border-bottom: solid #cacaca 1px;
}
header a {
color: #332e2d;
}
.headertext {
font-family: 'Montserrat', sans-serif;
font-size: 300%;
letter-spacing: -0.01em;
line-height:
}
ul li {
display: inline;
}
ul {
word-spacing: 0.5em;
text-align: right;
}