Arwen-Undomiel.com
http://arwen-undomiel.com/forum/

Aligning headers to the right
http://arwen-undomiel.com/forum/viewtopic.php?f=27&t=14092
Page 1 of 1

Author:  keyodie [ February 17th, 2007, 1:41 pm ]
Post subject:  Aligning headers to the right

Right now, I'm trying to get my navigation links to align to the right. This is the code I'm using:

Code:
<p align="right">text to align</p>


But I can only get regular text to align, not the headers. I use headers for the categories in my navigation, so it's a bit of a problem.

If anyone can help, that'd be great. :) Thanks in advance!

Author:  Antigone [ February 17th, 2007, 3:22 pm ]
Post subject: 

Headers like <span class=""> ?

Add to the css
Code:
display:block;
text-align:right;


I hope I made any sense, I suck at explaining, heh

Author:  keyodie [ February 17th, 2007, 5:38 pm ]
Post subject: 

Oh, sorry, I mean headers like <h1> and <h2>.

Author:  Gilraen Ringeril [ February 18th, 2007, 12:35 am ]
Post subject: 

maybe in your style sheet try adding this:

Code:
h1, h2, h3 {
text-align:right;
}

Author:  The Grey Pilgrim [ February 18th, 2007, 12:38 am ]
Post subject: 

Code:
[h1 align="right"]Heading[/h1]
(with > instead of ] and < instead of [)works fine for me...

Can I see the code for the page you're trying to use it in?

Author:  keyodie [ February 18th, 2007, 10:47 am ]
Post subject: 

Wouldn't that align all of them to the right, though? =/

Here:
http://raindrops.lemon-drop.net/

Author:  The Grey Pilgrim [ February 18th, 2007, 6:30 pm ]
Post subject: 

I'm not sure I understand what you're trying to do. Do you want the headers aligned to the right, or do you want them in a <p></p> that's aligned to the right, or what exactly?

Author:  keyodie [ February 20th, 2007, 7:07 pm ]
Post subject: 

I wanted all of the text to align to the right, not like it's aligned to the left right now. :confused: But I could only get the regular text to do that.

Like this:
http://xmlroff.org/release/0.3.1/testre ... ght.00.png

Author:  The Grey Pilgrim [ February 21st, 2007, 8:57 am ]
Post subject: 

The easiest way to make your navigation text align to the right is to add
Code:
style="text-align:right;"
to the table you have them in:
Code:
<table width=90 bgcolor=#cacaca style="text-align:right;">

Does that do what you want?

Author:  keyodie [ February 27th, 2007, 10:14 pm ]
Post subject: 

Oof, sorry for not replying in a while.

And yeah, it does exactly what I wanted! ;) Thanks a lot. :)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/