Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Move text in user area by pixels?

Aloittaja Fred Biles, kesäkuu 23, 2011, 10:10:04 IP

« edellinen - seuraava »

Fred Biles

Here is the user area in an index.css

#userarea {
    float: right;
    padding: 2em 0px 0 20px;
    text-align: right;
    font-size: 0.9em;
    color: #7b7b7b;
    font-family: verdana, tahoma, sans-serif;
   width: 38em;
    line-height: 15px;

I want to use text-align: center for my text in the user area, but doing it cuts off the first 2 letters of the text because they're hidden by the forum logo (which can't go anymore to the left). Can one text-align: center and then move the text over to the right a certain amount of pixels from that center? If so, what is the code you use for that?

Advertisement: