Re: [WSG] Semantics vs Light Code
I think that like anything to do with building for the web, it all has to do with what is most appropriate for the project and the audience. If it's for a web site, I's take the path that renders most reliably across browsers/platforms, but if it's for an intranet (or other closed environment when you know the exact makeup of the audience and their equipment), I'd go for the most semantically correct method. In practice, I haven't come across too many examples where you can't strike a (more or less) happy medium. Cam Herrod, Lisa wrote: ... between each link. Just make sure it's with css and not a pipe :) -Original Message- From: Luke Moulton [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 2:51 PM To: [EMAIL PROTECTED] Subject: [WSG] Semantics vs Light Code Recent discussions about building a footer with numerous linked items styled as an unordered list has got me thinking about correct semantics verses light code/css. In using strictly correct semantics to mark-up content I think sometimes we run the risk of developing over complicated and bloated code. Building an inline, styled un-ordered list with appropriate css can add a bit of bulk to your css. So on one hand there's smaller file sizes, uncomplicated CSS (with fewer hacks) but imperfect semantics, and on the other there's perfect semantics bloated CSS with a few hacks thrown in for good measure. Where does one draw the line? Luke Moulton Go4 Multimedia Web Design Graphic Design www.go4.com.au ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Another proper use of dl's question
The W3 says that dls generally consist of a series of term/definition pairs (although definition lists may have other applications). As an example, another application of dl... is for marking up dialogues, with each dt naming a speaker, and each dd containing his or her words. (http://www.w3.org/TR/html4/struct/lists.html) Based on this, I personally think that dls can be used for nearly any situation where you need to show a sort of parent/child relationship within a list of items, while still being semantically sound. It's also a lot quicker than doing something like: ul li h2a href=cow_jumps_over_moon.html ... Cow jumps over moon/a/h2 pAn unnamed cow has been seen jumping over the moon say residents.../p /li li h2a href=dish_spoon.html ... Dish runs away with spoon/a/h2 pThe mystery continues as crockery takes to the streets.../p /li /ul And also quite a bit more elegant, IMO. Cheers, Cam Nick Lo wrote: Pondering over this one: I'm presuming a list of links with their short intros like e.g. news articles: dl dta href=cow_jumps_over_moon.html ... Cow jumps over moon/a/dt ddAn unnamed cow has been seen jumping over the moon say residents.../dd dta href=dish_spoon.html ... Dish runs away with spoon/a/dt ddThe mystery continues as crockery takes to the streets.../dd /dl Works as a definition list in a semantically comforting way? Am I wrong? Thanks, Nick ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] How not to inherit
You could use something like #navbar-main a:hover, #navbar a:hover { text-decoration: underline; color: #--; background: #--; } if you just want to color the links -- since it's more specific than just the 'a' rules, it should take precedence (at least it should, I haven't tested this particular example). Cam On 21/11/2004, at 3:29 PM, Jonathan T. Sage wrote: can you simple redifine them with the color and background they should have? not sure your specific instance... more information might lead to a better way to do exactally with your looking for ~j On Sat, 20 Nov 2004 23:24:54 -0500, Lee Underwood [EMAIL PROTECTED] wrote: I have the following code in a file: begin code a:hover { background-color: #dedede; color: #385468; text-decoration: none; } #navbar-main a:hover, #navbar a:hover { text-decoration: underline; } /end code The problem is, I don't want the navbar rule to inherit the color and background-color declarations from the previous rule. Suggestions? Thanks in advance! Lee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Jonathan T. Sage Theatrical Lighting / Set Designer Professional Web Design [HTTP://www.JTSage.com] [HTTP://design.JTSage.com] [EMAIL PROTECTED] [See Headers for Contact Info] ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **