我有一个有一些项目的菜单栏,但我想添加一个具有相同样式的注册/登录项目,但它在右侧对齐,不会影响中心的其他项目.基本上,我有一个名为"登录/注册"的项目,我希望它不会影响其他任何项目并拥有它自己的独立课程,同时仍然是菜单栏的一部分......任何帮助都非常感谢.谢谢!
/*Some Fonts Here:*/
@font-face {
font-family: Rusty;
src: url('BrushScriptStd.otf');
}
* {
font-family: Rusty;
font-weight: Lighter;
}
.background {
background-image: url(0.jpg);
background-attachment: fixed;
background-size: 100% auto;
background-color: f7f7f7;
background-repeat: no-repeat;
background-position: center top;
}
/*Start of menu code*/
.menubar {
height: 2.8vw;
opacity: 0.85;
background-color: #CCCCCC;
}
.clearfix:after {
display: block;
clear: both;
}
.menu-wrap {
width: 50%;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
background: #3e3436;
}
.menu {
width: 100%;
margin: 0px auto;
text-align: center;
}
.menu li {
margin: 0px;
list-style: none;
font-family: 'Ek Mukta';
}
.menu a {
transition: all linear 0.15s;
color: #919191;
}
.menu li:hover > a,
.menu .current-item > a {
text-decoration: none;
color: rgba(189, 34, 34, 1);
}
.menu .arrow {
font-size: 0.95vw;
line-height: 0%;
}
.menu > ul > li {
float: middle;
display: inline-block;
position: relative;
font-size: 1.2vw;
}
.menu > ul > li > a {
padding: 0.7vw 5vh;
display: inline-block;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.4);
}
.menu > ul > li:hover > a,
.menu > ul > .current-item > a {
background: #2e2728;
}
.menu li:hover .sub-menu {
opacity: 1;
}
.sub-menu {
z-index: 99999;
width: 100%;
padding: 0px 0px;
position: absolute;
top: 100%;
left: 0px;
opacity: 0;
transition: opacity linear 0.15s;
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
background: #2e2728;
z-index: -5;
}
.sub-menu li {
display: block;
font-size: 1.2vw;
}
.login {
width: 100%;
margin: 0px relative;
text-align: right;
}
.sub-menu li a {
padding: 10px 10px;
display: block;
}
.sub-menu li a:hover,
.sub-menu .current-item a {
background: #3e3436;
z-index: 99;
postition: absolute;
}
/*End of menu code*/
.Rusty {
font-family: "Rusty";
color: rgba(189, 34, 34, 1);
line-height: 1.2;
text-align: center;
text-shadow: 0px 13px 21px rgba(0, 0, 0, 0.35);
}
.content {
margin: auto;
width: 80%;
background-color: #CCCCCC;
padding: 10px;
height: 100%;
}
RG - Home
Colortone | Am I colorblind?! | W/Voiceless