Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control table formatting with CSS instead of HTML?

Status
Not open for further replies.

caitlin

Technical User
Jun 21, 2002
15
0
0
US
Hi everyone,

I have a site that generates 25+ tables on different pages using ASP. I want to format them all the same using CSS instead of going in and manually changing the tables in HTML (especially since I often have to regenerate the table, which erases the formatting). I'm not having any luck finding the right CSS syntax for this.

Here's the HTML code I'm trying to replicate with CSS:

<table border=&quot;1&quot; width=&quot;100%&quot; bordercolorlight=&quot;#000000&quot; bordercolordark=&quot;#FEEDC5&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot;>

I'm very thankful for any suggestions!

--Caitlin
 

table {
padding: 0 0 0 0;
margin: 0 0 0 0;
border-left: 1px solid #000000;
border-top: 1px solid #000000;
border-bottom: 1px solid #FEEDC5;
border-right: 1px solid #FEEDC5;

}

try that, it may need some tweaking though, but it will get you started. D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top