Support Forums
Don't know what's wrong here.. - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43)
+----- Forum: W3C Validation (https://www.supportforums.net/forumdisplay.php?fid=58)
+----- Thread: Don't know what's wrong here.. (/showthread.php?tid=10174)



Don't know what's wrong here.. - Camgaertner - 07-24-2010

Quote: <div id="logo">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Don't know what the problem is with this Tongue
My logo is acting up, not staying in place though, so I got it validated.



Any ideas on fixing this?
A bit more of the code:
PHP Code:
<body>
<
div id="wrapper">
<
div id="header">

        <
a href="index.php<?php echo $referral_string?>">
        <
div id="logo">
        </
div></a>
        <
div id="updates">
        <
span>&nbsp;</span>
        </
div>
        <
div id="login">
         <
div id="loginwelcome"



RE: Don't know what's wrong here.. - DAMINK™ - 07-24-2010

</div></a>
swith that
</a> </div>


RE: Don't know what's wrong here.. - Camgaertner - 07-24-2010

(07-24-2010, 11:39 PM)DAMINK™ Wrote: </div></a>
swith that
</a> </div>

Still messed up Sad

Thanks for your help anyways Smile


RE: Don't know what's wrong here.. - DAMINK™ - 07-24-2010

URL
To the other yes i know the above mistake. But i dont think it will make a difference to make it like this.

PHP Code:
<body>
<
div id="wrapper">
<
div id="header">

        <
a href="index.php<?php echo $referral_string?>">
        <
div id="logo"></a>
        </
div>
        <
div id="updates">
        <
span>&nbsp;</span>
        </
div>
        <
div id="login">
         <
div id="loginwelcome"



RE: Don't know what's wrong here.. - Grizzly - 07-25-2010

Are you closing the wrapper and header divs?


RE: Don't know what's wrong here.. - Ambitious - 08-28-2011

You still need to close 4 div tags in that code. Their IDs are "wrapper", "header", "login", and "loginwelcome".

-- Ambitious --


RE: Don't know what's wrong here.. - AceInfinity - 08-28-2011

(08-28-2011, 01:24 PM)Ambitious Wrote: You still need to close 4 div tags in that code. Their IDs are "wrapper", "header", "login", and "loginwelcome".

-- Ambitious --

You just bumped a month old thread, it's been solved by others too already though