Recent Topics

1 Jan 20, 2006 15:18    

A while ago I had this same problem with FF. My blog was suposed to have a white background and it wass showing only in IE. Here's the link to it: http://nando.myacen.com/blog

Someone here helped me to solve this problem and everything was fine. But out of the blue, the same problem started again and now the white background has disappeared for FF users. The weird thing is that I haven't changed the template at all!!!

I tried to validade the site, it has too many validation errors and I'm too dumb to understand the error messages and therefore try to fix it.

I was wondering if someone here could point me to the right direction regarding the validation and also the problem with the white background, which I think it's not even a html validation problem, but a CSS validation problem...

thanks!

3 Jan 20, 2006 15:37

I know that...

I just can't understand why the say some tags are wrong... such as </a> or </h1> . What are the correct tags, then?

4 Jan 20, 2006 15:40

without looking, you may not have used the wrong tags as much as youve incorrectly nested them OR left some out, which will cause errors below the missing one.

I'll take a harder look this evening when I get home from work if no-one else has helped you resolve most of those, as it is Im nearly late for work 8|

5 Jan 20, 2006 16:08

thanks, I'll be waiting for your help! :)

6 Jan 20, 2006 17:23

If you read what the validator is saying it'll tell you what the problems are. First is that you have an img tag with no alt atribute.

<img src="blahblahblah" alt="whatever" />


Next you are using an ID twice, and you can't do that. ID can only be used once, but class can be used many times, so that'll require a slight tweak to your _main and your css file.

Another one that'll fix a lot of your errors is that you need to replace & with it's encoded equivalent.

?show_name=1&count=5&display=random

becomes

?show_name=1&amp;count=5&amp;display=random

The rest of the params would also need to be fixed.

As you clear up a few of these you'll see where the overall pile of info it tells you goes down. Work through the errors in bits and pieces and you'll see that in no time you'll have a hunky dory page - and be a whole lot smarter about keeping it smooth. After you get your xhtml cleaned up you'll be in a good position to get your css cleaned up, though I think the 4th item is probably related to the visual dilemma you've got.

7 Jan 20, 2006 18:15

hmmm.. I'll try to fix those you mentioned.

and what about this: (and other simliar errors)

<a href="http://www.heavenisonfire.com/" target="_blank">Kay [>]</a><br />

Can't seem to understand what's wrong with it...

8 Jan 20, 2006 18:44

Try turning

Kay [>]

into

Kay [&gt;]

and see what that does for ya. Some stuff needs to be encoded to make the code 'valid' even though most browsers will figure out > means >. It's possible the [ and ] will need to be encoded, and if so I don't know what the codes are, but to be honest I doubt it. I'm guessing that because > is what closes a tag the xhtml would rather not see it that way, so encoding it should hook you up.

9 Jan 20, 2006 19:12

I don't believe it's this error. This ( [>] ) appears all the time in the code and it only acuses error in a few ones...

Weird stuff!

10 Jan 20, 2006 19:24

You're right - I just took a wild guess. The problem with ALL those errors is really simple: you've got a UL tag with no LIs inside it. Start fixing things and it'll get easier and easier to see what else remains. Another good trick is to check the box for "show source" so you can see exactly where the errors lie in relation to everything else.

11 Jan 20, 2006 19:40

I believe none of my UL tags have LIs inside it... Is it the problem? What will happen if I remove the <ul> </ul> tags?

12 Jan 20, 2006 23:07

Ok, I fixed al the UL tags and I got rid of 15 errors at once! :)

But I'm still having too many problems with those types of errors:

end tag for "img" omitted, but OMITTAG NO was specified

document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag .

*EDIT: the white background is now back (dont ask me how I did it!). Anyway, I still want the page to be validated so I still need your help with the errors mentioned above! ;)

13 Jan 21, 2006 00:06

Nando wrote:

end tag for "img" omitted, but OMITTAG NO was specified

Make sure your image tags are self-closing, like this: <img src="blah" alt="blah" /> The space and / at the end make it self-closing.

14 Jan 21, 2006 00:19

thanks! one more problem solved! ;)


Form is loading...