Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Oct 22nd, 2007, 1:03 AM   #21
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 837
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.
titaniumdecoy is offline   Reply With Quote
Old Oct 22nd, 2007, 1:28 AM   #22
cscgal
Hobbyist Programmer
 
cscgal's Avatar
 
Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10 cscgal is on a distinguished road
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
cscgal is offline   Reply With Quote
Old Oct 22nd, 2007, 1:39 AM   #23
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 837
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.
titaniumdecoy is offline   Reply With Quote
Old Oct 22nd, 2007, 5:00 AM   #24
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 922
Rep Power: 4 lectricpharaoh will become famous soon enough
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
lectricpharaoh is offline   Reply With Quote
Old Oct 22nd, 2007, 9:10 AM   #25
cscgal
Hobbyist Programmer
 
cscgal's Avatar
 
Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10 cscgal is on a distinguished road
Re: Why is CSS such a mess?

Quote:
Originally Posted by titaniumdecoy View Post
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.
According to the W3C, 'em' indicates emphasis while 'strong' indicates stronger emphasis. "The presentation of phrase elements depends on the user agent." It does go on to say that "Generally, visual user agents present EM text in italics and STRONG text in bold font." However, the W3C says exactly what I say - that <em> and <strong> tags signify emphasis, but it's up to a CSS file to define how that emphasis is visually displayed.

Quote:
Originally Posted by lectricpharaoh View Post
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'.
Guilty. Will be careful from now on.
__________________
DaniWeb IT Discussion Community
Everything Information Technology related all in one convenient interactive online publication and community
cscgal is offline   Reply With Quote
Old Oct 22nd, 2007, 5:12 PM   #26
cscgal
Hobbyist Programmer
 
cscgal's Avatar
 
Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10 cscgal is on a distinguished road
Re: Why is CSS such a mess?

Quote:
Originally Posted by DaWei View Post
I know what you're saying, but I just disagree. The publisher gets the say about the huge majority of the presentation, but the author gets to do a few things besides pick adjectives and adverbs.

The author can't pick the font; at least, not without some negotiation or precondition or advance understanding.

The author can bold or underline a word, and the publisher can't dink with that; at least, not without some negotiation or precondition or advance understanding.

That's just my personal position, of course.
Sorry, I seem to have skipped over your post and didn't see it until just now. After all the years I've spent in the publishing industry, and all of the dealings I've had working with professional staff writers who write for magazines fulltime, I'm just going to have to agree to disagree on this one.
__________________
DaniWeb IT Discussion Community
Everything Information Technology related all in one convenient interactive online publication and community
cscgal is offline   Reply With Quote
Old Oct 22nd, 2007, 6:01 PM   #27
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Re: Why is CSS such a mess?

Quote:
Originally Posted by cscgal
What I disagree with is the OP in this thread who (from the way I read it) is in favor of mixing content with design.
Quite the opposite. My point is that CSS makes doing so near impossible.

Quote:
Originally Posted by cscgal
In other words, what I mean by separating content from design is that the designer should never have to edit the content to make the final product look exactly the way they want.
That holds true only in an example as simple as the one given. That's my point. To be clear, for the purposes of my argument, I define 'content' as including its structure, XHTML tags in your example. When you add a div tag for the sole purpose of aesthetics, one which is otherwise unrelated to the content, CSS has failed. 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.

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
Dameon is offline   Reply With Quote
Old Oct 23rd, 2007, 2:02 PM   #28
cscgal
Hobbyist Programmer
 
cscgal's Avatar
 
Join Date: Oct 2007
Location: New York
Posts: 162
Rep Power: 10 cscgal is on a distinguished road
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
cscgal is offline   Reply With Quote
Old Oct 24th, 2007, 8:17 PM   #29
MiKuS
Programmer
 
Join Date: Jun 2007
Posts: 93
Rep Power: 2 MiKuS is on a distinguished road
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?
MiKuS is offline   Reply With Quote
Old Oct 24th, 2007, 8:20 PM   #30
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei 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