![]() |
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? |
You probably are missing a quote to close the tag somewhere.
|
Take a look here: http://validator.w3.org/
|
Do you have an extra </div> hiding somewhere in the code that might screw things up?
|
maybe you shud post the class params?
|
Quote:
|
<div style="clear:all"></div>
after the closing div has saved me on numerous ocassions :) |
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/ |
<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. |
Quote:
|
Quote:
.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