This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > November 2004 > CSS and align?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS and align?
Steve Grosz

2004-11-16, 6:41 pm

Is the 'align' specification not supported within CSS? I have a table,
and then a cell I want aligned to the right side of the table. I can do
it from within DWMX 2004 in the design mode, but I'm trying to do it in
CSS and not seeing the option.

Thanks,
Steve
Lossed

2004-11-16, 6:41 pm

try text-align: right; under the block section of the CSS definitions pop up
dialogue box when editing the CSS.

then you'll need to decide if you are applying it to one instance of the
cell or one instance of a table or whatever element you try to align. if you
want just one instance of whatever element to align right and you have
multiple instances of that element then give it a class name and style that
instead:
e.g: <td class="myclass"> and in your CSS have:

td.myclass {text-align: right;}

Don't need to have td before the "." if you are only giving td's the
"myclass" class name, but it does help you when looking at the CSS code to
know what element the style is going to be applied to.

Cheers,
Lossed

"Steve Grosz" <boise_bound@hotmail.com> wrote in message
news:cmpbvu$8p$1@forums.macromedia.com...
> Is the 'align' specification not supported within CSS? I have a table,
> and then a cell I want aligned to the right side of the table. I can do
> it from within DWMX 2004 in the design mode, but I'm trying to do it in
> CSS and not seeing the option.
>
> Thanks,
> Steve



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews