CSS table question

D

Daytona Steve

I have created a table as an agent roster on my test site at

http://www.bdmcdaytona.com/testdux/agent/agentroster.html

There will be about 90 names, most now are made up. When I looked at the
code, I was horrified at all the info for each row / cell. I believe CSS
would cut down dramatically on the code and I've started working with CSS but
I haven't figured out how to assign table names, then assign properites to
the table and the cells.

Am I headed in the right direction with CSS and how would I do this?
 
K

Kevin Spencer

Hi Steve,

You're definitely headed in the right direction.

You can define styles for:
1. Element tags (body, p, h1, table, td, etc)
2. Individual elements (id="uniqueId")
3. Classes of elements (class="className")
4. Elements contained inside certain elements (defined as above)
5. Sibling elements to elements that are defined as above.
6. Descendant elements (grandchildren, etc. inside elements)
7. Much more (these are the majors).

The styles can be defined in the <head> section of a page, or even in a
separate external style sheet that can be used by many pages. Note that
because of the ability to define styles for elements, children, siblings,
and descendants, some elements don't even have to have an id or a class to
be styled. This makes for very lean HTML code.

If you make good use of CSS, you can make layout changes to your web without
even touching the HTML in the pages. See http://www.csszengarden.com for
some startling illustrations of this.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CSS Table Question 6
style definition - table cells 2
Themes CSS 2
FP Acting Quirky with an External CSS Stylesheet 3
making a table part of css 6
Ronx Question (Repost) 5
usemap and CSS 2
CSS Trouble 2

Top