The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need help with validating this short bit of code
A few months back I was askied if I could help out managing vbulletin for a website. This site was created 2~3 years ago and when I check the XHTML validation there were many errors. I have read and read and fixed up many of the error in which I have it down to 4 which lie in the header and footer. This was a custom template for the site.
Just wondering if someone can look at this code to see if anything sticks out as incorrect, I am stuggling with getting this to validate PHP Code:
there is no attribute "background" an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified there is no attribute "alt" Hopefully this is enough information. Thanks |
#2
|
||||
|
||||
-Wrap your cellpadding and cellspacing values in double quotes.
-Replace background="X" with style="background: X" -Replace alt attribute with summary attribute The rest should be OK for XHTML transitional. |
#3
|
|||
|
|||
HTML Code:
<table bgcolor="http://www.cmoc.ca/images/forum/mainbg.jpg" cellspacing=0 cellpadding=0 align="center" width="760" SUMMARY="Ford Mustang Canada">
|
#4
|
|||
|
|||
Thanks for your help guys, almost there.
I can't believe I missed the quotes since I found them missing earlier in the footer The only problem I have now is this Replace background="X" with style="background: X" Just to explain what happens it seem the jpg in the original code gets stretched to fill part of the header in the height, when I change it to the code suggested it passes the XHTML but the jpg does not get streched One bit of code that follows the code I posted above that may give a clue is this <tr valign="top"><td> da420 when using bgcolor that code it fills it with a color instead of the jpg |
#5
|
|||
|
|||
<a href="http://www.w3schools.com/css/css_background.asp" target="_blank">http://www.w3schools.com/css/css_background.asp</a>
but to strech youll need something like css background: #0A0B0C url(/images/bg.jpg) top left repeat-x; that may work as it is. or you can do something like background-image: url(/images/bg.jpg); background-repeat: repeat-x; etc.. |
#6
|
||||
|
||||
Oops, forgot the url() bit, thought that was obvious.
|
#7
|
|||
|
|||
Thanks for your help guys, got it all fixed up
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|