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

Thread: 

Align Text Left or Right inside DIV or SPAN?

Ads
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>
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.





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