HighDots Forums  

IE7 refuses to apply CSS style from <style> section to <td>

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE7 refuses to apply CSS style from <style> section to <td> in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lcplben
 
Posts: n/a

Default IE7 refuses to apply CSS style from <style> section to <td> - 10-06-2009 , 01:18 PM






Hi everybody --

I posted this same question to the group "Design the Web with CSS"
which I thought this group had morphed into.

The problem page is:

http://sellmycalls.com/chain-nowrap.html

and is illustrated in the first data row, column 11. IE7 strands the
hyphen on one line of the cell, placing the negative number on the
second line. The solution, particularized to one column, is in column
12.

My header-section stylesheet at line 520 is:

th, td {
/* width: 4em; */
white-space: nowrap;
padding: 0 .5em;
}

The source lines that correspond to the two examples above are 654 and
655.

In line 654, I'm asking IE7 to apply the "white-space:nowrap;" style
to the <td>. In line 655, I'm applying that style explicitly.

What an I doing wrong that IE7 seems to ignore the global style for
<td>s in this table?

Thanks!

-- Ben

Reply With Quote
  #2  
Old   
Chris F.A. Johnson
 
Posts: n/a

Default Re: IE7 refuses to apply CSS style from <style> section to <td> - 10-06-2009 , 02:13 PM






On 2009-10-06, lcplben wrote:
Quote:
Hi everybody --

I posted this same question to the group "Design the Web with CSS"
which I thought this group had morphed into.

The problem page is:

http://sellmycalls.com/chain-nowrap.html

and is illustrated in the first data row, column 11. IE7 strands the
hyphen on one line of the cell, placing the negative number on the
second line. The solution, particularized to one column, is in column
12.

My header-section stylesheet at line 520 is:

th, td {
/* width: 4em; */
white-space: nowrap;
padding: 0 .5em;
}

The source lines that correspond to the two examples above are 654 and
655.

In line 654, I'm asking IE7 to apply the "white-space:nowrap;" style
to the <td>. In line 655, I'm applying that style explicitly.

What an I doing wrong that IE7 seems to ignore the global style for
td>s in this table?
First, fix the errors:

Errors found while checking this document as HTML 4.01 Strict!
Result: 68 Errors
Address: http://sellmycalls.com/chain-nowrap.html

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fsellmycalls.com%2 Fchain-nowrap.html>


--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

Reply With Quote
  #3  
Old   
lcplben
 
Posts: n/a

Default Re: IE7 refuses to apply CSS style from <style> section to <td> - 10-06-2009 , 02:37 PM



On Oct 6, 2:13*pm, "Chris F.A. Johnson" <cfajohn... (AT) gmail (DOT) com> wrote:
Quote:
On 2009-10-06, lcplben wrote:
Hi everybody --

I posted this same question to the group "Design the Web with CSS"
which I thought this group had morphed into.

The problem page is:

*http://sellmycalls.com/chain-nowrap.html

and is illustrated in the first data row, column 11. IE7 strands the
hyphen on one line of the cell, placing the negative number on the
second line. The solution, particularized to one column, is in column
12.

My header-section stylesheet at line 520 is:

th, td {
/* *width: 4em; */
* white-space: nowrap;
* padding: 0 .5em;
}

The source lines that correspond to the two examples above are 654 and
655.

In line 654, I'm asking IE7 to apply the "white-space:nowrap;" style
to the <td>. In line 655, I'm applying that style explicitly.

What an I doing wrong that IE7 seems to ignore the global style for
td>s in this table?

* *First, fix the errors:
<blush> Of course!

-- ben

Reply With Quote
  #4  
Old   
lcplben
 
Posts: n/a

Default Re: IE7 refuses to apply CSS style from <style> section to <td> - 10-07-2009 , 12:11 PM



Fixed. Problem was I had an alien character -- a double quote -- in my
css, which made some of the css be ignored.

-- ben

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.