table width

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

    #1

    table width

    I have an extra wide table (a couple of screens wide) that I need to set up
    in a way the table header cells are not wrapped but rather in one straight
    line.

    Fixing the table width (or cell width) seems to have no effect (tried up to
    10000 px or 1000%).

    How about CSS? Anybody have any idea?

    Thanks,

    F.


  • Kimmo Laine

    #2
    Re: table width

    "F" <F@F.COM> wrote in message news:e7qqjn$570 $1@sunce.iskon. hr...[color=blue]
    >I have an extra wide table (a couple of screens wide) that I need to set up
    >in a way the table header cells are not wrapped but rather in one straight
    >line.[/color]

    So you want no wrap in your td.. Gee... how to achieve that...
    hint: google html no wrap
    [color=blue]
    > Fixing the table width (or cell width) seems to have no effect (tried up
    > to 10000 px or 1000%).
    >
    > How about CSS? Anybody have any idea?[/color]

    Yeah, dude, this is php group, and your question has nothing to do with php,
    but html and css.

    --
    "ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
    spam@outolempi. net | Gedoon-S @ IRCnet | rot13(xvzzb@bhg byrzcv.arg)


    Comment

    • Erich Pul

      #3
      Re: table width


      Kimmo Laine schrieb:
      [color=blue]
      > So you want no wrap in your td.. Gee... how to achieve that...
      > hint: google html no wrap[/color]

      check http://selfhtml.org for questions concerning tables, css etc.

      [color=blue]
      > Yeah, dude, this is php group, and your question has nothing to do with php,
      > but html and css.[/color]

      well try separating PHP and HTML/CSS for the common developer...


      E

      Comment

      • Jerry Stuckle

        #4
        Re: table width

        Erich Pul wrote:[color=blue]
        > Kimmo Laine schrieb:
        >
        >[color=green]
        >>So you want no wrap in your td.. Gee... how to achieve that...
        >>hint: google html no wrap[/color]
        >
        >
        > check http://selfhtml.org for questions concerning tables, css etc.
        >
        >
        >[color=green]
        >>Yeah, dude, this is php group, and your question has nothing to do with php,
        >>but html and css.[/color]
        >
        >
        > well try separating PHP and HTML/CSS for the common developer...
        >
        >
        > E
        >[/color]

        Quite easy, actually.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Krustov

          #5
          Re: table width

          <comp.lang.ph p>
          <F>
          <Tue, 27 Jun 2006 10:34:47 +0200>
          <e7qqjn$570$1@s unce.iskon.hr>
          [color=blue]
          > I have an extra wide table (a couple of screens wide) that I need to set up
          > in a way the table header cells are not wrapped but rather in one straight
          > line.
          >
          > Fixing the table width (or cell width) seems to have no effect (tried up to
          > 10000 px or 1000%).
          >
          > How about CSS? Anybody have any idea?
          >[/color]

          <img src="demo.jpg" border="0" width="10000" height="2" alt=""></a>

          Put it at the top of the table and ideally the image should be the same
          background colour as the table or table cell .


          --

          Comment

          • Alvaro G. Vicario

            #6
            Re: table width

            *** F escribió/wrote (Tue, 27 Jun 2006 10:34:47 +0200):[color=blue]
            > I have an extra wide table (a couple of screens wide) that I need to set up
            > in a way the table header cells are not wrapped but rather in one straight
            > line.[/color]

            Add this to your style sheet:

            th{
            white-space: nowrap;
            }

            If you don't want to for *all* tables, apply an ID or class name.

            --
            -+ Álvaro G. Vicario - Burgos, Spain
            ++ http://bits.demogracia.com es mi sitio para programadores web
            +- http://www.demogracia.com es mi web de humor libre de cloro
            --

            Comment

            Working...