The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Validate this code please..
Hi, these 2 lines throws errors, when i try to validate on a validator.
HTML Code:
<div style="color:black; font-family:Franklin Gothic Medium; text-shadow:1px 1px 1px transparent; font-style:oblique; text-decoration:overline; padding:1px; font-weight:900;" class="smallfont">{vb:raw post.usertitle}</div> HTML Code:
<vb:if condition="$post['field8']"><div class="Bold" style="color:black; text-shadow:1px 1px 1px transparent; padding:1px; font-weight:900;"><dt>Gender</dt> </div> <dd>{vb:raw post.field8}</dd></vb:if> Any help would be appreciated, cheers |
#2
|
||||
|
||||
What are the errors you get?
|
#3
|
|||
|
|||
If the image is not clear, let me know |
#4
|
||||
|
||||
The image is clear, but the errors are spelled out right there. You can't have a <b> around a <div>. You can't put a <div> around a <dt> (<dt> must be enclosed in <dl> tags).
|
#5
|
|||
|
|||
Quote:
Can you just validate for the lines which i have posted above? Many thanks. |
#6
|
||||
|
||||
You should just change this to span tags and put them inside the <dt> tags:
HTML Code:
<vb:if condition="$post['field8']"><dt><span class="Bold" style="color:black; text-shadow:1px 1px 1px transparent; padding:1px; font-weight:900;"> Gender</span></dt> <dd>{vb:raw post.field8}</dd></vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|