...

View Full Version : What is happening?!



zachatk
09-06-2010, 02:47 AM
Hey I finally got my login to work but after you log in the format gets all screwed up! The easiest way to show you what I mean would be to let you guys log in!

Username: sample
Password: password

Site:

http://motorcyclemods.net23.net/index.php

It's fine when you aren't logged in but when you do, well you can see the problem!

abduraooft
09-06-2010, 08:30 AM
Take the html source of the page after login from browser's view source option and then validate using http://validator.w3.org/#validate_by_input. There seems to be some closing tags missing .

zachatk
09-06-2010, 09:34 PM
I copied it into PSPad and here's what I got:

Found 0 errors 27 warnings
line 103 column 61 - Warning: <br> element not empty or not closed
line 103 column 65 - Warning: <br> element not empty or not closed
line 103 column 220 - Warning: <br> element not empty or not closed
line 103 column 224 - Warning: <br> element not empty or not closed
line 103 column 250 - Warning: <br> element not empty or not closed
line 103 column 315 - Warning: <br> element not empty or not closed
line 103 column 319 - Warning: <br> element not empty or not closed
line 106 column 74 - Warning: <br> element not empty or not closed
line 107 column 1 - Warning: <br> element not empty or not closed
line 107 column 9 - Warning: discarding unexpected </div>
line 108 column 41 - Warning: <div> isn't allowed in <tr> elements
line 119 column 41 - Warning: <div> isn't allowed in <tr> elements
line 134 column 33 - Warning: discarding unexpected </div>
line 136 column 25 - Warning: discarding unexpected </div>
line 138 column 25 - Warning: <div> isn't allowed in <tr> elements
line 140 column 17 - Warning: discarding unexpected </div>
line 141 column 9 - Warning: discarding unexpected </div>
line 142 column 1 - Warning: discarding unexpected </div>
line 144 column 1 - Warning: <div> isn't allowed in <tr> elements
line 180 column 1 - Warning: <div> isn't allowed in <tr> elements
line 99 column 1 - Warning: missing </table> before </body>
line 94 column 9 - Warning: missing </div>
line 92 column 33 - Warning: missing </div>
line 91 column 25 - Warning: missing </div>
line 53 column 17 - Warning: missing </div>
line 52 column 9 - Warning: missing </div>
line 51 column 1 - Warning: missing </div>

The div can't be put in the tr? So how do I work around this?

abduraooft
09-07-2010, 07:40 AM
The div can't be put in the tr? So how do I work around this? Are you nesting the div directly under tr? If so, that's invalid. You need to have a td inside tr before anything.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum