Reply to Re: God I miss tables-help needed!

Your name:

Reply:


Posted by JDS on 04/05/06 17:15

On Tue, 04 Apr 2006 18:04:09 -0700, Richard wrote:

> You got that right! :-) I'm just starting to put up a technical
> presentation on a web server, so I'm interested in applying the best
> techniques while ensuring I get the job done in a timely fashion. So
> I've employed some CSS stuff, some Table stuff, some site navigation.

For layouts, use *either* CSS *OR* tables[1], but please not both. Unless
a table is being used as intended: for tabular data (and a lot of things
fall into that category).

In general, for a CSS layout, my "best practices" are as follows:

1) Start with a plain vanilla HTML 4.01 strict page which has absolutely
zero author-imposed layou or design characteristics. USE SEMANTICALLY
CORRECT HTML!! That is to say, a pargraph uses a <P> tag and a list of
items uses <UL> or <OL> and <LI> tags, etc. DO NOT USE <DIV>s FOR
EVERYTHIGN!!!!!!!!!!!!!!!!!!!!

2) Give classes and/or Id's to every element. Remeber, an element can
have more than one class. Also, each ID must be unique!

3) Take an image of what you want the layout to look like and start
applying CSS layout rules. This last bit is the tricky part, of course.
Also, you can start to add a smattering of <DIV>s here and there to force
the layout how you want it. But use pure <DIV>s sparingly!!

Why the warnings against DIVs? A <DIV> has no real semantic meaning and
using only <DIV>s will create a (valid, yes) HTML page that is not search
optimizable, not "508" accessible, and ultimately not as flexible as one
that uses "proper" HTML markup as HTML was intended to be used.

later...




[1] Some will say "never use tables anymore for layout" but I don't
completely agree, for a few reasons. For myself, though, I have stopped
using tables for layout.

--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация