html css absolute layout-content coming below footer - html

I am trying to create a simple page (Only using HTML and CSS) but I am having a difficulty with some elements.
main-nav and content is coming below the footer and tilda. Battling this for hours.
Please help !!!
html:
<div id="container">
<div id="header">
<div id="logo">
<a class="logo-image" href="/Common/vwWelcomeForm">Home</a>
</div>
<div id="version">
Version: <label for="Product_Version">AUSQUAD 1.5 SQL 1.5</label>
</div>
<div id="top-nav">
<label for="">24/10/2013 13:38:44</label> |
Home |
<label for="Administrator">Administrator</label> |
Log Out
</div>
<div id="header-title">
<h2>
Welcome to {<label for="Ausquad">Ausquad</label>}
</h2>
</div>
</div>
<div id="main-nav">
<div role="navigation" aria-label="Main menu">
<ul class="nav">
<li>Security Management
<ul>
<li>Company Setup</li>
<li>User List</li>
<li>Change Password</li>
<li>Module Permission</li>
<li>List Master</li>
<li>Master Groups</li>
<li>User Groups</li>
</ul>
</li>
<li>Message Administration
<ul>
<li>Message Type Master</li>
<li>Enquiry Source Master</li>
<li>Standard Message Master</li>
<li>Message</li>
<li>Message Log Management</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="main-content">
test
</div>
<div id="tilda">
</div>
<div class="footer_left">
Copyright © 2013 Private Limited.
</div>
</div>
Css is:
#container{
width: 100%;
min-height: 100%;
position: relative;
overflow: hidden;
}
#header{
position: relative;
}
#logo{
padding: 0.625em 0 0 1.250em;
float:left;
}
/* converted px to em */
#version{
text-decoration: none;
color: #000000;
font-size: 0.750em;
position: absolute;
top: 4em;
left: 17em;
}
#logo a {
display:inline-block;
}
a.logo-image {
background: url('../images/logo-dashboard.png') no-repeat top left;
width: 147px;
height:76px;
text-indent: -9999px; /* hides the link text */
}
a.advertiser-logo-image {
background: url('../images/Evangelsoft_Logo_Orginal_1.jpg') no-repeat top left;
display: block;
width: 100px;
height: 63px;
text-indent: -9999px; /* hides the link text */
}
#top-nav{
position:absolute;
right:0.5em; /* rtl-review */
top:0.25em;
font-size:0.9em;
z-index: 1000;
}
#top-nav a {
text-decoration: none;
color: #039;
padding: 0.15em 0em 0.15em 0em;
}
#top-nav a:hover{
color: #017cc2;
}
#header-title{
width: 100%;
position: absolute;
top: 20px;
margin: 0 auto;
text-align:center;
}
#header-title h2{
font-size: 1.1em;
font-weight: 600;
border-bottom: 1px solid #cecfce;
color: #039;
margin: 1em 0em 0.5em 0.25em;
line-height: 1.2em;
}
#main-nav{
float: left;
margin-top: 1em;
width: 100%;
}
#main-content{
float: left;
width: 100%;
padding: 10px;
padding-bottom: 60px;
margin-top: 1em;
clear: left;
}
#tilda {
position: absolute;
bottom: 24px;
height: 36px;
width: 100%;
left: 0;
right:0;
}
.footer_left {
bottom: 0;
height: 24px;
margin: 2px 0 0;
position: absolute;
text-align: right;
width: 100%;
padding: 10px 0px 5px 0px;
color: #434343;
border-top:1px solid #ddd;
background: none repeat scroll 0 0 #E8E8E8;
}

Related

Html Navigation bar item only last item clickable and the rest cannot

