Killersites.com Homepage Welcome Guest  |  Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help



Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2399 times and has 3 replies Next Thread
Male admin
Advanced Member
Member's Avatar


Joined: Jun 14, 2003
Post Count: 2923
Status: Offline
Reply to this Post  Reply with Quote 
Debate on the use of CSS.

Hi,

I was browsing the web and I found an interesting post that gives much weight and evidence to my position that CSSP is weak:

"CSS initially was designed to render documents, as opposed to interfaces. CSS lets you change the way elements look. Moreover, its box model and its visual formatting model let you position this and that to the top, the bottom, the right or the left of the main document area.

When you are designing a web page with a few navigational elements (e.g. header, sidebar, footer), however, you are embedding a document in an interface. CSS was not designed with this in mind.

Nevermind that Cascading Style Sheets now have grid-rendering features!

They are meant to let you skin XML documents. Using CSS to render grid layouts in an HTML page will only contribute to its unmaintainability.

Consider:


<table>
<tr>
<td>
<p>blah</p>
</td>
</tr>
</table>

.
.
.

<div class="table">
<div class="row">
<div class="cell">
<p>blah</p>
</div>
</div>
</div>


The two may of course be equivalent in the end, but the first is arguably more maintainable."

Snippet by: Denis de Bernardy

- -

In a nutshell:

The CSS nerds at the w3c have come up with a 'CSS table model'

-> 17.2 The CSS table model

Consider the implications of this...

Going back to my heated argument about the use of Floats, margins etc for page-layout: my position was that they were poor tools for the job and that they made no more sense than HTML tables for layout.

My position was refuted based on the argument that since CSS attributes lack semantic meaning, (where HTML tables do have semantic meaning), CSS was technically OK for page layout - or so they said...

Unfortunately for me, I did not come up with as clean a argument as I quoted above ...

beat up

- -
----------------------------------------
Stefan Mischook

Video Tutorial Store | Web Templates
----------------------------------------
[Edit 9 times, last edit by admin at Nov 13, 2005 11:05:50 PM]
[Nov 13, 2005 8:01:34 PM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.killersites.com [Link] Report threatening or abusive post: please login first  Go to top 
Male shelfimage
Advanced Member
Member's Avatar

USA
Joined: Mar 24, 2005
Post Count: 3000
Status: Offline
Reply to this Post  Reply with Quote 
Re: Deabte on the use of CSS.

Interesting and Informative.

It could answer the billion dollar question: How to have a cross browser compatible box model that doesn't use hacks, and is bug free?

A: Create layouts using hybrid concepts.


Which leads to the other billion dollar question: Is image template slicing still acceptable?

One possible answer is YES if the developer follows "Best Practices." wink

-
----------------------------------------
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
Save the developers<!>
Maine Webworks
----------------------------------------
[Edit 1 times, last edit by shelfimage at Nov 13, 2005 9:49:49 PM]
[Nov 13, 2005 9:42:51 PM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.MaineWebworks.com    mainewebworks    mainewebworks [Link] Report threatening or abusive post: please login first  Go to top 
Male tpattison
Advanced Member
Member's Avatar

UK
Joined: Dec 29, 2004
Post Count: 1662
Status: Offline
Reply to this Post  Reply with Quote 
Re: Debate on the use of CSS.

Using tables for layouts seems to work well in most browsers, and the concept is easy to understand. So why not use tables for layouts?

CSS initially was designed to render documents, as opposed to interfaces.

Look at firefox, it uses css for its interface layout, and works well too!

Given that CSS isn't to be used for interface and tables aren't meant for document layout, have the W3C an idea as to the correct way to design the entire web page!?

Just use the way that works best for a particular layout. Theres obviously no (right or wrong) way.
----------------------------------------
Pavonis Mons | Listen of the week: "Residue of Desire" by Acumen
[Nov 14, 2005 7:44:59 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://pavonismons.atspace.com [Link] Report threatening or abusive post: please login first  Go to top 
Male admin
Advanced Member
Member's Avatar


Joined: Jun 14, 2003
Post Count: 2923
Status: Offline
Reply to this Post  Reply with Quote 
Re: Debate on the use of CSS.

My main beef against tables is the lack of separation of structure from formatting - tables impose a formatting that will not work well in some browsers like PDA's etc... Realistically, this may not be too important for most people who are targeting desktop browsers.

The whole argument the Web Standards zealots make about less code / bandwidth and better SEO etc ... is a crock.

What to use to layout pages: whatever works better for you!

- -

Ideally we would have the use of the 17.2 The CSS table model where we could have the intuitive grid layout model while still having a separation of structure from formatting ... but that is a fantasy though since no browser support this...

If you think about it, CSS layout techniques and constructs are not intuitive for interface design (multi-column layouts etc) and table/grid based layouts are much more so... that's why there was a lot of resistance initially when CSS became the 'holy commandments'.
----------------------------------------
Stefan Mischook

Video Tutorial Store | Web Templates
----------------------------------------
[Edit 2 times, last edit by admin at Nov 14, 2005 9:13:52 AM]
[Nov 14, 2005 9:09:54 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.killersites.com [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread