How can I fix my site after I realized that this type was wrong?

When I tried to fix a hover error in Internet Explorer, I realized that doctype was spelled incorrectly.
I fixed it, but now the formatting is wrong in firefox !

The site should look like this , but it looks like that

Is there a quick fix or will I have to rewrite all this manually?
Please ask if you need any code.

+4
source share
3 answers

It looks like Firefox is processing your comments, which are formatted as follows:

<!-------Menu---> 

as soon as the beginning of the comment and, therefore, commenting on a significant part of your markup.

Try changing them to

 <!-- menu --> 

and look it doesn't matter

+6
source

When you changed Doctype, the browser probably changed from quriks to standard mode. This means that the browser will now interpret your site strictly following the W3C standards and will not be as fault tolerant as before.

I am sure that the problems with rendering will be resolved after fixing these errors . If I were you, I would first try to remove these unnecessary dashes from the comments. <!-------Example----> to <!-- Example --> .

+1
source

Correction will be a manual process, but you will not need to completely rewrite. You should be able to phase out any rendering problems one by one.

0
source

Source: https://habr.com/ru/post/1338561/


All Articles