By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

table width

P: n/a
F
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.
Jun 27 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"F" <F@F.COM> wrote in message news:e7**********@sunce.iskon.hr...
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.
So you want no wrap in your td.. Gee... how to achieve that...
hint: google html no wrap
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?


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
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jun 27 '06 #2

P: n/a

Kimmo Laine schrieb:
So you want no wrap in your td.. Gee... how to achieve that...
hint: google html no wrap
check http://selfhtml.org for questions concerning tables, css etc.

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


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

Jun 27 '06 #3

P: n/a
Erich Pul wrote:
Kimmo Laine schrieb:

So you want no wrap in your td.. Gee... how to achieve that...
hint: google html no wrap

check http://selfhtml.org for questions concerning tables, css etc.
Yeah, dude, this is php group, and your question has nothing to do with php,
but html and css.

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


Quite easy, actually.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 27 '06 #4

P: n/a
<comp.lang.php>
<F>
<Tue, 27 Jun 2006 10:34:47 +0200>
<e7**********@sunce.iskon.hr>
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?


<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 .
--
www.emailuser.co.uk/?name=KRUSTOV
Jun 27 '06 #5

P: n/a
*** F escribió/wrote (Tue, 27 Jun 2006 10:34:47 +0200):
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.


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
--
Jun 27 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.