![]() |
| ||
| XHTML Validation ??? After realising the importance of "validating" my XHTML document, I'm going through the validation process by trying to validate each of my HTML page. Couple of problems that was beyond me includes:
My website is: http://homepage.ntlworld.com/darsh25/alcohol.html 1st problem is about the "top" image link which can be clicked to reach the top of the page (available on every single page). How do I overcome this problem and still able to reach at the top of the page using a link at the bottom of the page ??? (this is with About.html) 2nd problem seems to be from the "javascript" that states the "automatic update date" of the page. Can't I use javascript in CSS document ??? (this is with About.html) 3rd problem seems with the use of <br/> since I need some space. (this is with Alcohol.html) |
| ||
| Re: XHTML Validation ??? Just read through the error messages carefully: they describe the problems and solutions. For example, your doctype expects "type" rather than "language" in your script tag: the error message says exactly that. |
| ||
| Re: XHTML Validation ??? Quote:
Thanks for your help. Basically, I managed to sort the JavaScript error out, since I spent yesterday evening trying to find out more about it & end of the night, it was all worth the effort. I also managed to find some other errors, as the time went by. Not exactly the error that I'm getting in validation but right now, what's beyond me is that regardless of having: #content ul li why do I HAVE TO use <br /> between two "li", since as you can see from all the "li" within the "Drinkware" heading of homepage.ntlworld.com/darsh25/alcohol.html , that many "li" are overlapping each other rather than having "space" between them i.e. a "new li starting from fresh new line" (rather than relying on <br />) This ONLY happens when there's an "image" within an "li", although if it's ONLY text then the new "li" always starts with fresh new line. |
| ||
| Re: XHTML Validation ??? For spacing issues, make sure you always set the "margin", and the "padding", for all affected elements. Otherwise, each browser will set a default, and the default may not be what you want. |
| ||
| Re: XHTML Validation ??? Quote:
Indeed, that makes sense. I've got rid of all the <br /> between "li" in the Drinkware heading of "Alcohol.html" page on: http://homepage.ntlworld.com/darsh25/alcohol.html Now you can see that all the "li" are over-lapping each other. This ONLY happen when there's an image within the "li" (but if it's ONLY text, then the new "li" always starts on the fresh lilne). All the "li" related coding (along with "img" that's WITHIN these "li" are:
Entire Stylesheet is: /* CSS Document */ |
| ||
| Re: XHTML Validation ??? Please re-read my prior message. Your "li-related" style declarations are not complete. You need to provide a complete margin AND a complete padding, for every element, or else each browser will determine its own. Your page looks fine in Firefox, but the images overlap in IE. Don't leave spacing at the whim of the browser: declare it explicitly. |
| ||
| Re: XHTML Validation ??? Quote:
Thanks for your time & help. I finally managed to get it sorted out to my full satisfaction, although with a lot of pain in the neck. Oh well, you live & learn, as they say. |
| All times are GMT -4. The time now is 11:47 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC