3 replies [Last post]
abrichardson
abrichardson's picture
Offline
Regular
chattanooga, TN
Last seen: 14 years 42 weeks ago
chattanooga, TN
Timezone: GMT-5
Joined: 2005-12-13
Posts: 36
Points: 0

wow...it's been a long time since I've been here Laughing out loud

I have a question. If you add 'style="white-space:nowrap;"' to a 'table' tag, will each inherit that style? I hope so because I would prefer to do that than style each 'td' individually be it with a class or not.

What gets inherited in a case like this? What's a good reference to read about this?

Save a reef.

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 31 weeks 1 day ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

*

If you set

table {white-space: no-wrap}

then only the table element will no-wrap.

Setting

table, table * {white-space: no-wrap}

will set table and anything contained within it.

Verschwindende wrote:
  • CSS doesn't make pies

abrichardson
abrichardson's picture
Offline
Regular
chattanooga, TN
Last seen: 14 years 42 weeks ago
chattanooga, TN
Timezone: GMT-5
Joined: 2005-12-13
Posts: 36
Points: 0

ah! I've not used the

ah! Wink

I've not used the splat before but I've read a little about it Laughing out loud

That little bit of knowledge will certainly be useful in other place Laughing out loud

Thanks VERY much!!

Save a reef.

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 31 weeks 1 day ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Hehehe, splat It's the

Hehehe, splat Laughing out loud It's the universal selector Wink

Glad you understood!

Verschwindende wrote:
  • CSS doesn't make pies