My navigation bar cannot click any item except the last item. I have checked and follow the tutorial from youtube but unfortunately I checked code is same but not working at all please anyone got solution please share to me.
Here's My html
<html>
<title>UIA | Homepage</title>
<link href="Homepage.css" rel="stylesheet" type="text/css">
<header>
<div class="row">
<div class="logo">
<img src = "Logo.png">
</div>
<ul class="main-nav">
<li class = "active"> Home </li>
<li> Promotion </li>
<li> Booking </li>
<li> SignIn </li>
<li> About </li>
</ul>
</div>
<div class="title">
<h1>Ready for another adventure?</h1>
</div>
</header>
And here's my CSS.
*{
margin: 0;
padding: 0;
}
header{
background-image:
linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)), url(Homepage.jpg);
height:100vh;
background-position:center;
background-size: cover;
}
.main-nav{
float: right;
list-style: None;
margin-top: 30px;
}
.main-nav li{
display: inline-block;
}
.main-nav li a{
color: white;
text-decoration: none;
padding: 5px 20px;
font-family: "Roboto", Sans-serif;
font-size: 15px;
}
.main-nav li.active a{
border: 1px solid white;
}
.main-nav li a:hover {
border: 1px solid white;
}
.logo img{
width: 150px;
height: auto;
margin-top:10px;
float: left;
}
.row{
max-width: 1200px;
margin: auto;
}
.title{
position:absolute;
width: 1200px;
margin-left: 0;
margin-top: 0;
}
h1{
color: white;
font-size: 60px;
text-align: center;
margin-top: 255px;
}
So did I miss out something please advice me Thank you.
.title is overlapping the menu.
You can give the menu a higher z-index to ensure it is on top.
Information about z-index
updated code below
* {
margin: 0;
padding: 0;
}
header {
background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(Homepage.jpg);
height: 100vh;
background-position: center;
background-size: cover;
}
.main-nav {
float: right;
list-style: None;
margin-top: 30px;
/* added */
position: relative;
z-index: 100;
}
.main-nav li {
display: inline-block;
}
.main-nav li a {
color: white;
text-decoration: none;
padding: 5px 20px;
font-family: "Roboto", Sans-serif;
font-size: 15px;
}
.main-nav li.active a {
border: 1px solid white;
}
.main-nav li a:hover {
border: 1px solid white;
}
.logo img {
width: 150px;
height: auto;
margin-top: 10px;
float: left;
}
.row {
max-width: 1200px;
margin: auto;
}
.title {
position: absolute;
width: 1200px;
margin-left: 0;
margin-top: 0;
}
h1 {
color: white;
font-size: 60px;
text-align: center;
margin-top: 255px;
}
<header>
<div class="row">
<div class="logo">
<img src="Logo.png">
</div>
<ul class="main-nav">
<li class="active"> Home </li>
<li> Promotion </li>
<li> Booking </li>
<li> SignIn </li>
<li> About </li>
</ul>
</div>
<div class="title">
<h1>Ready for another adventure?</h1>
</div>
</header>
It is because you do not use clearfix on your floated element parent(similar issues will occur on all floated stuff if you don't use clearfix).
Add this to your css file:
.clearfix:after {
content: "";
display: table;
clear: both;
}
And add clearfix to parent of floated element, in this case to:
<div class="row clearfix">
I recommend reading these two(will come in handy in the future):
https://css-tricks.com/all-about-floats/
https://css-tricks.com/snippets/css/clear-fix/
Just in case, here is a link to jsfiddle with solution to your issue: https://jsfiddle.net/mwgjycv4/1/

How do I align the anchor links and lists in sidebars?

body {
margin: 0px;
font-family: verdana, georgia;
overflow-x: hidden;
}
/*****************Blocks*********************/
.navbar {
background-color: #fff;
height: 90px;
width: 100%;
top:0px;
margin-left: 250px;
}
.topContent {
background-color: #eceff1;
height: 200px;
width:100%;
margin-left: 250px;
}
.mainContent {
background-color: #e5e5e5;
height: 800px;
width:800px;
margin-left: 250px;
}
.leftSideNav1 {
height: 100%;
width: 80px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #37474f;
}
.leftSideNav2 {
height: 100%;
width: 200px;
position: fixed;
z-index: 1;
top: 0;
left: 80px;
background-color: #263238;
text-decoration: none;
}
/*****************Elements*********************/
.leftSideNav1__lists a{
font-size: 10px;
color: #eee;
padding-top: 30px;
margin-left: 10px;
text-decoration: none;
}
.leftSideNav2 {
font-size: 12px;
}
.leftSideNav2 .leftSideNav2__lists > ul{
padding-top: 80px;
}
.leftSideNav2__lists ul {
list-style: none;
padding-bottom: 10px;
}
<body>
<div class="container">
<div class="navbar">
</div>
<div class="topContent">
</div>
<div class="mainContent">
</div>
<div class="leftSideNav1">
<div class="leftSideNav1__lists">
<!-- <i class="fa fa-home w3-large"></i> -->
<i class="Tiny material-icons">home</i><br>
Home<br>
<i class="material-icons">pause</i><br>
YouTubers<br>
<i class="material-icons">assignment</i><br>
Campaigns<br>
<i class="material-icons">message</i><br>
Messages<br>
<i class="material-icons">pause</i><br>
Videos<br>
</div>
</div>
<div class="leftSideNav2">
<div class="leftSideNav2__lists">
<ul class="leftSideNav2__list1">Videos
<li>Action Required</li>
<li>Fund YouTuber</li>
<li>Hired & Funded</li>
<li>Edit Requested</li>
</ul>
<ul class="leftSideNav2__list2">Proposals
<li>New</li>
<li>Declined</li>
<li>Changes Required</li>
<li>Changes Declined</li>
</ul>
<ul class="leftSideNav2__list3">Approvals
<li>Waiting for Approval</li>
<li>Approved / Completed</li>
<li>Video in Dispute</li>
</ul>
</div>
</div>
</div>
</body>
Codepen
I have an issue with the anchor links and lists in the sidebars. I am unable to align the anchor links and lists in the 2 sidebars. I am trying to apply the CSS properties but they aren't applying perhaps due to improper hierarchical style of applying.
Currently, this is how it looks:
But this is how I want it to look:
you can do it setting the parent container
.leftSideNav1__lists{
text-align:center;
}
an also removing the left margin from each a tag..
codepen
body {
margin: 0px;
font-family: verdana, georgia;
overflow-x: hidden;
}
/*****************Blocks*********************/
.navbar {
background-color: #fff;
height: 90px;
width: 100%;
top:0px;
margin-left: 250px;
}
.topContent {
background-color: #eceff1;
height: 200px;
width:100%;
margin-left: 250px;
}
.mainContent {
background-color: #e5e5e5;
height: 800px;
width:800px;
margin-left: 250px;
}
.leftSideNav1 {
height: 100%;
width: 80px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #37474f;
}
.leftSideNav2 {
height: 100%;
width: 200px;
position: fixed;
z-index: 1;
top: 0;
left: 80px;
background-color: #263238;
text-decoration: none;
}
/*****************Elements*********************/
.leftSideNav1__lists a{
display: block;
text-align: center;
font-size: 10px;
color: #eee;
text-decoration: none;
margin-bottom: 20px;
}
.leftSideNav2 {
font-size: 12px;
}
.leftSideNav2 .leftSideNav2__lists > ul{
}
.leftSideNav2__lists ul {
list-style: none;
}
.leftSideNav1__lists > i{
display: block;
text-align: center;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<body>
<div class="container">
<div class="navbar">
</div>
<div class="topContent">
</div>
<div class="mainContent">
</div>
<div class="leftSideNav1">
<div class="leftSideNav1__lists">
<!-- <i class="fa fa-home w3-large"></i> -->
<i class="Tiny material-icons">home</i>
Home
<i class="material-icons">pause</i>
YouTubers
<i class="material-icons">assignment</i>
Campaigns
<i class="material-icons">message</i>
Messages
<i class="material-icons">pause</i>
Videos
</div>
</div>
<div class="leftSideNav2">
<div class="leftSideNav2__lists">
<ul class="leftSideNav2__list1">Videos
<li>Action Required</li>
<li>Fund YouTuber</li>
<li>Hired & Funded</li>
<li>Edit Requested</li>
</ul>
<ul class="leftSideNav2__list2">Proposals
<li>New</li>
<li>Declined</li>
<li>Changes Required</li>
<li>Changes Declined</li>
</ul>
<ul class="leftSideNav2__list3">Approvals
<li>Waiting for Approval</li>
<li>Approved / Completed</li>
<li>Video in Dispute</li>
</ul>
</div>
</div>
</div>
</body>
Try this.

How to remove blank white space below footer?

I tried to eliminate the white space according to the answered questions that I found. But not of them is working on my side.
I tried to remove the padding in div's footer, but still the white space still there.
How to fix this?
CSS:
footer #bottom-footer{ background: url(/files/bg-testimonials.jpg) no-repeat; background-repeat: no-repeat; background-size: cover; box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.52); color: #000; text-align: left; padding: 50px 0 50px 0; font-size: 0.8125em; font-family: 'Open Sans', sans-serif; font-weight: 600; letter-spacing: normal; position: relative; left: 0; bottom: 0; height: auto; width: 100%; }
.footer-wrap a{ color: #000; }
.footer-wrap a:hover{ color: #d31716; }
.footer-logo a{ margin-bottom: 6px; display: block; }
.footer-socials{ float: none; line-height: 0; text-align: center; padding: 1em 0 2em;}
.footer-socials a{ border-radius: 100%; border: 3px solid #FFF; color: #FFF; display: inline-block; font-size: 1.25em; line-height: 2.50em; margin-left: 0.1em; text-align: center; vertical-align: middle; width: 2.50em; height: 2.50em; }
.footer-socials .social-icons span{ cursor: pointer; display: inline-block; }
.footer-socials .socials i{ -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden; }
.tagcloud a{ font-size: 13px !important; background: rgba(0,0,0,0.4); padding: 8px 10px; margin: 0 2px 4px 0; display: inline-block; line-height: 1; }
.sidebar .tagcloud a{ background: #23A38F; color: #FFF; }
.bottom-menu{ float: right; margin: 1em 4em 0 0; }
.bottom-menu ul{ list-style-type: none; font-size: 1.1125em; }
.bottom-menu ul li{ display: inline-block; font-family: 'Open Sans', sans-serif; font-weight: normal; line-height: 1.8; border-radius: 5px; border: 1px solid #CCC; box-shadow: 0 0 2px rgba(0,0,0,0.3); padding: 1em; margin: 0 0.10em 0 0; background: #FFF; color: #3e3e3e; }
.footerimg{ width:6em; }
.copyright{ margin: 2em 0 0 4em; }
.copyrighttext{ font-size: 1.08em; font-weight: 600; color: #B3B3B3; margin: 0 0 0 0.50em; }
#imgv ul{ list-style-type: none; letter-spacing: 1px; margin-top: -20px; font-size: 0.75em; }
#imgv ul li{ display: inline; }
.social-footer-mobile{ display: none; }
.footer-vertical-line{ border-top: 1px solid #8c8b8b;width: 9em; vertical-align: middle; position: relative; }
.left{ left: 32.50em; top: 1.65em; }
.right{ right: 32.50em; top: -1.45em; float: right; }
HTML:
<div id="bottom-footer" class="footer-menu">
<div class="ak-container">
<div class="footer-wrap clearfix">
<div class="footer-socials clearfix">
<div class="footer-vertical-line left"></div>
<div class="socials">
<span class="font-icon-social-facebook"></span>
<span class="font-icon-social-twitter"></span>
<span class="font-icon-social-youtube"></span>
<span class="font-icon-social-linkedin"></span>
</div>
<div class="footer-vertical-line right"></div>
</div>
<div class="footer-columns-4">
<ul>
<li>Products</li>
<li>All products</li>
<li>Standard loan</li>
<li>Promo loans</li>
<li>Insurance for loans</li>
</ul>
<ul>
<li>About Loans</li>
<li>How to apply</li>
<li>Our partner stores</li>
<li>Terms & Conditions</li>
<li>Safety guarantee</li>
</ul>
<ul>
<li>For Customers</li>
<li>Financial literacy</li>
<li>Payments & Guidelines</li>
<li>Menu</li>
<li>FAQ</li>
</ul>
<ul>
<li>Title</li>
<li>About us</li>
<li>News</li>
<li>Careers</li>
<li>Contacts</li>
</ul>
</div>
<nav role="navigation">
<div class="bottom-menu">
<ul class="footer-desktop-version">
<li><span class="footer-icon-cs icon-icon-support"></span>Customer Service: <strong>11111111</strong></li>
<li><span class="footer-icon-cs icon-icon-collection"></span>Collections <strong>1111111</strong></li>
</ul>
</div>
</nav>
<div class="copyright">
<img src="/files/footer.jpg" class="footerimg"><span class="copyrighttext"> All Rights Reserved ® 2017
Company Name</span>
</div><!-- .copyright -->
</div><!-- .footer-wrap -->
</div>
</div>
Your code shows nothing, perhaps you can't reveal your web address no problem.
You need to check something in your html any div or content area have minus value like top:-100px if you set something like this you need to change like margin-top:-100px
first you have to right click on the footer and click inspect
then you will see all the css applied to that particular element, select the parent element
check if bottom padding is applied to body or footer element
if you dont find bottom padding for footer or body element or other parent class of footer specify bottom padding in negative. (eg -5px)
note: you dont need to modify the css directly for testing purpose you can change and check the effect in debugging tool itself (f12 shortcut for debugging tool)
it should be something like:
(element name) { padding-bottom:-30px); }
also check for bottom margin if padding does not work.

how to fix the last div container on the bottom of the sidebar

i build a basic sidebar, with an navigation list inside. What i'm trying is to get the last div container .sidebar-footer on the bottom of the sidebar. When i gave the class a position absolute, it's overlaying over the list item, what should i do to get it like in our design pic?
<div class="pulse-menu">
<div class="menu-bg clearfix">
<div class="sidebar-profile">
<img src="img/users/avatar.jpg" class="sidebar-img" alt="Candice Swanepoel" title="Candice Swanepoel" />
<h5>Candice Swanepoel</h5>
</div>
</div>
<nav>
<ul>
<li>Dashboard</li>
<li>Models</li>
<li>Kunden</li>
<li>Finanzen</li>
<li>Mitarbeiter</li>
<li>Einstellung</li>
</ul>
<div class="sidebar-footer">
<li><i class="icon-cloud-upload circle-icon"> </i></li>
</div>
</nav>
</div>
Css:
.pulse-menu {
background-color: #fafafa;
width: 19.286em;
position: fixed;
z-index: 1050;
top: 0;
bottom: 0;
height: 100%;
text-transform: uppercase;
overflow-y: scroll;
}
.menu-bg {
width: 270px;
height: 230px;
background: url(../img/media/menu_bg.svg) ;
background-size: 270px 221px;
background-repeat: no-repeat;
}
.sidebar-profile {
margin: 0 auto;
width: 100%;
text-align: center;
box-sizing: border-box;
padding: 20px 0;
color: #333;
line-height: 0.6em;
}
.sidebar-profile img {
border-radius: 100%;
height: 60px;
width:60px;
}
.sidebar-profile h5 {
padding-top: 0.50em;
color: #a8a8a8;
font-size: 1.02em;
}
.pulse-menu>nav ul {
padding: 0;
list-style-type: none;
}
.pulse-menu>nav>ul>li>a {
color:#333;
display:block;
font-size:1.02em;
height:40px;
line-height:0px;
padding-bottom:1.5em;
padding-left:2em;
padding-right:2em;
padding-top:1.5em;
text-align:center;
}
here is a working jsfiddle with my code
Give your footer class this styles
.sidebar-footer{
height: 50px;
position: absolute;
width: 100%;
bottom: 0;
list-style-type: none;
padding-bottom:5.5em;
}
You can use the :last-child selector in your CSS.
HTML:
<nav>
<ul>
<li>Dashboard</li>
<li>Models</li>
<li>Kunden</li>
<li>Finanzen</li>
<li>Mitarbeiter</li>
<li>Einstellung</li>
</ul>
<div class="sidebar-footer">
<li><i class="icon-cloud-upload circle-icon"> </i></li>
</div>
</nav>
CSS
.nav ul li:last-child {
//your styling
}
CSS
<style>
.pulse-menu {
background-color: #fafafa;
width: 19.286em;
position: fixed;
z-index: 1050;
top: 0;
bottom: 0;
height: 100%;
text-transform: uppercase;
overflow-y: scroll;
}
.menu-bg {
width: 270px;
height: 230px;
background: url(../img/media/menu_bg.svg) ;
background-size: 270px 221px;
background-repeat: no-repeat;
}
.sidebar-profile {
margin: 0 auto;
width: 100%;
text-align: center;
box-sizing: border-box;
padding: 20px 0;
color: #333;
line-height: 0.6em;
}
.sidebar-profile img {
border-radius: 100%;
height: 60px;
width:60px;
}
.sidebar-profile h5 {
padding-top: 0.50em;
color: #a8a8a8;
font-size: 1.02em;
}
.pulse-menu>nav ul {
padding: 0;
list-style-type: none;
}
.pulse-menu>nav>ul>li>a {
color:#333;
display:block;
font-size:1.02em;
height:40px;
line-height:0px;
padding-bottom:1.5em;
padding-left:2em;
padding-right:2em;
padding-top:1.5em;
text-align:center;
}
.specialelement {
padding-top: 500px;
display:block;
padding-left:6em;
list-style-type: none;
color: #333;
}
</style>
HTML
<div class="pulse-menu">
<div class="menu-bg clearfix">
<div class="sidebar-profile">
<img src="img/users/avatar.jpg" class="sidebar-img" alt="Candice Swanepoel" title="Candice Swanepoel" />
<h5>Candice Swanepoel</h5>
</div>
</div>
<nav>
<ul>
<li>Dashboard</li>
<li>Models</li>
<li>Kunden</li>
<li>Finanzen</li>
<li>Mitarbeiter</li>
<li class="specialelement">
<li>Einstellung</li>
</li>
<div class="sidebar-footer">
<li><i class="icon-cloud-upload circle-icon"> </i></li>
</div>
</nav>
</div>
Result

How would I make this Navigation Bar Drop Down?

I am Trying to make a drop down menu for my website ( http://www.imsev.com ) and I cannot figure out how to get my menu to drop down inside the CSS. JSFiddle of the navigation bar.
Here is my HTML for the Navigation Bar.
<div style="background-color:#FFF; z-index:5; height:auto; width:auto;">
<div id="header">
<img id="nav_img" src="graphics/nav_img.svg" height="122" width="201" alt="Lanier Canoe and Kayak Club logo"/>
<div id="nav_bar" style:"color:#FFF;">
<header id="title">Lanier Canoe and Kayak Club</header>
<nav>
<ul id="nav_words">
<li class="selected items">Home</li>
<li class="items">About Us</li>
<ul>
<li>Board Of Directors</li>
<li>Coaches and Staff</li>
<li>Sponsors</li>
<li>Contact Us</li>
</ul>
<li class="items">Events</li>
<ul>
<li>Polar Bear Swim</li>
<li>Lula Bridge Race</li>
<li>Southeast Paddle Sport - Kayak Trader Challenge</li>
<li>USACK Collegiate Nationals & Spring Sprints</li>
<li>Paddlethon and Cardboard Boat Race</li>
<li>Gainesville-Hall Dragon Boat Challenge</li>
<li>Southern Invitational Regatta</li>
<li>USACK Sprint National Championschip</li>
<li>Halloween Howl</li>
</ul>
<li class="items">Programs</li>
<ul>
<li>Recreational Membership</li>
<li>Summer Camp</li>
<li>BBI Jr. Olympic Program</li>
<li>Six Weeks to Nationals</li>
<li>Adult Learn to Kayak</li>
<li>Rentals</li>
<li>Moonlight Paddles</li>
<li>Dragon Boat</li>
<li>Competitive Programs (Kids and Adults)</li>
</ul>
<li class="items login">Log In</li>
</ul>
</nav>
</div>
</div>
Here is the Active CSS
#title {
float: left;
vertical-align: middle;
padding-top: 13px;
margin-top: 0px;
left: 0px;
padding-left: 136px;
font-size: 25px;
font-family: 'Carrois Gothic', sans-serif;
}
#header_img{
border: none;
margin: 0 auto;
display: block;
z-index: -10;
position: relative;
top: 1px;
}
#header {
width: 100%;
height: 150px;
padding-bottom:20px;
color:white;
position:static;
}
#nav_bar {
height: 56.088px;
width: 88%;
background-color: #629B5D;
z-index: 2;
position: absolute;
left: 120px;
border-top: 68px solid white; /* Added. */
top: 0; /* Added. */
}
#nav_img {
z-index: 3;
position: absolute;
top: 15px;
left: 37px;
}
#nav_words {
display: inline;
padding-top: 0px;
float: right;
padding-left: 0px;
padding-right: 0px;
margin-right: 0px;
margin-left: 0px;
vertical-align: middle;
margin-top: 15px;
}
#nav_words a {
text-decoration:none;
}
.items {
display: inline;
padding-top:5px;
vertical-align: middle;
margin-right: 25px;
font-family: 'Carrois Gothic', sans-serif;
list-style-type:none;
}
#nav_words a {
color: #FFF;
background-color: #629B5D;
font-size:18px;
}
#menu_item :hover {
color: #D4D4D4;
opacity: 75%;
}
.login {
border: solid 1px;
border-radius: 50px;
padding: 4px;
background-color:#7DC476;
border-color:#7DC476;
}
.login :hover {
background-color: #7DC476;
border-color: #9FD39A;
}
.selected {
border: solid 1px #92CD8D;
background-color: #92CD8D;
padding: 18px 5px;
margin-right:10px;
}
`
There's an error in your HTML. Do not use IDs to refer to multiple items with the same ID; use classes instead.