• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

CSS with Tables - Any Browser Issues?

Hello CSS Gurus,

I develop with asp.net and use as muched "stripped out" html as I possibly can get away with.  I really like CSS, even though I mostly give the job to someone else on my team.  But here is my question... how much can I get away with on Table properties with CSS without running into any browser related issues?

For example... any non-IE browser, Mozilla, FireFox and such... how far can I go here with CSS table properties?

cellspacing
cellpadding
width
align
border
height
colspan
rowspan
bgcolor
src

All detailed advice especially appreciated.
Thanks
0
born4code
Asked:
born4code
2 Solutions
 
klykkenCommented:
cellspacing = css margin, common support
cellpadding = css padding, common support
width = css padding
align = css text-align, common support
border = css border properties, common support
height = not in css, not part of html standard either
colspan = structure, not style
rowspan = structure not style
bgcolor= more flexibility in css, common support
src= more flexibility in css, common support

Basically you're better off using CSS in all instances. Basically you'll have *more* control on tabular data display with CSS.

If you want exmaples on syntrax for any of these, shout out.
-klykken
0
 
born4codeAuthor Commented:
Thanks.
Well, it looks like everything there is covered, except rowspan and colspan which I can keep in the html.  Yes, if you have any samples or something like that to get me started it would be a huge help.
0
 
GrandSchtroumpfCommented:
Somme corrections:

cellspacing = css border-spacing (not css margin!!!), and is not supported by IE6.
http://www.blooberry.com/indexdot/css/properties/table/bspace.htm

width = css width , common support
height = css height, common support

So, cellspacing is the only attribute that you'll need to specify as HTML attribute...
If you want no cellspacing at all, then you can use css "border-collapse: collapse;" which has the same effect as setting cellspacing=0.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now