Problems not closing a DIV class tag? Help please.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crazytrini85
    Confirmed User
    • Jun 2006
    • 817

    #1

    Problems not closing a DIV class tag? Help please.

    I have a piece of code where there is a DIV class tag <div class="XXXXX"> but when I close it </div> it doesn't work. Only when I don't close it does it works.

    I've never come across something like this before. I've cross browser tested it, works, but there is no closing tag. Of course it doesn't validate but it works.

    Any of you code pros care to tell me if this can cause a real problem or not?
  • The Dawg
    Confirmed User
    • Apr 2002
    • 2438

    #2
    You probably are missing a quote to close the tag somewhere.

    Comment

    • qdtobbe
      Confirmed User
      • Apr 2002
      • 1688

      #3
      Take a look here: http://validator.w3.org/
      Trade Hardlinks at Linkspun | Domains For Sale

      Comment

      • candyflip
        Carpe Visio
        • Jul 2002
        • 43069

        #4
        Do you have an extra </div> hiding somewhere in the code that might screw things up?

        Spend you some brain.
        Email Me

        Comment

        • Overload
          Confirmed User
          • Jul 2005
          • 3185

          #5
          maybe you shud post the class params?
          There aren't enough faces and palms on this planet for an appropriate reaction to religion.

          Comment

          • Overload
            Confirmed User
            • Jul 2005
            • 3185

            #6
            Originally posted by qdtobbe
            Take a look here: http://validator.w3.org/
            and the jiggsaw for css
            There aren't enough faces and palms on this planet for an appropriate reaction to religion.

            Comment

            • Broda
              Confirmed User
              • Feb 2003
              • 1874

              #7
              <div style="clear:all"></div>
              after the closing div has saved me on numerous ocassions
              CheapAssDesigns.com - when you need quality designs at affordable prices.
              icq: 230-729-205
              info |at| cheap ass designs dot com

              Comment

              • TheDoc
                Too lazy to set a custom title
                • Jul 2001
                • 13827

                #8
                Html Validator - Puts icon at bottom right of browser, red if errors.. open, shows source and errors listed.
                https://addons.mozilla.org/en-US/firefox/addon/249/

                Web Developer - Has a validator in it, out line divs, div orders, all types of goodies.
                https://addons.mozilla.org/en-US/firefox/addon/60/
                ~TheDoc - ICQ7765825
                It's all disambiguation

                Comment

                • crazytrini85
                  Confirmed User
                  • Jun 2006
                  • 817

                  #9
                  <div class="updates">

                  <div class="item"><a href="#"><img src="images/model/name.jpg" alt="Watch Video"></a></div>

                  </div> should go here

                  But if I put it there, for some odd reason it's not working. But if I just leave it out, it works.

                  For sure there is a problem, and there are no extra div tags anywhere else.

                  Comment

                  • crazytrini85
                    Confirmed User
                    • Jun 2006
                    • 817

                    #10
                    Originally posted by TheDoc
                    Html Validator - Puts icon at bottom right of browser, red if errors.. open, shows source and errors listed.
                    https://addons.mozilla.org/en-US/firefox/addon/249/

                    Web Developer - Has a validator in it, out line divs, div orders, all types of goodies.
                    https://addons.mozilla.org/en-US/firefox/addon/60/
                    I'll check those out, thanks. Look handy.

                    Comment

                    • crazytrini85
                      Confirmed User
                      • Jun 2006
                      • 817

                      #11
                      Originally posted by Overload
                      maybe you shud post the class params?

                      .updates .item {position: relative;}
                      .updates .item .comment {background: url("images/play_movie.png") no-repeat center center; cursor: pointer; display: none; height: 265px; left: 0; position: absolute; text-indent: -9999px; width: 355px;}
                      .updates .item {float: center; margin: 0px;}


                      I'm clearly missing something that I can not find. Never had this problem before where closing a div tag wouldn't work.

                      Comment

                      Working...