GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Problems not closing a DIV class tag? Help please. (https://gfy.com/showthread.php?t=979281)

crazytrini85 07-23-2010 05:26 AM

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 07-23-2010 05:29 AM

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

qdtobbe 07-23-2010 05:37 AM

Take a look here: http://validator.w3.org/

candyflip 07-23-2010 05:38 AM

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

Overload 07-23-2010 05:42 AM

maybe you shud post the class params?

Overload 07-23-2010 05:43 AM

Quote:

Originally Posted by qdtobbe (Post 17357301)
Take a look here: http://validator.w3.org/

and the jiggsaw for css :thumbsup

Broda 07-23-2010 06:17 AM

<div style="clear:all"></div>
after the closing div has saved me on numerous ocassions :)

TheDoc 07-23-2010 06:24 AM

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/

crazytrini85 07-23-2010 06:36 AM

<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.

crazytrini85 07-23-2010 06:37 AM

Quote:

Originally Posted by TheDoc (Post 17357369)
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.

crazytrini85 07-23-2010 06:43 AM

Quote:

Originally Posted by Overload (Post 17357312)
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.


All times are GMT -7. The time now is 11:08 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123