Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7066931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:08:25+00:00 2026-05-28T05:08:25+00:00

ul.nav { list-style: none; display: block; width: 200px; position: relative; top: 10px; left: 300px;

  • 0
ul.nav {
    list-style: none;
    display: block;
    width: 200px;
    position: relative;
    top: 10px;
    left: 300px;
    padding: 10px 0 10px 10px;
    background: url(shad2.png) no-repeat;
    background-position:right;

}

ul.nav li a 
{
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    background: #005A9C url(border.png) no-repeat;
    background-position: right;
    color: #FFFFFF;
    padding: 7px 15px 7px 20px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
    width: 100px;
    display: block;
    text-decoration: none;
    -webkit-box-shadow: 2px 2px 4px #888;
    box-shadow: 2px 2px 4px #888;
}


ul.nav li a:hover
{
    background: #ebebeb url(border.png) no-repeat;
    color: #005A9C;
    padding: 7px 15px 7px 30px;
}

The above CSS transition produces a transition that moves from left to right on each li a. How do I reverse the transition effects to move from right to left. Looks like its a default CSS3 property.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:08:25+00:00Added an answer on May 28, 2026 at 5:08 am

    Change the padding:

    ul.nav li a {
        ...
        padding: 7px 15px 7px 30px;
    }
    
    ul.nav li a:hover {
        ...
        padding: 7px 35px 7px 20px;
        position:relative;
        left:-20px;
    

    }

    Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

.work .nav { list-style: none; margin: 0 0 5px 5px; padding: 0; position:absolute; top:248px;
Here is my code : <div class=Cat-list unselectable style=font-weight:bold;> <div class=right-bar-nav-item> <asp:HyperLink runat=server ID=lnkHome
I have the following HTML: <!DOCTYPE html> <html> <head> <style> #nav { float: left;
<?php $activesidebar[$currentsidebar]=id=isactive;?> <div class=span3> <div class=well sidebar-nav hidden-phone> <ul class=nav nav-list> <li class=nav-header <?php
I want to have my list (nav) align to the center of an image
I have built a nav where I have an unordered list made up of
I'm trying to get the nav-bar to position over the image using CSS. Yet,
Im doing a nav. Its a ul list. the 'a' tags and 'span's are
I'm attempting to style a nav <li> element in the same way that I
Fiddle here: http://jsfiddle.net/csaltyj/3A78u/ I want the sub-sub nav menu to align with the top

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.