![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Expert Programmer
|
Re: Why is CSS such a mess?
As I understand it, DaWei's argument is that the most fundamental subset of design should be determined by the author, not the editor. To use your example, cscgal, if I use the [b] bbcode tag in a post on this forum, I can reasonably assume that the text it is applied to will be displayed in bold, not as bright purple underlined text.
|
|
|
|
|
|
#22 |
|
Hobbyist Programmer
![]() Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10
![]() |
Re: Why is CSS such a mess?
> cscgal, if I use the [b] bbcode tag in a post on this forum, I can reasonably assume that the text it is applied to will be displayed in bold, not as bright purple underlined text.
Well that's because, as far as I'm concerned, the vBulletin forum system's bbcode is based on the depreciated <b> tag. I don't necessarily agree with that as <b> has been depreciated (and won't validate as valid XHTML) by the W3C in favor of <strong> which simply implies emphasis. It's up to the designer how that emphasis is to be displayed.
__________________
DaniWeb IT Discussion Community Everything Information Technology related all in one convenient interactive online publication and community |
|
|
|
|
|
#23 |
|
Expert Programmer
|
Re: Why is CSS such a mess?
That's exactly it. Is it up to the author or the editor to determine whether text in <strong> tags should be bold or something else entirely? You can argue both sides; in the end it comes down to your definition of content.
|
|
|
|
|
|
#24 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 922
Rep Power: 4
![]() |
Re: Why is CSS such a mess?
Semi-OT: Why do people in this thread seem to confuse 'deprecated' and 'depreciated'? It's a minor nit, and had I just seen it once, I'd have ignored it, but it's starting to grate on me in much the same manner as I was annoyed by a teacher a few semesters back who kept saying 'ek cetera' instead of 'et cetera'.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
#25 | ||
|
Hobbyist Programmer
![]() Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10
![]() |
Re: Why is CSS such a mess?
Quote:
Quote:
__________________
DaniWeb IT Discussion Community Everything Information Technology related all in one convenient interactive online publication and community |
||
|
|
|
|
|
#26 | |
|
Hobbyist Programmer
![]() Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10
![]() |
Re: Why is CSS such a mess?
Quote:
__________________
DaniWeb IT Discussion Community Everything Information Technology related all in one convenient interactive online publication and community |
|
|
|
|
|
|
#27 | ||
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Re: Why is CSS such a mess?
Quote:
Quote:
I use XSLT to get somewhat closer to the ideal. The page content will consist of tags such as <page> (perhaps with a 'name' attribute), <section>, <menu>, and <userinfo>. The structure of the source document could match up with the resulting XHTML doctree, but this is not a requirement. I may have a sidebar <div> with contents pulled from a separate document, using an XPath expression such as document('/navmenu.xml')/menu. The menu tag would have an associated template that would result in a <ul> element, but each menu item could just as well have additional attributes. The menu may expand only to show the parent items of the current /page/@name. Should this item be displayed only when the user is logged in? Check /page/user/@loginstate. Perhaps you want to arrange books by author, but the data is unordered. XHTML and CSS will come in to play at some point, yes. Combined, they are barely sufficient for page design -- at least this way, all of the XHTML and CSS hacks needed to make things pretty are entirely separate from what ever data source the content is coming from. Just give the client potentially useful information such that it can be processed appropriately. Not some prettified page/data bastard child. Which was only my last point. Idealistic notions of clean design aside, CSS still comes in to play for layout at some point even in my above example. Surely there exists a better way to define page layout. My suggestion in the original post, close to human perceptions and way of thinking about layout it may be, is only one example.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
||
|
|
|
|
|
#28 |
|
Hobbyist Programmer
![]() Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10
![]() |
Re: Why is CSS such a mess?
Are you referring to throwing excess <div> tags into your markup which serve no contextual purpose other than to serve as hooks for your CSS file?
__________________
DaniWeb IT Discussion Community Everything Information Technology related all in one convenient interactive online publication and community |
|
|
|
|
|
#29 |
|
Programmer
Join Date: Jun 2007
Posts: 93
Rep Power: 2
![]() |
Re: Why is CSS such a mess?
As it stands styling with CSS is good, positioning (everything to do with the box model) is cactus, simple. I expect to see javascript toolkits like prototype and jquery that are built specifically to correct cross browser (in)consistency issues, we're already starting to see CSS frameworks which make designing cross browser layouts a lot easier, for example:
http://www.yaml.de/ http://developer.yahoo.com/yui/grids/ http://code.google.com/p/blueprintcss/ soon you will not be writing your css to work in a certain browser, then applying hacks where needed you will be coding your site for a javascript framework which will return browser specific code, depending on the user agent. What are everyones thoughts on this? |
|
|
|
|
|
#30 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Re: Why is CSS such a mess?
What if one doesn't want to require one's viewers to use Javascript?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |