CSS table question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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

style definition - table cells 2
CSS Table Question 6
Easy CSS Question 7
CSS Trouble 2
CSS errors 2
How to move CSS tables? 5
Use of valaign in CSS 1
print friendly .CSS 3

Back
Top