English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

how do i make tables in css (cascading stylesheets). i already know how to do it in html. what's the starting selector to start a table and all that

2007-01-01 18:38:49 · 1 answers · asked by Dodo bird 2 in Computers & Internet Programming & Design

1 answers

CSS doesn't create content. CSS only styles existing HTML content. Selectors in CSS don't create/start HTML elements either. They "select" existing HTML tags and style them appropriately. If you do:

table { background: red; font: 13px Georgia }

Then all that does is select are your existing tables and change the background and font.

If you are trying to use tables for your layout, then that completely defeats the point of CSS which is to separate the content from the presentation. Using tables to present a layout destroys that distinction.

There are a lot of resources out there to get started with CSS/HTML based web design (the book Designing with Web Standards might be a good first bet), but I also found this link: http://tutorials.alsacreations.com/ which is a collection of various articles for those just beginning with standards based design.

Good luck.

2007-01-01 19:30:01 · answer #1 · answered by john 1 · 1 0

fedest.com, questions and answers