| | |
CSS For Table
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
I need to provide an HTML code snippet (form elements displayed within a table) that my clients will be inserting into their web pages. One of the requirements is that I provide CSS atrributes to the table elements so the client can customize color, font, etc to match their site. To do this, what HTML tags do I need to assign a class value?
Thanks in advance.
Thanks in advance.
cutnpaste
I'm too busy fixing other people's problems to fix my own
I'm too busy fixing other people's problems to fix my own
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
Here is a short example:
[html]
<FORM>
<TABLE>
<TBODY>
<TR>
<TH colspan="2">Contact Form</TH>
</TR>
<TR>
<TD>First Name <BR> <INPUT name="txtFirstName"></TD>
<TD>Last Name <BR> <INPUT name="txtLastName"></TD>
</TR>
<TR>
<TD>Company <BR> <INPUT name="txtCompany"></TD>
<TD><INPUT name="submit" value="Submit" type="button"></TD>
</TR>
</TBODY>
</TABLE>
</FORM>
[/html]
We want to allow the following formating with CSS:
Field Label font, font size, and color (ie First Name/Last Name)
Background color for TH and TD
Table borders/border color, cellspacing etc.
[html]
<FORM>
<TABLE>
<TBODY>
<TR>
<TH colspan="2">Contact Form</TH>
</TR>
<TR>
<TD>First Name <BR> <INPUT name="txtFirstName"></TD>
<TD>Last Name <BR> <INPUT name="txtLastName"></TD>
</TR>
<TR>
<TD>Company <BR> <INPUT name="txtCompany"></TD>
<TD><INPUT name="submit" value="Submit" type="button"></TD>
</TR>
</TBODY>
</TABLE>
</FORM>
[/html]
We want to allow the following formating with CSS:
Field Label font, font size, and color (ie First Name/Last Name)
Background color for TH and TD
Table borders/border color, cellspacing etc.
cutnpaste
I'm too busy fixing other people's problems to fix my own
I'm too busy fixing other people's problems to fix my own
•
•
Join Date: Aug 2006
Posts: 3
Reputation:
Solved Threads: 0
Sorry to enter in between . Pl refer to http://www.picment.com/articles/css/funwithforms/
Last edited by Sundaramurthy C; Aug 15th, 2006 at 12:51 pm.
![]() |
Similar Threads
- Why do people wish for tableless with CSS? (HTML and CSS)
- Eliminating visible table borders? (HTML and CSS)
- Need help with table problem, urgent. (HTML and CSS)
- table shrinking (HTML and CSS)
- color change of the cols and rows of the table (HTML and CSS)
- hmmm, expert CSS cheat ? (JavaScript / DHTML / AJAX)
- please take a look at my site... (Website Reviews)
Other Threads in the HTML and CSS Forum
- Previous Thread: Its urgent
- Next Thread: reset drop down
Views: 1286 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 appointments asp background backgroundcolor beta browser bug calendar cart center cgi code codeinjection corporateidentity create css deleted design development displayimageinsteadofflash dreamweaver drupal emailmarketing epilepsy explorer firefox flash font fonts form format free frontpage google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft missing mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. templates textcolor theme timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 wordpress xml xsl





