CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 2nd, 2003, 12:20 PM
99miles 99miles is offline
#-------------------------
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: you s of a
Posts: 35 99miles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
CSS problem: IE6 <td>

I have a css stylesheet that has:

td.itemtitle ( background: #efe; font-size: 16pt; font-weight: bold; )

then my html page has:

<table>
<tr>
<td class="itemtitle ">Title</td>
</tr>
</table>

But the css doesn't get applied! Why is this!
The following css line does work, though... it's just when applying a class to a td that it doesn't work:

td { background:#000000; text-align:left; font-style:italic; color:yellow; padding-left:15px }


what's going on!?
thanks

Reply With Quote
  #2  
Old December 2nd, 2003, 12:43 PM
AcerKev AcerKev is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Nottingham, UK, EU
Posts: 11 AcerKev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 24 sec
Reputation Power: 0
try removing the space after itemtitle and before the quote

The following works, your's did not.

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<
html>
<
head>
<
title>Untitled Document</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
style type="text/css">
<!--
td.itemtitle background#eeffee; font-size: 16pt; font-weight:bold;}
-->
</
style>
</
head>
<
body>
<
table>
<
tr>
<
td class="itemtitle">Title</td>
</
tr>
</
table>
</
body>
</
html

Reply With Quote
  #3  
Old December 2nd, 2003, 12:55 PM
99miles 99miles is offline
#-------------------------
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: you s of a
Posts: 35 99miles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
got it: user error

crap... the problem was just that I had parenthesis instead of brackets on that one.

Reply With Quote
  #4  
Old December 2nd, 2003, 01:00 PM
AcerKev AcerKev is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Nottingham, UK, EU
Posts: 11 AcerKev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 24 sec
Reputation Power: 0
Re: got it: user error

Quote:
Originally posted by 99miles
crap... the problem was just that I had parenthesis instead of brackets on that one.

ooops, noticed that too, just assumed it was a copy and paste error

Reply With Quote
  #5  
Old December 2nd, 2003, 05:13 PM
kk5st's Avatar
kk5st kk5st is online now
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,541 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 1 h 11 m
Reputation Power: 597
Edging toward OT

It appears that a more appropriate set of tags would be:
Code:
<table border="" class="" summary="">
  <caption class="">Table Name</caption>
  <thead class="">
    <tr>
      <th>col 1 header</th>
      <th>col 2 header</th>
      <th>col 3 header</th>
    </tr>
  </thead>
  <tbody class="">
    <tr>
.
.
.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS problem: IE6 <td>


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway