navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

CSS for tables?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> CSS for tables?
Page: [1]
 
Rab Myself

 

Posts: 1
Joined: 6/25/2003
Status: offline

 
CSS for tables? - 6/25/2003 6:56:08   
Hi, looking to brush up on my very limited knowledge of CSS and have a question.

Can I effect table borders with CSS? Namely, I want to use.....
.table {
border-style: dashed
border-width: 1px
}

but I dont know if/how to apply it to a table.

Any help appreciated.

Rab.
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: CSS for tables? - 6/25/2003 7:17:13   
quote:

but I dont know if/how to apply it to a table


<table class=" table" >

You can also stipulate table attributes in the table tag if needed.

Brian

_____________________________


(in reply to Rab Myself)
pageoneresults

 

Posts: 1001
From: Orange, CA USA
Status: offline

 
RE: CSS for tables? - 6/25/2003 11:39:36   
If all of your tables will have the border, you can do this without having to use the generic class attribute in the table code...

table {
border:1px dashed #000;
}

What I' ve done is used the CSS Shorthand version. Since your border is exactly the same on all four sides, Shorthand is suggested.

If you want to apply the borders to specific tables, then using the generic class you have defined is applicable as Reflect points out.

.table {
border:1px dashed #000;
}


_____________________________

SEO Consultants Directory
Find Search Engine Marketing Companies

(in reply to Rab Myself)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> CSS for tables?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts