Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 24th, 2007, 8:36 PM   #31
MiKuS
Programmer
 
Join Date: Jun 2007
Posts: 93
Rep Power: 2 MiKuS is on a distinguished road
Re: Why is CSS such a mess?

if such a system was coded using un-obtrusive methods then there would be nothing to worry about, there are lots of ways to gracefully degrade a site; for example the XHTML should always be available.
MiKuS is offline   Reply With Quote
Old Oct 25th, 2007, 7:32 PM   #32
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 102
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
Re: Why is CSS such a mess?

Quote:
Originally Posted by Dameon View Post
Quite the opposite. My point is that CSS makes doing so near impossible.
CSS is one of those things that takes practice and there is some weird behavior when you're not careful with mixing elements, but overall it's a fine language and I prefer it over embedded styles because it allows for code reuse and it is simpler to apply properties to multiple elements instead of copying and pasting every single attribute.

Quote:
Originally Posted by Dameon View Post
When you add a div tag for the sole purpose of aesthetics, one which is otherwise unrelated to the content, CSS has failed.
Care to explain how? Makes sense to me to offset data which is going to have a different style applied to it than the rest of the page. Separating design from content is an important concept but don't take it so literally that you believe the sole purpose of HTML documents is to organize pure data. They aren't. The whole purpose is so that you can put content in logical blocks or sections so that styles can be more easily edited and applied without retyping all the code. HTML documents are not organizing the data by it's content value, but by the logical sections in which styles are applied.

Quote:
Originally Posted by Dameon View Post
The same goes for reordering elements so things float around correctly or are otherwise easier to arrange. We are both well aware that this is often the case.
Isn't that a good thing? HTML documents are read top-bottom, left-right and trying to create a document any other way is stupid because it makes it harder to read and requires nasty CSS.

Quote:
Originally Posted by MiKuS View Post
there are lots of ways to gracefully degrade a site; for example the XHTML should always be available.
Ever try using XHTML with IE? It degrades in the sense that the browser will render it, but if you try to send it as an XML document instead of text/html, IE will have a freaking heart attack, cut its wrist, and bleed like a hemophiliac. Even Gecko's support isn't complete yet. I always use HTML Strict for my documents.
Darkhack is offline   Reply With Quote
Old Oct 26th, 2007, 1:42 AM   #33
MiKuS
Programmer
 
Join Date: Jun 2007
Posts: 93
Rep Power: 2 MiKuS is on a distinguished road
Re: Why is CSS such a mess?

Even still, part of the reason we use css is so we can easily position elements around the screen - and then when the style sheets are detached (by a screen reader or text based browser) it displays inline semantic html with no styles at all. All having a javascript framework to render pages would do is add another step into degrading the site:

(X)HTML -> (X)HTML with Style(CSS) (basic styling) -> javascript rendered css (depending on user agent) OR javascript rendered flash

take for example - sifr which renders a custom font in flash, if the user does not allow javascript/flash then it gracefully degrades to a core font.

http://www.mikeindustries.com/sifr

These types of kits will be what render pages completely top to bottom, whilst keeping things accessible.
MiKuS is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS file for Firefox bigguy HTML / XHTML / CSS 7 Aug 30th, 2007 9:20 AM
HElP !! My CSS skills STINK BIG TIME woocha HTML / XHTML / CSS 23 Aug 30th, 2007 8:04 AM
JScript CSS style switcher BY BROWSER physicist JavaScript and Client-Side Browser Scripting 0 Jun 11th, 2007 9:58 AM
CSS is lost when I change Dreamweaver html tag to accomodate Javascript ccarter1971 JavaScript and Client-Side Browser Scripting 3 Jun 1st, 2007 10:20 AM
Major IE6 issue + CSS Kezzer HTML / XHTML / CSS 1 May 29th, 2007 7:52 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC