Rules      FAQ       Register        Login
It is currently April 23rd, 2024, 11:11 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Aligning headers to the right
PostPosted: February 17th, 2007, 1:41 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

Offline
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!

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: February 17th, 2007, 3:22 pm 
Custom Rank
Custom Rank
User avatar

Joined: 09 July 2005
Posts: 9460
Location: in the temple of love

Offline
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

_________________
<center>[font=Times New Roman]<img src="http://tinyurl.com/63ongu"><br><br>From sorrow & pain I find my strength ... the more pain I feel, the more I see /// July the 4th 2008, first day of my life...<br><br>I met Eru on September 5th 2006 ♥ (and April 15th 2008!)<br><br>Censorship Causes Blindness</center>[/font]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: February 17th, 2007, 5:38 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

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

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: February 18th, 2007, 12:35 am 
Maia
Maia
User avatar

Joined: 04 June 2005
Posts: 4449
Location: Northern USA

Offline
maybe in your style sheet try adding this:

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

_________________
Image
<center>icon & banner by me
skyward-thoughts
</center>


Top
 Profile       WWW            
 
 Post subject:
PostPosted: February 18th, 2007, 12:38 am 
Rider of Rohan
Rider of Rohan
User avatar

Joined: 10 December 2005
Posts: 134

Offline
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?

_________________
<img src="http://thulcandra.com/randombanner/banner.php" title="Banner by Arwen">
I can help with HTML/CSS/JavaScript/PHP/ASP. I can't do graphics or layouts.
Post in Site Help, I'll see it. Or PM me.


Top
 Profile                  
 
 Post subject:
PostPosted: February 18th, 2007, 10:47 am 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

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

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

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: February 18th, 2007, 6:30 pm 
Rider of Rohan
Rider of Rohan
User avatar

Joined: 10 December 2005
Posts: 134

Offline
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?

_________________
<img src="http://thulcandra.com/randombanner/banner.php" title="Banner by Arwen">
I can help with HTML/CSS/JavaScript/PHP/ASP. I can't do graphics or layouts.
Post in Site Help, I'll see it. Or PM me.


Top
 Profile                  
 
 Post subject:
PostPosted: February 20th, 2007, 7:07 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

Offline
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

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: February 21st, 2007, 8:57 am 
Rider of Rohan
Rider of Rohan
User avatar

Joined: 10 December 2005
Posts: 134

Offline
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?

_________________
<img src="http://thulcandra.com/randombanner/banner.php" title="Banner by Arwen">
I can help with HTML/CSS/JavaScript/PHP/ASP. I can't do graphics or layouts.
Post in Site Help, I'll see it. Or PM me.


Top
 Profile                  
 
 Post subject:
PostPosted: February 27th, 2007, 10:14 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

Offline
Oof, sorry for not replying in a while.

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

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]




Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Boyz theme by Zarron Media 2003