Jump to content

jeffamm

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by jeffamm

  1. Ste,Thanks but won't that bold everything? I'm trying to selectively bold words within the list item.
  2. When I try to bold some text within a list item, as in:<ol><li><b>Topic 1</b> - text text text</li></ol>I see that it is not considered valid with xhtml 1.0 transitional. I'm trying to keep all my code valid. Is there a proper way to do this, or is it not possible with list items?many thanksJeff
  3. Vchris,Interesting that it works for you (with Firefox I assume) but I just fixed it - another newbie mistake. When I drew the border I had used the z-index=2 so the links were obscured by the box. I didn't need the z-index, they were just vestiges of old code, so removing them fixed it. thanksJeff
  4. I have a list of links on our home page in a "top 50" box that Firefox ignores (doesn't see as links, cursor doesn't change) as follows:<div style="position: absolute; left: 480px; top: 495px; background-color: transparent; width: 280px; padding: 0px;"> <br /><a href= "http://www.allmusicmethods.com/product_details.aspx?item_guid=6c0bfc16-748d-4035-88b4-f75b1cb28b12" class="Top50List">1. Hal Leonard Guitar Method Book 1 - Bk</a><br /><a href= "http://www.allmusicmethods.com/product_details.aspx?item_guid=aaa1efbb-3c7a-4114-9475-c79dc1891c48" class="Top50List">2. Hal Leonard Guitar Method Book 1 - Bk/CD</a><br />and so on to a closing </div>The page and CSS have been validated.What am I missing, and can I just put the class'"Top50List" in the div tag and not repeat it per line?thanks much
  5. I finally got my homepage to validate, and learned a lot about asp.net in the process, but I'm finding that FireFox 2.0 doesn't recognize some links as links. I'm sure I can trouble shoot the specific links that don't work - my real question is whether XHTML 1.0 transitional validation means that FireFox will work, or is it still a case by case issue? If I validated to strict, would that then "guarantee" it?
  6. OK that was too easy. I didn't realize the HorizontalAlign was non-standard. Changing to align took care of it.many thanks
  7. I'm finding that HorizontalAlign="center" renders as align="Center" and generates an error from the W3C validator. I've already put in a fix (Browser Caps) to cause the validator to appear as a newer browser, and that fix has fixed other rendering errors, but this one remains. Just wondering if perhaps this isn't a rendering error, or if anyone has some thoughts on it.many thanks and happy holidaysJeff
  8. Thanks for your help jesh - the browser caps search led me to Phil Scott's Weblog where I found the item below. I created a browser caps section in my web.config and added the code below, and it cleared up the error I was getting due to rendering for different browsers. I was still left with one rendering error, which I'm posting in this forum separately, but was able to work-around it be deleting it. Crude, but it validates, and appears to have no other effect on my site. thanks again,Jeff"With the go-live of ASP.NET 2.0, I've been actually using it at a level of more than "ooh, pretty new feature." I'm kinda of a standards nerd, so naturally I've been messing around with the XHTML output and making sure I like what I'm seeing. So far, so good. But I ran my page against the W3C's validator and it freaked out, complaining about form tags having names and the such. So I take a look at the source, and it looks good to me. So I go back to the validator, and run it one more time, this time enabling "Show Source." Ah, there's the problem. ASP.NET thinks that the validator is some ghetto browser from 1996 so it is sending it invalid markup.The fix was pretty easy once I tracked it down. Simply update the browseCaps section of your web.config to tell ASP.NET about the W3C's user-agent. Here's the code I'm using:<case match="W3C_Validator+"> browser=Netscape frames=true tables=true cookies=true javascript=true javaapplets=true ecmascriptversion=1.5 w3cdomversion=1.0 css1=true css2=true xml=true tagwriter=System.Web.UI.HtmlTextWriter</case>Now when you validate your page, ASP.NET will send out the same HTML as it would if Firefox or IE were requesting the page. Now what I'd really like to do is tell ASP.NET to shove it, and spit out XHTML on unknown browsers. Anyone have any ideas?"
  9. I'm working on getting the main pages of my website to validate, but keep getting an error in one line of code that is created dynamically by asp.net pages. If you load the page with an older browser it delivers code with older-compatible html. If you load it with a new browser, you get more recent and valid (by W3C standards) html/xhtml. The validator "browser" type must be or appear "old" in that it is getting the non-valid code. Is there any way to tell the validator to view the site with a more advanced browser? I apologize if my language isn't completely precise but hopefully you understand the issue and question.many thanksJeff
  10. I have a .aspx website (www.allmusicmethods.com) and I'm trying to get the homepage to validate with XHTML 1.0 Transitional. The homepage is comprised of a main site.master page, left_nav.ascx bar, top_nav.ascx bar, default.aspx page and main.css which recently validated.I'm getting this error:Line 103, column 159: there is no attribute "border" . ...arch" src="images/btn_go.gif" border="0" />The challenge for me is that this line of code literally does not exist in any file. The line of code that contains the phrase src="images/btn_go.gif" is actually as follows:Private m_ImageURL As String = "~/images/btn_go.gif" in a file "c_search.ascx" which is incorporated in the left_nav.ascxThe c_search.ascx calls a sub called Ms_search through a register at the top of the file (<%@ Register Src="~/controls/c_search.ascx" TagName="ms_search" TagPrefix="uc1" %>) and displays the Ms_search through this:<table class="tableleft" cellpadding="0" cellspacing="0" bgcolor="#c8c8c8" > <tr> <td class="tdleft" style="width: 285px; height: 76px"> <uc1:ms_search ID="Ms_search1" runat="server" />My question is, is the border="0" coming from the CSS items, either tableleft or tdleft? The CSS for those is below. The second question is what do I change to get it to stop creating the border="0" that the validator doesn't pass? Appreciate any guidance that anyone can offer.thanks.tableleft{ border-right: gray 1px solid; border-top: gray 1px solid; border-left: gray 1px solid; border-bottom: gray 1px solid; padding-right: 0px; padding-left: 0px; padding-bottom: 0px; padding-top: 0px;}.tdleft{ border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; border-bottom: 1px solid; background-color: gray; color: white; font-size: x-small;}
  11. The updated one is still on our staging server until I finish some more testing. Then I'll move it to our live server and submit the URL. Right now I'm having some trouble getting the stage server to recognize the line-height attributes in a couple of our CSS elements. I'm going to experiment with % values instead of the 1.4 type numbers that I've been using.thanks
  12. Thanks Boen, yes I have been uploading the file, I'll try it with the URL and see what happens
  13. Jonas,Are you sure you read it right? Look again, it says Jonas.(OK, kidding aside, I just changed it - sorry to get it wrong, I was up about as late last night in my time as you were in yours.)Thanks for your comments, they were very helpful again. Anyway, the link you gave shows the file and says "Congratulations" and here, use the valid CSS icon. I'm not getting the congratulations or the suggestion to use the icon, which for some reason I really want. I'm just wondering why it's not coming up?
  14. OK, with a lot of help from Snoja I cleaned up and fixed all my errors, but when I submit the file for validation it doesn't say "Valid", it just shows no error. I was under the impression that when you were valid you would see a green header saying "Valid" or something similar. I do have many warnings still to clean up but I've been told they don't "count". What message do others receive when they are validated?Also, many of the warnings are to add either a background color and/or a color to many CSS classes that haven't otherwise needed them. I tried dealing with this last night by adding background-color:transparent but it didn't appear to be acceptable to the validator. Shouldn't transparent work - the CSS Primer I read seemed to indicate it was fine to use?thanksJeff
  15. Jonas, Thanks but I just figured out that my values were out of range (2) instead of 1.2 which I had originally intended.Now I've gotten rid of all the errors and am working on the several hundred warnings.Onward towards Validation!
  16. Well I finally had some success with problem #1 - the body and p items not passing validation. When I removed the comments string that came first in the document, and just above the body item, the code validated. Perhaps CSS or the validator doesn't like to see comments first thing in a file. Don't know - but problem fixed. I'm now stymied by the line-height problem, where my entries appear to be fine eg line-height: 1.4; but the validator claims there is no value in place for line-height.
  17. Yes, I'm using IE6.Jonas one other thing - the two errors that indicated I don't have line-height values, but I have valid (I believe) values in them. Here's what's in the file.line 493.Top50ListBold{ font-family:"tahoma, sans-serif"; font-weight: bold; line-height: 2; color:#5f3368; font-size: 8pt; text-decoration: underline;}line 473.Top50List{ font-family:"tahoma, sans-serif"; line-height: 2; color:#5f3368; font-size: 8pt; text-decoration: underline;}These look identical to some of the examples I see in W3C primer. See anything wrong.
  18. Jonas,I'll try it again, but I believe I validated the correct file because the error message code shows the 0s without the pxs. I'll take a look at what you suggested and try again.Jonas, that link doesn't do anything when I click on it. Would you just give me the URL and I'll check it out.
  19. I tried removing the px from the 0 items but still got the same errorLine: 5 Context : ��� Parse Error - body {font-size:9pt;font-family:"verdana, tahoma, arial, sans-serif";margin-bottom:0;margin-top:0;margin-left:0;margin-right:0} Any other thoughts?Just want to make sure I'm being clear, there is nothing before this body item other than comments. Is it correct that there is no initiating statement or tag or anything needed? Here's what it looks like:/**********************************************************************//* SECTION: HTML GENERIC*//**********************************************************************/body {font-size:9pt;font-family:"verdana, tahoma, arial, sans-serif";margin-bottom:0;margin-top:0;margin-left:0;margin-right:0}p {font-size:9pt;font-family:"verdana, tahoma, arial, sans-serif"}/**********************************************************************//* SECTION: GENERIC*//**********************************************************************/.VALUE_LABEL { font-size: 9pt; font-weight:bold ; }.VALUE_LABEL_SM { font-size: 8pt; font-weight:bold ; }.VALUE { font-size: 9pt; background-repeat:no-repeat } etc etc
  20. Jonas, thank you, I'll try that right now
  21. I'll try that but I thought I read that any attribute with a space in it had to quoted - not so?I tried removing the quotes, but just got the same error , but without the quotes, as follows:Line: 5 Context : ��� Parse Error - body {font-size:9pt;font-family:verdana, tahoma, arial, sans-serif;margin-bottom:0px;margin-top:0px;margin-left:0px;margin-right:0px}
  22. I hope somebody can help me as I've tried every fix that came to mind, and have been through the W3C CSS Primer and didn't find an answer. Many thanks in advance for reading this,I have an external style sheet at http://www.allmusicmethods.com/main.css that I am working on validating with W3C. There are a bunch of things in need of fixing, but from the ones I've already fixed successfully, I think I know how to fix all the rest but one. It's the first item in the file other than some comments, as follows:/**********************************************************************//* SECTION: HTML GENERIC*//**********************************************************************/body {font-size:9pt;font-family:"verdana, tahoma, arial, sans-serif";margin-bottom:0px;margin-top:0px;margin-left:0px;margin-right:0px}p {font-size:9pt;font-family:"verdana, tahoma, arial, sans-serif"}The validator gives me the following error:Line: 5 Context : ��� Parse Error - body {font-size:9pt;font-family:"verdana, tahoma, arial, sans-serif";margin-bottom:0px;margin-top:0px;margin-left:0px;margin-right:0px} It doesn't give this error for p item immediately following the body item, but if I remove the body item (line 5) it then gives me the same error for the p item. I'm assuming therefore that something must go before these items, after the comments, but I haven't been able to figure out what is missing.The ��� (three boxes) in the context are suspicious but I haven't been able to figure out why they are listed. I've tried to see if there are any invisible characters or other oddballs that would create the boxes but I don't see any. I'm totally stuck - can anyone help me please? Hopefully the fix is obvious to the pros on this board, but this newbie is bewildered.Many thanksJeff
×
×
  • Create New...