I have this code:
<div class="headmenus">
<ul>
<li>HOME</li>
<li>ABOUT US</li>
<li>COURSES</li>
<li>VACANCIES</li>
<li>CONTACT US</li>
<li></li>
</ul>
</div>
<div class="searchform2">
<form action="search.php#goto1" method="get" id="headersearch">
<input type="hidden" name="p" value="0" />
<input type="text" name="keyword" id="headerkeyword" placeholder="Search any keyword" value="" />
<input type="submit" value="SEARCH" class="but1" />
</form>
</div>
I'd like the headmenus and searchform2 to be positioned side by side.
Now I get the searchform2 on a new line.
Here's the CSS:
.searchform2 {
float: right;
display: inline;
clear: left;
width:auto !important;
border:2px solid #616566;
}
.searchform2 input {
border:2px solid #616566;
float: left;
}
.searchform2 .but1 {
background: url("images/search.png") no-repeat scroll 8px 9px #89AB20;
border: 0 none !important;
color: #FFFFFF !important;
float: right !important;
display: inline;
font-weight: bold;
padding: 6px 12px 6px 23px !important;
width: auto !important;
font-family: Arial;
font-size: 12px;
height: 30px;
margin-right: 0 !important;
cursor:pointer;
}
and here's the headmenus css:
.headmenus {
background: none repeat scroll 0 0 #0086B2;
display: inline;
float: left;
margin: 0;
width: 100%;
}
.headmenus ul {
border-bottom: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
display: inline;
float: left;
font-family: 'texgyreadventorregular';
font-size: 14px;
margin: 0;
padding: 0;
width: 100%;
}
.headmenus ul li {
border-right: 1px solid #FFFFFF;
color: #FFFFFF;
display: inline;
float: left;
list-style-type: none;
padding: 0;
text-align: center;
width: 13.35%;
}
.headmenus ul li a {
color: #FFFFFF;
display: inline;
float: left;
font-family: 'texgyreadventorregular';
font-size: 14px;
list-style-type: none;
text-align: center;
width: 100%;
padding:5px 0px;
}
.headmenus ul li:last-child {
border-right: 0 none;
float: right;
width: auto; !important
}
.headmenus ul li:hover {
background: #89ab20;
cursor: pointer;
}
.headmenus ul li.active {
background: #89ab20;
}
Simple just add one class on headmenus ( float:left; ) and remove (clear:left) on .searchform2, just copy paste below new/updated code:
.searchform2 {
float: right;
display: inline;
width:auto !important;
border:2px solid #616566;
}
.searchform2 input {
border:2px solid #616566;
float: left;
}
.searchform2 .but1 {
background: url("images/search.png") no-repeat scroll 8px 9px #89AB20;
border: 0 none !important;
color: #FFFFFF !important;
float: right !important;
display: inline;
font-weight: bold;
padding: 6px 12px 6px 23px !important;
width: auto !important;
font-family: Arial;
font-size: 12px;
height: 30px;
margin-right: 0 !important;
cursor:pointer;
}
.headmenus { float:left}
use display: inline-block on your headmenus class.
JSFIDDLE
Change the CSS to include display:inline-block. I believe that may do the trick
Related
I have been working on fixing this but cannot figure out what I am missing. I would like for drop down list to show right below its parent. The list shows but all go to far left and forces the remaining nav items to drop down to another line. i have included a snippet for what is currently looks like and an image of what I want it to look like. Also, I have been trying to figure out how to add down fa fa-caret to nav items with drop down list. Please help!
.navbar {
background: linear-gradient(#9E0A0C, #EBEBEB);
padding: 10px;
border-top: solid 1px #000000;
overflow: hidden;
}
.navbar a {
text-decoration: none;
color: #ffffff;
font-weight: bolder;
font-size: 20px;
text-transform: uppercase;
padding: 3px 5px;
margin: auto;
/*float: left; may need to be removed to show borders*/
display: inline;
}
.navbar ul {
padding: 0;
margin-top: 0;
width: auto;
}
.navbar li {
border-left: solid 2px #000000;
display: inline;
list-style-type: none;
width: 800px;
padding: 0;
}
.navbar a:active {
background-color: #000000;
}
.navbar a:hover {
background-color: #ddd;
color: black;
font-size: 20px;
}
li:first-child {
border-left: none;
}
.dropdown {
display: block;
overflow: hidden;
/*float: left;*/
}
.list {
display: none;
min-width: 50px;
max-width: 150px;
z-index: 2;
box-shadow: 0 8px 16px 0 #e7e7e7;
background: #050243;
}
.list a {
color: #000000;
float: none;
font-size: 14px;
text-decoration: none;
display: block;
text-align: left;
background: #B6B6B6;
columns: 2;
}
.list a:hover {
background-color: #EEEEEE;
}
.dropdown:hover .list {
display: block;
}
form {
float: right;
padding: 0px;
margin: 0;
overflow: auto;
}
input {
border: solid 1px #000000;
background-image: url(pics/search.png);
background-repeat: no-repeat;
background-position: center right;
background-size: 15px;
border-radius: 5px;
padding: 5px 2px;
width: 250px;
}
<div class="navbar">
<ul>
<li>Home</li>
<li class="dropdown">Our Lodge
<div class="list">
NEWS
FACILITIES
OFFICERS
GUEST BOOK
</div>
</li>
<li class="dropdown">Events
<div class="list">
CALENDAR
BINGO
</div>
</li>
<li class="dropdown">Contact Us
<div class="list">
BECOME AN ELK
</div>
</li>
<form action="#">
<input type="text" placeholder="Search.." name="search">
</form>
</ul>
</div>
You can achieve this by first making the div.list element into an absolute positioned. The 'display:block' property was pushing all the other content down to the next row because the block element was taking up space.
As you see now the list is no longer pushing the content down but now it is not aligned to the correct nav item. We are also going to add a left:0 so that the div.list is to the left of the parent property.
Now the parent property needs a position of relative so that the left:0 on the child element is being positioned relative to the parent element.
.dropdown:hover .list {
display: block;
position: absolute;
left: 0;
}
.navbar li {
border-left: solid 2px #000000;
display: inline;
list-style-type: none;
width: 800px;
padding: 0;
position: relative;
}
The problem with your CSS code is, you missed to add position: relative and position: absolute to the .dropdown and .list selectors, which is compulsory to create dropdown. Try this code.
.navbar {
background: linear-gradient(#9E0A0C, #EBEBEB);
padding: 10px;
border-top: solid 1px #000000;
}
.navbar a {
text-decoration: none;
color: #ffffff;
font-weight: bolder;
font-size: 20px;
text-transform: uppercase;
padding: 3px 5px;
margin: auto;
/*float: left; may need to be removed to show borders*/
display: inline;
}
.navbar ul {
padding: 0;
margin-top: 0;
width: auto;
}
.navbar li {
border-left: solid 2px #000000;
display: inline;
list-style-type: none;
width: 800px;
padding: 0;
}
.navbar a:active {
background-color: #000000;
}
.navbar li:hover > a {
background-color: #ddd;
color: black;
}
li:first-child {
border-left: none;
}
.dropdown {
display: block;
overflow: hidden;
position: relative;
/*float: left;*/
}
.list {
display: none;
min-width: 50px;
max-width: 150px;
z-index: 2;
box-shadow: 0 8px 16px 0 #e7e7e7;
background: #050243;
position: absolute;
left: 0;
top: 100%;
}
.list a {
color: #000000;
float: none;
font-size: 14px;
text-decoration: none;
display: block;
text-align: left;
background-color: #B6B6B6;
columns: 2;
}
.list a:hover {
background-color: #EEEEEE;
}
.dropdown:hover .list {
display: block;
}
form {
float: right;
padding: 0px;
margin: 0;
overflow: auto;
}
input {
border: solid 1px #000000;
background-image: url(pics/search.png);
background-repeat: no-repeat;
background-position: center right;
background-size: 15px;
border-radius: 5px;
padding: 5px 2px;
width: 250px;
}
--> Please update following code in your existing file
.navbar {
background: linear-gradient(#9E0A0C, #EBEBEB);
padding: 10px;
border-top: solid 1px #000000;
}
.navbar a {
text-decoration: none;
color: #ffffff;
font-weight: bolder;
font-size: 20px;
text-transform: uppercase;
padding: 3px 5px;
margin: auto;
display: inline;
}
.navbar ul {
padding: 0;
margin-top: 0;
width: auto;
}
.navbar li {
border-left: solid 2px #000000;
display: inline;
list-style-type: none;
width: 800px;
padding: 0;
position: relative;
}
.navbar a:active {
background-color: #000000;
}
.navbar a:hover {
background-color: #ddd;
color: black;
}
li:first-child {
border-left: none;
}
.dropdown {
display: block;
overflow: hidden;
}
.list {
opacity: 0;
visibility: hidden;
min-width: 50px;
max-width: 150px;
z-index: 2;
box-shadow: 0 8px 16px 0 #e7e7e7;
background: #050243;
position: absolute;
top: 20px;
left: 0;
transition: 0.3s ease-in-out;
}
.list a {
color: #000000;
float: none;
font-size: 14px;
text-decoration: none;
display: block;
text-align: left;
background: #dddddd;
columns: 2;
}
.list a:hover {
background-color: #EEEEEE;
}
.dropdown:hover .list {
opacity: 1;
visibility: visible;
}
form {
float: right;
padding: 0px;
margin: 0;
overflow: auto;
}
input {
border: solid 1px #000000;
background-image: url(pics/search.png);
background-repeat: no-repeat;
background-position: center right;
background-size: 15px;
border-radius: 5px;
padding: 5px 2px;
width: 250px;
}
<div class="navbar">
<ul>
<li>Home</li>
<li class="dropdown">Our Lodge
<div class="list">
NEWS
FACILITIES
OFFICERS
GUEST BOOK
</div>
</li>
<li class="dropdown">Events
<div class="list">
CALENDAR
BINGO
</div>
</li>
<li class="dropdown">Contact Us
<div class="list">
BECOME AN ELK
</div>
</li>
<form action="#">
<input type="text" placeholder="Search.." name="search">
</form>
</ul>
</div>
Ok so something wierd is happenning to my page.
I have a navigation bar which looks like this.
Now when I add a form input anywhere in the page, it just suddenly breaks.
Also, it only happens in chrome and is fine in other browsers.
what is causing this?.. I checked all the components and found that if i remove the input box , it becomes fine.
/*Layout*/
.wrapper {
background: red;
max-width: 80em;
/*1280px*/
margin: 0 auto;
}
.header {
background: white;
padding-left: 45px;
/*3.515625%;*/
}
.logo {
float: left;
padding-top: 17px;
/*17px*/
padding-bottom: 16px;
/*16px*/
}
.header-right {
float: right;
}
.navigation {
float: left;
padding: 0 12px;
}
.menu-btn {
float: right;
}
.slider {
height: 590px;
background: grey;
}
img {
display: block;
}
/*style for navigation bar*/
.navigation ul {
list-style: none;
}
.navigation ul li {
float: left;
padding: 0 15px;
background: ;
}
.navigation ul li a {
text-decoration: none;
font-family: 'Montserrat', sans-serif;
font-size: 9px;
color: #49443d;
background: url('../images/menu-arrow.png') right center no-repeat;
padding-right: 7px;
line-height: 59px;
}
.navigation ul li a:hover {
color: #fe444b;
background: url('../images/menu-arrow-active.png') right center no-repeat;
}
.navigation .active a {
color: #fe444b;
background: url('../images/menu-arrow-active.png') right center no-repeat;
}
.search-menu {
float: left;
width: 57px;
height: 59px;
background: url('../images/search-icon.png') center center no-repeat;
border-left: 1px solid #ededed;
}
.search-menu a {
display: block;
}
.shopping-cart {
float: left;
width: 56px;
background: url('../images/shopping-cart.png') 17px center no-repeat;
border-left: 1px solid #ececec;
border-right: 1px solid #7d7d7d;
}
.cart-item-no {
line-height: 59px;
padding-right: 14px;
float: right;
font-family: 'Roboto', sans-serif;
font-size: 11px;
color: #575861;
}
.burger-btn {
float: left;
width: 56px;
height: 59px;
background: url('../images/burger-btn.png') center center no-repeat;
background-color: #333333;
border-left: 1px solid #161616;
border-right: 1px solid #161616;
}
<div class="wrapper">
<!-- header starts here-->
<div class="header clrfix">
<div class="logo">
<a href="#">
<img src="images/logo.png">
</a>
</div>
<div class="header-right clrfix">
<div class="navigation">
<ul>
<li class="active">HOME
</li>
<li>PAGES
</li>
<li>BLOG
</li>
<li>PORTFOLIO
</li>
<li>ELEMENTS
</li>
<li>SHOP
</li>
</ul>
</div>
<div class="menu-btn clrfix">
<a href="#">
<div class="search-menu">
</div>
</a>
<a href="#">
<div class="shopping-cart">
<span class="cart-item-no">
0
</span>
</div>
</a>
<a href="#">
<div class="burger-btn">
</div>
</a>
</div>
</div>
</div>
<!-- slider starts here -->
<div class="slider">
<form>
<input type="text" name="email" placeholder="Your email">
</form>
</div>
</div>
You need to add float: left and width: 100% to your header class to achieve what you need. Also you need to remove the padding-left from header class and add padding individually to the logo class to get rid of any bottom scroll issue. Try the below code and let me know everything is working perfectly or not.
/*Layout*/
.wrapper {
background: red;
max-width: 80em;
/*1280px*/
margin: 0 auto;
}
.header {
background: white;
float: left;
width: 100%;
/*3.515625%;*/
}
.logo {
float: left;
padding: 16px;
}
.header-right {
float: right;
}
.navigation {
float: left;
padding: 0 12px;
}
.menu-btn {
float: right;
}
.slider {
height: 590px;
background: grey;
}
img {
display: block;
}
/*style for navigation bar*/
.navigation ul {
list-style: none;
}
.navigation ul li {
float: left;
padding: 0 15px;
background: ;
}
.navigation ul li a {
text-decoration: none;
font-family: 'Montserrat', sans-serif;
font-size: 9px;
color: #49443d;
background: url('../images/menu-arrow.png') right center no-repeat;
padding-right: 7px;
line-height: 59px;
}
.navigation ul li a:hover {
color: #fe444b;
background: url('../images/menu-arrow-active.png') right center no-repeat;
}
.navigation .active a {
color: #fe444b;
background: url('../images/menu-arrow-active.png') right center no-repeat;
}
.search-menu {
float: left;
width: 57px;
height: 59px;
background: url('../images/search-icon.png') center center no-repeat;
border-left: 1px solid #ededed;
}
.search-menu a {
display: block;
}
.shopping-cart {
float: left;
width: 56px;
background: url('../images/shopping-cart.png') 17px center no-repeat;
border-left: 1px solid #ececec;
border-right: 1px solid #7d7d7d;
}
.cart-item-no {
line-height: 59px;
padding-right: 14px;
float: right;
font-family: 'Roboto', sans-serif;
font-size: 11px;
color: #575861;
}
.burger-btn {
float: left;
width: 56px;
height: 59px;
background: url('../images/burger-btn.png') center center no-repeat;
background-color: #333333;
border-left: 1px solid #161616;
border-right: 1px solid #161616;
}
Check out this Fiddle for more clarifications.
I have a slight problem with my code trying to get on the navbar, each section to have an equal amount of space and not have space according to how many characters they have in the title. For example, MAP should have as much as ABOUT.
Here is what it looks like now:
.wrap {
width: 90%;
background-image: url(images/navbarbackground.png);
background-repeat: no-repeat;
margin: auto;
box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3);
padding: 0px;
font-family: minecrafter;
}
.wrap:after {
content: " ";
clear: both;
display: block;
height: 0;
visibility: hidden;
}
.wrap ul {
display: table;
width: 95%;
}
.wrap li {
display: table-cell;
vertical-align: middle;
}
.wrap li a {
text-decoration: none;
background-color: #EEEEEE;
color: #666666;
padding: 6px 0 6px 0;
border: 1px solid #CCC;
border-right: 1px solid #333;
border-bottom: 1px solid #333;
display: block;
text-align: center;
}
.wrap h2 {
margin-top: 10px;
margin-bottom: 10px;
text-transform: uppercase;
color: #ffffff;
width: 6em;
text-align: center;
line-height: 1.0;
letter-spacing: .04em;
display: in line-block;
vertical-align: middle;
float: left;
}
.wrap h2 span {
display: block;
letter-spacing: .17em;
}
.navwrap {
margin-top: 0px;
overflow: hidden;
padding-top: 16px;
padding-bottom: 0px;
margin-bottom: 10px;
}
<div class="wrap">
<h2 class="minecrafter">Miners <span>Union</span></h2>
<div class="navwrap">
<ul class="nav">
<li>Home
</li>
<li>Forums
</li>
<li>Donate
</li>
<li>Apply
</li>
<li>Map
</li>
</ul>
</div>
</div>
You could try this: fiddle
.wrap ul {
width:100%;
padding: 0;
}
.wrap li {
display:inline-block;
float: left;
width: 20%;
vertical-align:middle;
}
You just need
.wrap ul {
table-layout:fixed; /* this */
}
.wrap {
width: 90%;
background-image: url(images/navbarbackground.png);
background-repeat: no-repeat;
margin: auto;
box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3);
padding: 0px;
font-family: minecrafter;
}
.wrap:after {
content: " ";
clear: both;
display: block;
height: 0;
visibility: hidden;
}
.wrap ul {
display: table;
width: 80%; /* adjusted for demo only */
table-layout:fixed;
}
.wrap li {
display: table-cell;
vertical-align: middle;
}
.wrap li a {
text-decoration: none;
background-color: #EEEEEE;
color: #666666;
padding: 6px 0 6px 0;
border: 1px solid #CCC;
border-right: 1px solid #333;
border-bottom: 1px solid #333;
display: block;
text-align: center;
}
.wrap h2 {
margin-top: 10px;
margin-bottom: 10px;
text-transform: uppercase;
color: #ffffff;
width: 6em;
text-align: center;
line-height: 1.0;
letter-spacing: .04em;
display: in line-block;
vertical-align: middle;
float: left;
}
.wrap h2 span {
display: block;
letter-spacing: .17em;
}
.navwrap {
margin-top: 0px;
overflow: hidden;
padding-top: 16px;
padding-bottom: 0px;
margin-bottom: 10px;
}
<div class="wrap">
<h2 class="minecrafter">Miners <span>Union</span></h2>
<div class="navwrap">
<ul class="nav">
<li>Home
</li>
<li>Forums
</li>
<li>Donate
</li>
<li>Apply
</li>
<li>Map
</li>
</ul>
</div>
</div>
Or look this way
.nav{
list-style: none;
}
.nav li{
display: inline-block;
min-width: 100px;
}
.nav li a{
text-decoration: none;
background-color: #EEEEEE;
color: #666666;
padding: 6px;
border: 1px solid #CCC;
border-right: 1px solid #333;
border-bottom: 1px solid #333;
display: block;
text-align: center;
}
I am having trouble with css inline/block when using a <span> tag.
As you can see from the images, when you hover over the third message the Delete/Reply controls pop up, I do not wish for them to push the content down. How can I accomplish this?
This is my css code:
ul.inbox {
width: 100%;
list-style-type: none;
}
.unread {
border: 1px solid #999 !important;
background: #eee url("new.png") no-repeat !important;
background-position: left center !important;
}
li span.hidden {
clear: both;
visibility: hidden;
}
li span.messageControls {
clear: both;
float: right;
display: inline;
}
li span.messageControls a {
padding: 5px 5px 0 0;
font-size: 12px;
color: #06c;
}
li.message {
background: #eee;
border: 1px solid #ddd;
list-style-type: none;
display: block;
margin: 0 0 10px;
padding-left: 30px;
background-position: left center;
}
li.message:hover {
}
li.message a {
text-decoration: none;
}
li {
overflow: hidden;
}
li span.from {
margin: 5px 0 5px 5px;
font-family:"Open Sans",sans-serif;
font-size: 14px;
color: #666;
float: left;
font-weight: 700;
}
li span.date {
margin: 5px 5px 5px 0;
font-size: 12px;
float: right;
color: #06c;
}
li p.subject {
margin: 5px 0 5px 5px;
font-size: 14px;
color: #666;
clear: both;
font-weight: 700;
}
li p.preview {
margin: 5px 0 5px 5px;
font-size: 12px;
color: #999;
}
And my 'inbox' code:
<ul class="inbox">
<li id="1001843" class="message " onmouseout="document.getElementById('1001843MC').className='hidden'" onmouseover="document.getElementById('1001843MC').className='messageControls'" onclick="ajaxMessage(1001843);">
<span class="from">Michael·Norris</span> <span class="date">Yesterday·21:18</span> <span id="1001843MC" class="hidden">Reply Delete</span>
<p class="subject">gjhgjhg</p>
<p class="preview">jhgjhgjhg</p>
</li>
<li id="1001842" class="message " onmouseout="document.getElementById('1001842MC').className='hidden'" onmouseover="document.getElementById('1001842MC').className='messageControls'" onclick="ajaxMessage(1001842);">
<span class="from">Michael·Norris</span> <span class="date">Yesterday·21:18</span> <span id="1001842MC" class="hidden">Reply Delete</span>
<p class="subject">gfhjgjfdhsgf</p>
<p class="preview">gj·hg</p>
</li>
<li id="1001841" class="message " onmouseout="document.getElementById('1001841MC').className='hidden'" onmouseover="document.getElementById('1001841MC').className='messageControls'" onclick="ajaxMessage(1001841);">
<span class="from">Michael·Norris</span> <span class="date">Yesterday·20:17</span> <span id="1001841MC" class="hidden">Reply Delete</span>
<p class="subject">gjhgjhg</p>
<p class="preview">jhgjhgjhg</p>
</li>
</ul>
Fiddle here: http://jsfiddle.net/Er73L/
You need to set the clear properties correctly to achieve the behavior you want, and not just use clear: both blindly.
I did two changes to your CSS:
li span.messageControls {
clear: right; /* was clear: both; */
float: right;
display: block; /* was display: inline */
}
li p.subject {
margin: 5px 0 5px 5px;
font-size: 14px;
color: #666;
clear: left; /* was clear: both; */
font-weight: 700;
}
Here's a working example. I also recommend you read up on the documentation.
Here's how I propose you fix this: http://jsfiddle.net/Er73L/1/
Here's the diff compared to your original CSS: http://www.diffchecker.com/3tKbEnCe
li span.messageControls {
position: absolute;
right: 0;
top: 1em;
}
li.message {
background: #eee;
border: 1px solid #ddd;
list-style-type: none;
display: block;
margin: 0 0 10px;
padding-left: 30px;
background-position: left center;
position: relative; // NEW LINE
}
Simple fix, just use clear:left instead of clear:both like this:
li p.subject {
margin: 5px 0 5px 5px;
font-size: 14px;
color: #666;
clear:left;
font-weight: 700;
}
Fiddle
another option is to absolutely position the span elements,. just add this line to the bottom of your css and tweak it as needed...
.messageControls{width:100px;border:1px solid red;position:absolute;right:0;margin-top:20px;}
http://jsfiddle.net/nYCsx/1/
I have created a site for a Hebrew client. Here is the live demo link:
live link
The top row with links "About Us", "Contact", "Register", "Log In" is not showing properly in any ie browser. The icons should show on right of the text. I have tried different floats and margins, paddings, but it only messes things up.
How do I correct this code, please?
<div class="logobar">
<div class="logobar_content">
<ul class="toplinks">
<li>About Us</li>
<li>Contact</li>
<li>Register</li>
<li>Log In</li>
</ul>
<div class="left">
<p class="scart">
<span>0</span>itemsCheckout
</p>
<form action="post" class="search_form">
<input type="text" id="search" class="search" />
<input type="submit" id="submit" class="submit" value="" />
</form>
</div>
</div>
</div>
/*=========== LOGO BAR =========*/
.logobar {
height: 95px;
overflow: hidden;
position: relative;
margin: 0 auto;
width: 100%;
background: #f0f0f0 url(../images/logobar_repeat.png) 0 0 repeat-x;
}
.logobar_content {
width: 960px;
margin: 0 auto;
position: relative;
overflow: hidden;
}
.logo {
background: url(../images/logo.png) 0 0 no-repeat;
position: relative;
float: right;
width: 312px;
height: 71px;
margin-top: 13px;
}
ul.toplinks {
float: left;
width: 500px;
margin-top: 15px;
}
.toplinks li {
float: right;
list-style: none;
border-left: 1px solid #888;
padding: 0 13px 0 20px;
}
.toplinks li a {
padding: 0 0 0 35px;
font-family: Trebuchet MS, Arial, sans-serif;
font-size: 12px;
text-transform: uppercase;
color: #444;
text-decoration: none;
text-align: right;
}
.toplinks li a.info_icon, .toplinks li a.envelope_icon, .toplinks li a.pen_icon, .toplinks li a.lock_icon {
background: url(../images/info_icon.png) 0px 0 no-repeat;
width: 18px;
height: 15px;
}
.toplinks li a.envelope_icon {
background: url(../images/envelope_icon.png) 0 0 no-repeat;
}
.toplinks li a.pen_icon {
background: url(../images/pen_icon.png) 0 0 no-repeat;
}
.toplinks li a.lock_icon {
background: url(../images/lock_icon.png) 0 0 no-repeat;
}
.scart {
background: #eee url(../images/basket2.png) 95% 2px no-repeat;
float: right;
height: 25px;
margin: 17px 0px 0 25px;
padding: 3px 40px 0px 10px;
border: 1px solid #ccc;
}
.scart a {
float: right;
color: #ff720c;
font-weight: bold;
font-size: 14px;
margin-left: 5px;
}
.scart span {
margin-left: 4px;
}
.search_form {
float: left;
clear: left;
height: 26px;
margin-top: 20px;
background: url(../images/search_left2.png) 100% 0 no-repeat;
}
.search {
background: url(../images/search_repeat.jpg) 0 0 repeat-x;
border: none;
margin: 0 11px 0 0px;
float: right;
width: 170px;
height: 26px;
}
.submit {
background: url(../images/search_right2.png) 0 0 no-repeat;
width: 35px;
height: 26px;
float: left;
border: none;
}
Thanks.
It is so simple to accomplish that see the css rules below and rest you change as per your need.
.toplinks li a.lock_icon {
background: url("../images/lock_icon.png") no-repeat scroll 95% 0 transparent;
}
.toplinks li a {
color: #444444;
font-family: Trebuchet MS,Arial,sans-serif;
font-size: 12px;
padding: 0 35px 0 0; // See the css padding i changed to right
text-align: right;
text-decoration: none;
text-transform: uppercase;
}