HTML Table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vikram

    HTML Table

    Hi everyone,
    Can anyone help me how to create a table of the following format.

    ---------- MY HEADING --------------
    | |
    | Table cell and contents |
    | |
    ------------------------------------


    I dont know how to place the text "My heading" inside the border. Is
    it possible ??

    I would be greatfull if anyone can provide me a sample code.

    Thanks in advance
    Vikram
  • Philipp Lenssen

    #2
    Re: HTML Table

    "Vikram" <gwvedmond@hotm ail.com> schrieb im Newsbeitrag
    news:576f2d54.0 308060235.59b5d cbe@posting.goo gle.com...[color=blue]
    >..
    > Can anyone help me how to create a table of the following format.
    >
    > ---------- MY HEADING --------------
    > | |
    > | Table cell and contents |
    > | |
    > ------------------------------------
    >
    >
    > I dont know how to place the text "My heading" inside the border. Is
    > it possible ??
    >..[/color]

    Maybe you can tweak the <caption>-style enough so that it would result in
    the desired effect. (It'd be a question for a CSS newsgroup.) You might also
    play around with a background-image property and fake the line.


    Comment

    • Stephen Poley

      #3
      Re: HTML Table

      On 6 Aug 2003 03:35:56 -0700, gwvedmond@hotma il.com (Vikram) wrote:
      [color=blue]
      >Can anyone help me how to create a table of the following format.
      >
      > ---------- MY HEADING --------------
      > | |
      > | Table cell and contents |
      > | |
      > ------------------------------------
      >
      >
      >I dont know how to place the text "My heading" inside the border. Is
      >it possible ??[/color]

      Not sure, but it's a somewhat similar problem to one that someone asked
      a while ago, which I managed to do with CSS relative positioning. See if
      this helps:



      As you're positioning text rather than an image, you'll need to use em
      units rather than pixels.

      --
      Stephen Poley


      Comment

      • Steven Dilley

        #4
        Re: HTML Table

        "Vikram" <gwvedmond@hotm ail.com> wrote in message
        news:576f2d54.0 308060235.59b5d cbe@posting.goo gle.com...[color=blue]
        > Hi everyone,
        > Can anyone help me how to create a table of the following format.
        >
        > ---------- MY HEADING --------------
        > | |
        > | Table cell and contents |
        > | |
        > ------------------------------------
        >
        >
        > I dont know how to place the text "My heading" inside the border. Is
        > it possible ??
        >[/color]

        Try a <fieldset> and <legend>

        Comment

        Working...