Topic: CSS Equiv Table Align Right Pages that link to <a href="https://ozoneasylum.com/backlink?for=10802" title="Pages that link to Topic: CSS Equiv Table Align Right" rel="nofollow" >Topic: CSS Equiv Table Align Right\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 08-30-2002 23:24 Edit Quote

Howdy Folks,

I took a quick peek, but didn't see how to set a tables alignmnet to "right" using CSS.
Actually, table is inside a DIV tag called main.
Hmm... going to try:

#main table {align:right;}

<trying that now>
Nope, this didn't work:

#main table{
width:500px;
margin-left:6px;
margin-top:12px;
align:right;
}

Any suggestions?

Karl


Karl www.AZProGolf.com
karl@azprogolf.com

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 08-31-2002 00:17 Edit Quote

Try

margin-left:auto;
margin-right:6px;

And make sure you have a correct DOCTYPE declaration and that any block level elements containing the table extend all the way to the right.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 08-31-2002 03:00 Edit Quote

'align' is not a CSS attribute.

There is 'text-align' which works in different ways depending on how you attempt to use it and which browser it is viewed in (it is meant to align text after all, not objects...). Then there is the margin method which Slime demonstrated, which is the 'correct' way to align an object via CSS.

There is also 'vertical-align'.

http://www.gurusnetwork.com/tutorials/css/cssintro/cssintro1.html
http://www.gurusnetwork.com/tutorials/css/cssintro2/cssintro2-1.html
http://www.gurusnetwork.com/tutorials/css/box_model/style.html

and of course - http://www.w3.org/TR/REC-CSS2/cover.html#minitoc

All of the above do wonders for your understanding of CSS.




Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 08-31-2002 05:27 Edit Quote

Hey thanks guys... i do appreciate the response!
I will take a look at these links.

Karl

Karl www.AZProGolf.com
karl@azprogolf.com

username
Nervous Wreck (II) Inmate

From: city,state,country
Insane since: Apr 2002

IP logged posted posted 09-15-2008 21:25 Edit Quote

margin left auto, right whatever

BRILLIANT!

signature

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 09-15-2008 21:35 Edit Quote

Most impressive thread revival.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 09-15-2008 22:59 Edit Quote

why are we replying to a 6 year old thread? LOL

Later,

C:\

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 09-15-2008 23:17 Edit Quote

And isn't username supposed to be banned ?



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu