Loading ...
Sorry, an error occurred while loading the content.

5932Re: [NH] Crediting a Photograph

Expand Messages
  • Marcelo de Castro Bastos
    Mar 26, 2007
      On the last exciting episode, aired on 26/3/2007 09:38, Greg Chapman
      invited the wrath of the gods by saying:
      > Hi Axel,
      > On 26 Mar 07 13:21 Axel Berger <Axel-Berger@...> said:
      >> Greg Chapman wrote:
      >>> What's the simplest way to achieve the same result
      >>> avoiding the use of <table>?
      >> A <DIV>?
      > I knew that would be the standard answer, but <DIV align="center"> is
      > not valid, and I was trying to think of the appropriate way to define
      > the margins.
      >> But why avoid it it? You want to display a group of related
      >> information in tabular form, that's exactly what tables are for. You
      >> are not abusing them for page layout here.
      > I suppose that, in this example, the image and the accompanying text
      > is related and perhaps it is legitimate to claim this is not table
      > abuse.
      > So, disregard the particular example for a moment and just answer, how
      > one would use a <DIV> to align to a fixed width object that remains
      > centered within the window.
      One way is to define the width of the <DIV> on the style, with
      "width:300px" or similar.

      If you are NOT floating the image, you can even do the whole thing with
      a paragraph:

      <p style="text-align:right;width:300px;"><img src="imagename.jpg"
      height="200" width="300" alt="Image description"><br />Image caption</p>

      Or you can mix and match, doing the text formatting in the <p> and the
      floating on the <div> level.

      About Axel's message: I'm unaware that either XHTML 1.1 or XHTML 2.0
      (which is still a draft, anyway) has "abolished" tables. In fact, the
      current draft has this entry:


      Generic Brown Label Tagline
      * TagZilla 0.066 on Seamonkey 1.1
    • Show all 18 messages in this topic