jquery - Text appear to right of links -


i have more text appear next links when hovered over, so;

link---text further explaining link

i've used several methods none need. heres code far;

html

<!doctype html> <html> <head>   <link href='http://fonts.googleapis.com/css?    family=righteous|oswald|slabo+27px' rel='stylesheet' type='text/css'> <link rel='stylesheet' href='style.css'/> <script src='script.js'></script> </head>  <body> <h1> mangopulp</h1> <header>     <div class="nav">       <ul class="nav">         <li class="home"><a href="#">home</a></li>         <li class="purchase"><a href="#"> purchase</a></li>         <li class="products"><a href="#">products</a></li>         <li class="soggynotions"><a href="#">soggynotions</a></li>       </ul>  </header>  </body> </html> 

css

body { background-color: black; }  h1 { font-family: 'righteous', cursive; text-align: center; color: white; font-size: 72px;  font-style: normal;  font-variant: normal;  font-weight: 500;  }  .nav ul { font-family: 'oswald', sans-serif; list-style: none; text-align: left; padding: 50; margin: 0; } .nav li  { font-family: 'oswald', sans-serif; font-size: 45px; height: 60px; }  .nav { font-family: 'oswald', sans-serif; text-decoration: none; color: #fff; display: block;  transition: .4s; } .nav a:hover { color: black; transition: .6s; }  .home a:hover { line-height: 100%; font-size: 60px; background-color: rgb(244, 51, 0) }  .purchase a:hover { line-height: 100%; font-size: 60px; background-color: rgb(244, 153, 0) }  .products a:hover { line-height: 100%; font-size: 60px; background-color: rgb(255, 204, 0) }  .soggynotions a:hover { line-height: 110%; font-size: 60px; background-color: rgb(204, 204, 0) } 

if @ code, need text right of link appear in colored bars when link being hovered over. please , thank you. first question i've asked on site if anythings wrong please bring attention.

you can add title anchor element purpose.

<a href="url" title="details link">text</a> 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -