Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> HTML
Author Message
derek765
Regular
Regular



Joined: Sep 27, 2012
Posts: 99
Location: Okinawa, Japan

PostPosted: Wed Jan 23, 2013 9:15 am Reply with quote

Keep getting validation errors with this, but came seem to get it right.

These are the validation errors I am recieveing:
Code:
line 375 column 1 - Warning: missing </span> before <div>

line 375 column 57 - Warning: inserting implicit <span>
line 375 column 68 - Warning: discarding unexpected </span>


This is the block format, with this is correct, I tried removing and playing around with the closing tags but is ruins the format:

Code:
<td class="trow_h" valign="middle" align="right" style="white-space: nowrap">


<span class="lastpost">{$lastpost}</span>


<div class="test"><span style="float: left;">{$lang->forumbit_threads}:</span>{$threads}{$unapproved['unapproved_threads']}</div>

<div class="test"><span style="float: left;">{$lang->forumbit_posts}:</span>{$posts}{$unapproved['unapproved_posts']}</div>



</td>
 
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Wed Jan 23, 2013 9:47 am Reply with quote

The nesting of containers looks correct, although you should not float a span as it's an inline element (unless you have display:block; within the css). I would probably try the replacing the spans with div's and see if that helps.
 
View user's profile Send private message Visit poster's website
derek765







PostPosted: Wed Jan 23, 2013 9:58 am Reply with quote

Never thought about changing the spans to divs, everything looks validated now and perfect results, that fixed like 100 validation errors I had.

Fix:
Code:
<td class="trow_h" valign="middle" align="right" style="white-space: nowrap">


<div class="lastpost">{$lastpost}</div>


<div class="test"><div style="float: left;">{$lang->forumbit_threads}:</div>{$threads}{$unapproved['unapproved_threads']}</div>

<div class="test"><div style="float: left;">{$lang->forumbit_posts}:</div>{$posts}{$unapproved['unapproved_posts']}</div>



</td>
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> HTML

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©