How do you align a link with html or css?

Chris B

New member
If you wanted to specify just one link in CSS to align with, add and ID or a class to the link.
ID:
<a href='orderform.html' id='link1'>Order Form</a>
The CSS would be similar to this:
a#link1 { text-align: right; position: relative; }

If you want to specify all of the links, use this CSS instead:
a { text-align: right; position: relative; }

Good Luck!
If you need further assistance/advice, feel free to contact me.
 
How do you align a link to the left or right?
For example, if I wanted to align,
<a href="orderform.html">Order Form</a>
to the right side of the page, how would I do it?
 
Back
Top