align link with css

liunx

Guest
hi,

i was trying to align links with css code text-align: center, however, this code doesn't work.

please tell me how can i fix that.

i really need to know. so i can do something

i did it this way

a {text-align: center}

in style and then
wrote the link
<a href=http://www.webdeveloper.com/forum/archive/index.php/".."> ...</a>
but the link stays on left, and doesn't move at all.

tell me how can i align links to right and center using css
i really need it.

thanks.

nasrinalso bro or sis,

the div first-child code doesn't work in my computer, why not? tell me please.

thanks...Would it be possible to get a link to the page you're using this on? Or just the code for the page? It might help a bit...text-align doesn't really work on inline elements, you will have to set the width for the link in order for the text-align to work

:first-child doesn't work in IE (IE only supports simple CSS selectors) to get it to work in IE you would have to do this:<p:first-child>some text</p:first-child><p>some text</p>thanks a lot for the replies.

but brothers,

tell me then how can i align links with CSS to right and center. i need that really badly.

and i understood the problem with first-child code. thanks.Would it be possible to get a link to the page you're using this on? Or just the code for the page? It might help a bit...

it is actually code for the page, not for a perticular website.

i just want to align the links to the center of the page or right of the page, but i couldn't do it. now i know that text-center doesn't work for inline element.

so, what can i use to align the links to the center or right of the page.does one element property affect other elements that is below the first one.

as i saw, in my above p {...} property affect the below ones,
how can i prevent it and do i therefore, need to assign everything different way.


oh! the margin,
why doesn't the bottom margin work when it is set alone like no paragram or anything below it. it works when something else is below it otherwise doesn't.

take care.
 
Back
Top