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!

Tables / CSS / XHTML

Status
Not open for further replies.

babel

Technical User
Mar 4, 2003
8
0
0
CA
I know what I want to do........
was simple with html
just bordercolor="#000000"
Would give a border around the whole table and each individual cell

xhtml no border color.......

so I on my css page i did this

#tableborder {
border-style: double;
border-color: #B6864D;
border-width: medium;
font-size: 95%;
}

and give the id="tableborder"

only lines around the whole table show when I put the id in the
<table summary=&quot;Administration&quot; id=&quot;tableborder&quot;>

very good ...

the table only show up around the entire table..no I want cells included too please....

so just to be goofey i put it in each
<td id=&quot;tableborder&quot;>

And it does work to the way how I want it to look...

PROBLEM

Doesn't validate...........

Says I already did it in the <table> I know that but if i don't do it in the <td> cells i have no border...need border in cells

Help Please.

Stumbling my way through...........

babel
 
when you use the class, i'd set just the class attribute of the table itself.. i.e.
<table class=&quot;tbl&quot;>

and in your css do something like the following

table.tbl td {
border-style: double;
border-color: #B6864D;
border-width: medium;
font-size: 95%;
}

to apply a border to all of the cells within the table with class &quot;tbl&quot;

and that should validate mike griffith

----------------------------
systems and control engineering
case western reserve university
mdg12@cwru.edu
 
Thank you cian ;) and mike for your answers

When your learning every little detail counts and good instructors help too!

Thanks

babel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top