Site Title
Links
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
Date
-----------------------
< /code>
и соответствующий CSS (я включаю код Navbar на случай, если есть какие -либо конфликты): < /p>
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
background-color: #bfa485;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Diagnosis CSS for broken stuff */
div:empty, span:empty,
li:empty, p:empty,
td:empty, th:empty {padding: 0.5em; background: yellow;}
*[style], font, center {outline: 5px solid red;}
*[class=""], *[id=""] {outline: 5px dotted red;}
img[alt=""] {border: 3px dotted red;}
img:not([alt]) {border: 5px solid red;}
img[title=""] {outline: 3px dotted fuchsia;}
img:not([title]) {outline: 5px solid fuchsia;}
table:not([summary]) {outline: 5px solid red;}
table[summary=""] {outline: 3px dotted red;}
th {border: 2px solid red;}
th[scope="col"], th[scope="row"] {border: none;}
a[title=""] {outline: 3px dotted red;}
a[href="#"] {background: lime;}
a[href=""] {background: fuchsia;}
/* || typography */
body {
overflow-x: auto;
}
article {
text-align: center;
}
h1, h2, h3 {
font-weight: normal;
font-style: normal;
color: #301f1a;
margin-top: 1.5em;
text-align: left;
}
p, input {
margin: 2em 7em auto;
color: #301f1a;
}
.topnav {
position: fixed;
width: 100%;
background-color: #bfa485;
margin: 0em auto;
color: #301f1a;
}
/* Style the links inside the navigation bar */
.topnav a {
float: right;
display: block;
color: #301f1a;
text-align: center;
padding: 0px 16px 0px;
text-decoration: none;
}
/* Create a left-aligned (split) link inside the navigation bar */
.topnav a.split {
float: left;
background-color: #bfa485;
color: #301f1a;
}
/* Style The Dropdown Button */
.dropdown .dropbtn {
color: #301f1a;
background-color: #bfa485;
padding: 10px;
border: none;
cursor: pointer;
outline: none;
margin: 0;
}
/* The container - needed to position the dropdown content */
.dropdown {
float: right;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #bfa485;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
float: none;
color: #333;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}
Подробнее здесь: https://stackoverflow.com/questions/757 ... -how-to-fi