Just alignment help- An easy one

H

Haardvark2

What is the code for simple left and right align?

Also, what is the cancel code for <CENTER>?

Thanks in advance to all you knowledgable web people.
 
H

Hywel Jenkins

haardvark2 said:
What is the code for simple left and right align?

<div style="text-align:left;">Left-aligned content</div>
Also, what is the cancel code for <CENTER>?

<center> doesn't existing anymore. "Cancel code"? Use
<div style="text-align:center;">Centred content</div>
instead.
 
P

paul

Hywel said:
<div style="text-align:left;">Left-aligned content</div>



<center> doesn't existing anymore. "Cancel code"? Use
<div style="text-align:center;">Centred content</div>
instead.


Also, these will center the object on the page, not just the text inside:
margin-left: auto;
margin-right: auto;
 
H

Henry

paul said:
Also, these will center the object on the page, not just the text inside:
margin-left: auto;
margin-right: auto;


Nothing in css is easy! Especially 'easy' alignment!

I'm learning damn thing coz I have to know where to avoid that curse and
how to make tables more functional with less nasty coding.

;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top