![]() |
XHTML question...
I have the following line of code in a product's XML file and would like to know the proper way to code it, since the way it is now fails XHTML compliancy.
Here's the HTML: HTML Code:
<div class="smallfont" style="float: right" style="font-style: italic;"> |
Perhaps:
HTML Code:
<div class="smallfont" style="float:right; font-style:italic;"> |
Thanks Lynne...I can always count on you, but aren't you missing some spaces in your coding? Just want to make sure...
|
You may add in a space if you want. I don't think it really matters.
|
Thanks, Lynne...
You're one of the best! I've got 136 errors down to just 89, but from there...I'm totally "clueless". |
Usually the validator spits out the reason. And, very often one little error on your page will give several errors on a validator. So, just take them one at a time and you'll see progress.
|
Unfortunately, I'm not really that skilled. Even though I can get the general idea...and I do happen to fix some of the issues, most of the time, on my own.
However, reading the reasons the validator gives is based on the source code for that particular page. What I find to be the hardest part is determining whether the errors are being caused by the product's xml file...or if it's being caused by a template within that product. That's why...at this particular juncture...I'm stuck. I do agree, however, that one issue can cause several. I just wish I had someone sitting next to me who knows what they're doing. Care to come over and fix this for me?:D --------------- Added [DATE]1232229018[/DATE] at [TIME]1232229018[/TIME] --------------- Guess I can take that as a "no", huh?;) |
Quote:
|
Dismounted...
Thanks for the tip...I'm down to just 37 errors. However, I'm stuck. Is there any way I can provide you with the source code and you tell me where to look? I've enable the setting as you previously mentioned...and it does show the templates, but the very first validation error has me stumped. Thanks for all of your help everyone...really...much appreciated. |
Please post a link to the page you are validating.
|
Here ya go: http://www.glitchpc.com/forums/c_news_letter.php
|
I get a 404 on that page.
|
|
Grab the source code for your page and throw it into a text editor. Then, search for the lines the validator is having problems with. The first one "</tr><tr>" shows me right away the problem. I'll post the code above it:
Code:
<tr> Just keep doing a search for the lines it doesn't like. |
Lynne...
Thanks for that information, but the coder of this modification has that </tr><tr> within an "if statement" of one of the templates: HTML Code:
<if condition="$latest_members_count%3 == '1'"></tr><tr></if> |
Then change the lines in the template above it. Or, change the modification. I can't think of any modification I have installed that I haven't changed in some way to work the way I want it to work on my site.
|
I'm sorry...but I'm truly lost on this one...
Unless someone can take me by the hand and guide me step-by-step through these edits...I'm afraid I may have to call it quits. Seriously though...I really appreciate the help...and even though you see the word "Coder" under my username...don't take it "verbatim". I'm really not that good...if at all. So just generalizing an answer, may be good for some...it's not helping me in the least. |
Find:
HTML Code:
<if condition="$latest_members_count%3 == '1'"></tr><tr></if> HTML Code:
<if condition="!isset($called) AND $called = true"><tr><else /><if condition="$latest_members_count % 3 == 1"></tr><tr></if></if> |
Thanks, Dismounted...
Tried your code, but the errors jumped from 37 to 45. So, reverted back to the original code...at least, for now. I'm tellin' ya...this has been a royal PITA... |
On another note...
I've been told that..."trying to get one's site to validate with W3C compliance is a total waste of time...as long as the code works, why bother?" While others say it's better for several reasons. Anyone care to comment? BTW...I've given up on that particular page...for now, anyway. The coder is working on making it compliant. However, I just added a new style and the forum homepage validates except for one <table> error. I've looked that code up and down and can find nothing wrong with it. Anyone care to take a stab at it? Thanks to anyone who replies... |
I know the pages on my site don't validate correctly, but usually it is usually because I use some property that it doesn't like in a certain tag. If it's a matter of table tags not adding up correctly, I always fix those because otherwise a browser could misinterpret the page and make it all wonky.
|
In my case...I have to get my forum homepage to validate...and it has one error. The error I get is this:
Quote:
I've checked the code...yet it's driving me nuts. Hopefully, someone can find the error for me and tell me what to change so I can get this mokey off my back. Thanks for the reply, Lynne... |
I just put your homepage into the validator and it passed. I'm just a guest though. So, whatever is causing the problem is something that isn't shown to guests.
|
Are you looking at my homepage...or the forum homepage? It's the forum's homepage that's causing the headaches: http://www.glitchpc.com/forums/index.php
|
I did a quick look through your page source and every </table> tag looked valid to me so I'm not sure what it is talking about. Sorry.
|
Thanks, Lynne...LOL! Now you know the pain I'm going through.
|
Well, as I said, I don't worry about that stuff. Well, sometimes when I'm board, I go try to validate a page, but I don't lose any sleep over it if I'm left with a couple of errors.
|
Well...I have a total of three styles...and this is the only one that doesn't validate, so I'm going to post my FORUMHOME template code here to see if anyone can help me locate the problem.
HTML Code:
$stylevar[htmldoctype] Much thanks to anyone who can solve this for me... |
Probably your best bet is to compare that template to one of the forumhome templates in the other styles.
|
Lynne...if you were standing next to me...I'd kiss you smack dab on the mouth!:eek:
Removed <thead></thead> from the template and low and behold...SUCCESS!:D Please let me know if there's anything I can do for you...within reason, that is...;) All my best! Steve |
Lynne <-- will work for kisses :D
|
All times are GMT. The time now is 06:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|