CSS External and inline override

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
see:
http://www.exilum.com/test.html

I have inline styles and external(internal for demonstration simplicity). I cant get the look i want. I want CSS to automatically give all TABLE.tbl white backgrounds, but then i lose other table formatting.

Thanks.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Man your code is in a mess!

You should read up more on CSS.. now your code is just an ugly hybrid of CSS and HTML formatting code (HTML should be markup, not formatting, CSS handles that). I can rewrite the whole thing better if you want me to :)

Edit: Here's the whole thing
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
screw3d, thanks.

Thats more like what i want, but not exactly - with that only the "exterior" border shows up, not the inside boarders that "separate" the cells. It's closer to what I want though.

Re: messy code, this is output from a VS.NET ASP.NET application - im trying to format the datagrid (which uses inline CSS), and i ran into a problem where something in my CSS file would prevent the "autoformat" option to work.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Hmm yeah it does look like generated code.

Now try the attached code again :) I've redone the whole thing
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
screw3d, thanks again.
I do need to learn more about CSS, This is confusing me :D

I can't seem to get it to look the way it does now but with formatted datagrids, so i'm just going to leave it be. That worked but then for some reason some other tables didnt have white backgrounds on my page :/ Thanks for the help.