Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

Align Text Left or Right inside DIV or SPAN?

Ads
banner
banner
banner
letsplay Offline referral

Posts: 274
Joined: Jul 2013
Reputation: 1

#1
Senior Member
I know this is pretty basic HTML but I can't figure out how to align text to the right or to the left inside HTML div or span? Will this require CSS or HTML has a specific code for text alignment? I used align="right" but text remains aligned to the left!!!
maya Offline referral

Posts: 1,058
Joined: May 2013
Reputation: 34

#2
Posting Freak
To align text you need to use CSS style! text-align: right;

Code:
<div style="text-align: right;">Everything inside this DIV will be aligned to the right!</div>
buscar pareja gratis, chatear y buscar amigos en chat gratis o ligar. Citas, contactos y encuentros.
letsplay Offline referral

Posts: 274
Joined: Jul 2013
Reputation: 1

#3
Senior Member
Thanks Maya very much works great. What is the difference between text-align: right; and float="right"
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#4
Support Team
text-align property applies to the content of div, while float property applies to the div itself.
Looking for ways to make money fast? Read this article and start earning money todya fast, easy or for free.





User(s) browsing this thread: 1 Guest(s)