Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:25 PM
Greg Shannan
Guest
 
Posts: n/a
Default Centering and image according to standards

I normally centre an image using a <p align="center"> ... </p> format, but I
understand that this is "deprecated" in the latest standard in favour of styles.
The problem is that I cannot find a style that will centre an image,
"text-align" doesn't work and probably shouldn't.

So what is the "standards-correct" method of centering an image?

TIA

.... Greg Shannan


  #2  
Old July 20th, 2005, 05:25 PM
David Dorward
Guest
 
Posts: n/a
Default Re: Centering and image according to standards

Greg Shannan wrote:
[color=blue]
> I normally centre an image using a <p align="center"> ... </p> format,[/color]

Your image constitutes an entire paragraph? <div> is likely to be more
apropriate.
[color=blue]
> but I understand that this is "deprecated" in the latest standard in[/color]

There's nothing in the word deprecated that makes it worthy of recieving
quote marks in the above.
[color=blue]
> favour of styles. The problem is that I cannot find a style that will
> centre an image, "text-align" doesn't work[/color]

text-align does work, you just have to use it in the right place
[color=blue]
> and probably shouldn't.[/color]

It is badly named. inline-align might be better.
[color=blue]
> So what is the "standards-correct" method of centering an image?[/color]

http://dorward.me.uk/www/centre/#inline

--
David Dorward http://dorward.me.uk/
  #3  
Old July 20th, 2005, 05:26 PM
Greg Shannan
Guest
 
Posts: n/a
Default Re: Centering and image according to standards

Thanks, the div suggestion does seem to work.

Sorry for the quote marks.

.... Greg Shannan

"David Dorward" <dorward@yahoo.com> wrote in message
news:bnk2s1$1qk$1$8300dec7@news.demon.co.uk...[color=blue]
> Greg Shannan wrote:
>[color=green]
> > I normally centre an image using a <p align="center"> ... </p> format,[/color]
>
> Your image constitutes an entire paragraph? <div> is likely to be more
> apropriate.
>[color=green]
> > but I understand that this is "deprecated" in the latest standard in[/color]
>
> There's nothing in the word deprecated that makes it worthy of recieving
> quote marks in the above.
>[color=green]
> > favour of styles. The problem is that I cannot find a style that will
> > centre an image, "text-align" doesn't work[/color]
>
> text-align does work, you just have to use it in the right place
>[color=green]
> > and probably shouldn't.[/color]
>
> It is badly named. inline-align might be better.
>[color=green]
> > So what is the "standards-correct" method of centering an image?[/color]
>
> http://dorward.me.uk/www/centre/#inline
>
> --
> David Dorward http://dorward.me.uk/[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles