Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move up character displayed inline

I have the following markup for breadcrumbs menu:

<div>     <span class="start-here">You are here:<span>     <a href="/">example.com</a>     <span class="raquo"> › </span>      <a href="/news">News</a>     <span class="raquo"> › </span>      Title </div> 

Is there a smart way to move those (.raquo) characters a few pixels up without absolute positioning when all of the elements are displayed inline? I want this character to be smaller than the others and to be displayed in the center of the line (or some pixels down/up).

(I need it to work also for IE6 and up)

like image 955
takeshin Avatar asked Feb 02 '11 16:02

takeshin


People also ask

How do you move a line up in CSS?

Move Left - Use a negative value for left. Move Right - Use a positive value for left. Move Up - Use a negative value for top. Move Down - Use a positive value for top.

How do I move up a span in CSS?

Move Left – Use a negative value for left. Move Right – Use a positive value for left. Move Up – Use a negative value for top.


1 Answers

.raquo {     position:relative;     top:-2px; } 

worked best for me

like image 141
sashn Avatar answered Sep 22 '22 17:09

sashn