Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    content won't go in div!

    ok hey guys, i’m new to this forum and a noob at web design so please bear with me!

    if you take a look at this http://UndiscoveredTruth-x.itsadoozy.com/cozza
    then click “CLICK TO TEST” the content appears under outside the whole container!
    *groan*
    help pleaseee (L)!

  • #2
    Regular Coder
    Join Date
    Nov 2004
    Location
    The land of chocolate
    Posts
    226
    Thanks
    1
    Thanked 16 Times in 16 Posts
    You have another
    Code:
    <div id="content">
    </div>
    outside of your body, after everything else. Your content appears in that div, rather than in the first one.

    Don't know how it got there, but it shouldn't be there...
    -Snow

    Susie, if you want to see your doll again, leave $100 in this envelope by the tree out front. Do NOT call the police. You CANNOT trace us. You CANNOT find us.

    Sincerely,
    - Calvin.

  • #3
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Hello and welcome to the forums! You seem to have 2 div's with id="content." You have a few issues with your xhtml markup. Your </body> tag is after your </html> tag (not to mention the second instance of your content div after the closing body and html tags) and you have used capital letters in an <a> tag and a <br /> tag. Xhtml only allows lowercase letters in the tags. Now is the time to fix that up for good measure because you might not want to later.

    Beyond that, if that second content div is being generated dynamically then your problem is in your php script. If that's the case then post your php script and ask a moderator to move your thread to the php forum (and to avoid a potential pitfall don't cross-post your question, it's a no-no).

    Edit: Also, you'll want to change this:
    ©
    to either this:
    &copy;
    or this:
    &#169;

    The numeric one is supposed to be more universally supported (so I hear) but the text version is easier to keep track of...
    Last edited by Rowsdower!; 02-16-2009 at 01:49 PM. Reason: afterthought about copyright symbol...
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Just look at your code from browser's view source option
    </html>
    </body>


    <div id="content">
    <h1>lol</h1>
    <h3>testing</h3>
    </div>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the quick answers guys!
    ima see if i can fix it up now! you guys rock.

    YAYAYAY, I THINK I SOLVED IT!
    w00t, thanks again guys (L)
    Last edited by cozmosis; 02-16-2009 at 02:06 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •