KLL1K3R KLL1K3R - 6 months ago 82
CSS Question

css text-indent equivalent on the right side

I have right-side aligned text and I want it to push it a little bit left like you do with text-indent bur on the right side. Any solution with that?
I've been trying with margin, but IE9 doubles the margin on the first menu item (?).

Heres the css:

{ padding: 0px;
font-family: lucida, sans-serif;
font-size: 16px;
font-weight: bold;
line-height: 40px;

{ width: 230px;
height: auto;
float: left;
margin-right: 0px;

{ list-style-type: none;
overflow: hidden;

ul a:link, ul a:visited
{ display: block;
width: 210px;
background: transparent;
text-align: right;
text-transform: uppercase;
text-decoration: none;
height: 40px;
color: #ffffff;
padding: 0px;
margin: 10px;

ul a:hover, .selected
{ background: #484848 !important;
color: #ffffff !important;

The menu is a simply horizontal one.


There is none, unfortunately there is no text outdent in css, hower, you could use text direction direction:rtl; for some short texts, in that way indent will appear on the other side.