encyclo

msg:1586784 | 2:32 pm on May 4, 2005 (gmt 0) |
The problem is with your broken markup: you are missing the closing </a> on each list item. Instead, you have added a trailing slash to the <a href=""> part, which is not valid HTML. Your markup should read like this: <li class="bullet"><font size="-1"><b><a href="products.php?type=magix">DACS[b]</a>[/b]</b></font></li> <li class="bullet"><font size="-1"><b><a href="products.php?type=peterson">Magix[b]</a>[/b]</b></font></li> <li class="bullet"><font size="-1"><b><a href="products.php?type=seven_woods_audio">Peterson[b]</a>[/b]</b></font></li> <li class="bullet"><font size="-1"><b><a href="products.php?type=triple_p">Seven Woods Audio[b]</a>[/b]</b></font></li> You unfortunately can't use SGML shorttag notation and remain valid or functional HTML. You should put your pages through the HTML validator [validator.w3.org] to get a better guide.
|
djd4n

msg:1586785 | 3:56 pm on May 4, 2005 (gmt 0) |
ok will give that a go and post the results. I have been using the W3 validator and the whole page comes up XHTML 1.0 transitional valid however.
|
encyclo

msg:1586786 | 5:27 pm on May 4, 2005 (gmt 0) |
You are right in that <a /> is valid XHTML, but the validator uses an XML parser to validate XHTML whereas you are almost certainly invoking an HTML parser in the browser (depending on your MIME type). The validator doesn't check the MIME type - which could be considered a bug. As you are effectively serving the contents as HTML, then you will need to respect HTML syntax even if you are using XHTML notation - hence the requirement for a closing </a> rather than a closing slash (the document fails validation for HTML4).
|
djd4n

msg:1586787 | 7:46 pm on May 4, 2005 (gmt 0) |
it's fixed for opera now cheers for the help!
|
g1smd

msg:1586788 | 8:29 pm on May 8, 2005 (gmt 0) |
Next up, why are you using <font> tags when you have a class there? Add one line to the CSS to get rid of three <font> tags and three </font> tags. Additionally, why have the class repeated three times, when you only need it once on the list (put it on the <ul> or <ol> tag), and can then access the list items in the CSS with: .classname li { css stuff goes here }
|
djd4n

msg:1586789 | 9:15 am on May 9, 2005 (gmt 0) |
i'm sorting the HTML out for another person, and i'm adjusting it to use CSS, be it slowly! i'm no HTML expert, but the page was previously constructed by someone using only WYSIWYG mode in frontpage, hence the problems. I am the only one with enough patience to sort it out! thanks for the tip!
|
g1smd

msg:1586790 | 9:43 am on May 9, 2005 (gmt 0) |
You'll probably be able to knock 20 to 30% off the file size.
|
|