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 August 5th, 2003, 09:27 AM
rmarsha rmarsha is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 14 rmarsha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS not formatting when using .insertrow

HELP! I have an CSS-formatted HTML table where I am adding rows with the javascript: .insertrow and .insertcell functions.

The problem I'm having is that the CSS formatting is not used on the rows I add from the client side.

Any suggestions?

--thx

Reply With Quote
  #2  
Old August 5th, 2003, 03:48 PM
skay_t skay_t is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 8 skay_t User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 15 sec
Reputation Power: 0
Hi,

what I do when adding rows using insertRow is to apply the style after I have added the row,

var tr = table.insertRow(0);
tr.className = "myclass";

or alternatively

tr.style.fontFamily = "Arial";

One thing to keep in mind is you probably want to add styles to the td element and not the tr.

Reply With Quote
  #3  
Old August 6th, 2003, 09:15 AM
rmarsha rmarsha is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 14 rmarsha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Great. Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS not formatting when using .insertrow


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 | 
  
 





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