Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-23-2010, 05:26 AM   #1
crazytrini85
Confirmed User
 
crazytrini85's Avatar
 
Industry Role:
Join Date: Jun 2006
Location: Over there.
Posts: 817
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?
crazytrini85 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 05:29 AM   #2
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
You probably are missing a quote to close the tag somewhere.
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 05:37 AM   #3
qdtobbe
Confirmed User
 
Join Date: Apr 2002
Location: Sweden
Posts: 1,688
Take a look here: http://validator.w3.org/
__________________
Trade Hardlinks at Linkspun | Domains For Sale
qdtobbe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 05:38 AM   #4
candyflip
Carpe Visio
 
candyflip's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,068
Do you have an extra </div> hiding somewhere in the code that might screw things up?
__________________

Spend you some brain.
Email Me
candyflip is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 05:42 AM   #5
Overload
Confirmed User
 
Overload's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: Beck's City, North Teutonia
Posts: 3,185
maybe you shud post the class params?
__________________
There aren't enough faces and palms on this planet for an appropriate reaction to religion.
Overload is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 05:43 AM   #6
Overload
Confirmed User
 
Overload's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: Beck's City, North Teutonia
Posts: 3,185
Quote:
Originally Posted by qdtobbe View Post
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.
Overload is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 06:17 AM   #7
Broda
Confirmed User
 
Join Date: Feb 2003
Location: CheapAssDesigns.com
Posts: 1,874
<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
Broda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 06:24 AM   #8
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
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
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 06:36 AM   #9
crazytrini85
Confirmed User
 
crazytrini85's Avatar
 
Industry Role:
Join Date: Jun 2006
Location: Over there.
Posts: 817
<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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 06:37 AM   #10
crazytrini85
Confirmed User
 
crazytrini85's Avatar
 
Industry Role:
Join Date: Jun 2006
Location: Over there.
Posts: 817
Quote:
Originally Posted by TheDoc View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-23-2010, 06:43 AM   #11
crazytrini85
Confirmed User
 
crazytrini85's Avatar
 
Industry Role:
Join Date: Jun 2006
Location: Over there.
Posts: 817
Quote:
Originally Posted by Overload View Post
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.
crazytrini85 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.