AJAX Forums

Is it possible to control a table's cellspacing attribute using an external CSS file?

This is a discussion on Is it possible to control a table's cellspacing attribute using an external CSS file? within the XHTML and CSS forums, part of the Beginners AJAX category; Thanks, but I know how to link an external CSS file. I'll be more specific: I want to know what CSS property is equivilant to me putting cellspacing="...


Go Back   AJAX Forums > Beginners AJAX > XHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 03-31-2007, 05:38 AM   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 2
Rep Power: 0 Ryan M is on a distinguished road
Is it possible to control a table's cellspacing attribute using an external CSS file?

Thanks, but I know how to link an external CSS file. I'll be more specific: I want to know what CSS property is equivilant to me putting cellspacing="0" so that all my html tag will have is ''fixed typo: I want to know what CSS property is equivilant to me putting cellspacing="0" in so that all my html tag will have is ''
__________________
Ryan M is offline   Reply With Quote
Old 04-02-2007, 08:00 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0 Jeffrey C is on a distinguished road
Create a CSS file with some stylesheet entries:test.csstable {background-color: #FF3333; border: medium dotted}Then reference the external CSS file in the tags of the HTML file:
__________________
Jeffrey C is offline   Reply With Quote
Old 04-02-2007, 03:46 PM   #3 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0 Memphis is on a distinguished road
Cellpadding or cellspacing are HTML attributes (I know you know this :-)With CSS you don't have control over these. What you can specify is the "padding" and "margin" for individual cell contents.Hope this helps.
__________________
Memphis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
JavaScript Type Attribute admin AJAX Articles 0 05-19-2008 06:05 AM
hi i have c drive on my pc i also have an external hardrive J I installed mozilla jimjo16 Web 2.0 3 06-12-2007 02:30 PM
setting target attribute using javascript? Brady JavaScript 0 06-02-2007 09:53 AM
HTML or CSS attribute Adriaan J XHTML and CSS 1 04-01-2007 11:09 AM
CSS: What is better? internal css in the <head> or external css? Stick XHTML and CSS 4 03-29-2007 07:15 PM


All times are GMT -4. The time now is 08:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com