Re: [WSG] Headings within ul Navigation
Matt Thommes wrote: Why do you want all those header tags in there- for display purposes? I don't think it's invalid - I just don't see the purpose yet It's probably better to just class the ul or li, such as ul class=heading1, and then style all those headings for the correct appearance. Matthom matthom.com/ I would think that h1/h2/h3 are the wrong element to be used here. The specs say that they're to be used as Headings: A heading element briefly describes the topic of the section it introduces from http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#h-7.5.5 The key to me being the section it introduces. Personally, I don't think that the UL/LI combinations need any more than what they have As for the CSS, you can use descendent selectors to define the look without adding classes... ul li { font-weight: bold; font-size: 10pt; } ul ul li { font-weight: normal; font-style: italic; font-size: 8pt; } -Erik ** 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] The mother of all html references?
Cole Kuryakin - x7m wrote: I've been using this online html reference (http://www.htmlreference.com/) for the past 6 months or so, and so far it's been fine. Can anyone recommend another on-line reference that they prefer so I can take a look? Cole Molly Holzschlag and Dave Shea both have posted blog entries soliciting such resources and the 100 or so comments offer up a pretty good selection: http://www.molly.com/2005/01/30/outdated-html-guides/#comments http://www.mezzoblue.com/archives/2004/08/25/standards_re/comments/ They include a lot of CSS references, but the good HTML references are in there too. Hope that helps, Erik ** 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] Print Stylesheet is ignored
Philippe Wittenbergh wrote: You can only have one style sheet with a 'title' attribute (alternate stylesheets is another matter). Delete the 'title' attribute from your print stylesheet link and you'll be OK. Just to claify Philippe's statement, you actually can have multiple (non-alternate) stylesheets with title attributes... They just should have the *same* title attribute. This declares them as a group to be the Preferrred stylesheets. This way when you style-switch, the companion print stylesheet will still be available. For example: link rel=stylesheet title=bigone href=bigone.css link rel=stylesheet title=bigone href=bigprint.css media=print link rel=alternate stylesheet title=rel2 href=rel2.css media=screen link rel=alternate stylesheet title=rel2 href=rel2print.css media=print This will allow my print stylesheets to follow their screen (or all media) counterparts. If you delete the title attribute from a stylesheet link element, you make that a persistent stylesheet, so it will always be used even when using alternate stylesheets. Hope that helps, Erik ** 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] positioning definition list elements site check needed
Carol t wrote: This is what I want to see in the footer of my pages: LOCATION:blah blah blah MAIL TO:blah blah blah PHONE:blah blah blah Hi Carol, I was able to get this by using the following: #footerwrap dl { /* all the stuff you had plus: */ overflow: auto; } #footerwrap dt { float: left; font-weight: bold; clear: both; } #footerwrap dd { float: left; margin-left: 16px; } Also...I'd really appreciate anyone with a Mac and IE5 on a PC checking this site for any scary stuff. The homepage is http://www.blinn.edu/sbdc. Sorry, but can't help you with these... -Erik ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] Re: [off-list] positioning definition list elements site check needed
Btw, this is something that I would definitely avoid having in my javascript files: function pasuser(form) { //password form if (form.pass.value==support) {location=referrals2.htm} else {alert (The password you entered is incorrect. Please try again. For more information call (979)830-4137) }} I noticed it in the script.js file that is referenced in your about.htm file. The real problem is that the password is in clear text and readable by any client... I don't know where it came from since it doesn't seem to apply to this page, but you usually want to handle password scripting on the server. Or at least use a hash mechanism to make it a little harder... -Erik ** 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] Site Review - CAR SELLER PORTAL
Genau Lopes Jr. wrote: Gene, I tried switch the javascript ampersands , by ASCII code , but the js didnĀ“t works. Anyone knows how to switch for a valid character? Thanks, Genau L. Jr One solution is to move the javascript to an external file and call it with a src attribute. The other is to escape it using amp; which I believe *should* work. You can also add the CDATA to the content of the script: script type=text/javascript !-- Hide script //![CDATA[ if(document.getElementById...display='block'; //]] End script hiding -- /script This causes the stuff between [CDATA[ and ]] to be sent directly as raw text. From the w3.org HTML specs... Although the STYLE and SCRIPT elements use CDATA for their data model, for these elements, CDATA must be handled differently by user agents. Markup and entities must be treated as raw text and passed to the application as is. -- http://www.w3.org/TR/html401/types.html#h-6.2 Hope that helps, Erik ** 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] Site Review - CAR SELLER PORTAL
Gene Falck wrote: Hi Erik, Which is about what I was suspecting--its one thing to give the user agent an entity when what you want is a text rendering of a character and quite another to use an entity where the program must treat it as part of your coding. BTW, do you see any difference in this matter between amp; and #38;? Regards, Gene Falck [EMAIL PROTECTED] I thought that I had successfully used lt; as a comparison in a javascript before, but of course, now I can't find where I did that. I would have thought that #38; would behave exactly as amp;, but thought it might be an interesting avenue to explore... I tend to have all of my javascript in external files which is the other way to make sure that this doesn't happen. A very interesting note, however. I did some testing and found that while this failed validation: if(document.getElementByIdscreen.width1000) this did *not* fail: if(document.getElementById screen.width 1000) and I tried that code in various documents: HTML 4.01, XHTML 1.0 trans, XHTML 1.0 Strict and XHTML 1.1 Strict... all passed. It seems that the validator only really complains when and are butted up against other characters that aren't part of character entities and tags, respectively. -Erik ** 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] Browser incompatibility - was Site redesign - complete
You seem to have the following in your CSS: #header { background: url(http://...glencoe_crop.jpg)no-repeat top; (I snipped the URL to make it fit on one line for this msg...) I found that the problem is that there is no space between the ) and no-repeat. Odd that the CSS validator does validate and adds the space for you. Hope that helps, Erik Chris Coonce-Ewing wrote: Standards question... I've been having problems with browser differences. Viewed in Opera, I have background graphics in my header and footer, yet they don't show up in IE. I've already validated the XHTML and the CSS The site: http://www.coonce-ewing.com The CSS : http://www.coonce-ewing.com/themes/scotland/scotland-layout.css Chris ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **