hi everybody
Im building my site http://www.pharcyde.dk/pharcyde_css with css and is trying to validate. But i get this message:
Please, validate your XML document first!
Line 50
Column 386
Element type "img" must be followed by either attribute specifications, ">" or "/>".
Ok cool ithink and i found a line wich ( ithink ) make the problems. The whole code is:
<!-- css start -->
<div id="background">
<div id="header_container">
<div id="stripes"></div>
<div id="logo"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/logo.gif" alt="" width="372" height="55" border="0" /></div>
<div id="random_header"></div>
<div id="com_description"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/companyprofile.gif" alt="" width="372" height="102" border="0" /></div>
</div>
<div id="lnews_container">
<div id="greyfade_down"></div>
<div id="lnews_background">
<div id="newsgfx"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/news.gif" alt="" width="85" height="15" border="0" /></div>
<div id="latestnews_php"><?php mosLoadModules ( 'latestnews' ); ?></div>
</div>
</div>
<div id="mid_container">
<div id="ln_spacer"></div>
<div id="maincontent"><?php mosMainBody(); ?></div> <------- here is the problem
<div id="grayfade_up"></div>
<div id="lgreen_spacer"></div>
<div id="dgreen_spacer">
<div id="mambo_header"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/mambo.header.gif" alt="" width="74" height="30" border="0" /></div>
<div id="previous_header"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/previous.header.gif" alt="" width="105" height="30" border="0" /></div></div>
<div id="cont_greenbgr">
<div id="cont_contain_left">
<div id="mambowork_pic"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/mambowork.gif" alt="" width="364" height="170" border="0" /></div></div>
<div id="cont_contain_right">
<div id="previouswork_pic"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/previouswork.gif" alt="" width="364" height="170" border="0" /></div></div>
</div>
<div id="enterb_bgr">
<div id="enter_button_left"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/enter.gif" alt="" width="53" height="15" border="0" /></div>
<div id="enter_button_right"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/enter.gif" alt="" width="53" height="15" border="0" /></div></div>
<div id="dg_spacer"></div>
<div id="dgreen_spacer_last">
<div id="contact_header"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/contact.header.gif" alt="" width="56" height="30" border="0" /></div>
<div id="misc_header"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/misc.header.gif" alt="" width="36" height="30" border="0" /></div></div>
<div id="mail_green_bgr">
<div id="mail_pic"></div></div>
<div id="misc_green_bgr">
<div id="aboutme_pic"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/aboutme.gif" alt="" width="364" height="119" border="0" /></div>
<div id="freestuff_pic"><img src="<?php echo $mosConfig_live_site;?>/templates/pharcyde/images/freestuff.gif" alt="" width="364" height="119" border="0" /></div></div>
<div id="dg_spacer_last"></div>
<div id="footer">Copyright 2000 - 2005 by Pharcyde. All rights reserved</div>
</div>
</div>
<!-- css end -->
If i took this line:
<div id="maincontent"><?php mosMainBody(); ?></div>
and simply deleted it ( or only the php code ) it would validate ??......maybe you can see some more, because i need the php code to be included.
Thanks
Bingster
validate problem ( im lost )
Firstly the link at the top doesn't work so I can't check for myself. The code you have pasted looks a right mess. also please use the spellcheck button its not that hard
??
just copy the code in wordpad and it looks just fine, and no link is up and down because im trying to locate the problem.
validate problem ( im lost )
I can't diagnose the problem without the whole page, I am aware of the fact that the code you have pasted can be copied into wordpad or any other text editor it is still a jumble.
I also need the whole page so that I can revalidate it to see the problem for myself
Thomas Willmot
ok
it´s online now Thomas
Thanks
validate problem ( im lost )
ok problem seems to be the fact that there is no space before the width in the following code on line 48
<img src="http://pharcyde.dk/pharcyde_css/images/stories/asterisk.png"width="70" height="67" align="left" hspace="6" alt="Another logo" title="Another logo" border="0" />
it should read
<img src="http://pharcyde.dk/pharcyde_css/images/stories/asterisk.png" width="70" height="67" align="left" hspace="6" alt="Another logo" title="Another logo" border="0" />
there might be more problems this is just the first one i found
hi tom
hi Thomas
omg, you know the code you just pasted is actually not from my css, but is from a code that belongs to mambo cms system itself. It turns out ( the error you pointed out ) was from bad code from cms and not me.
It validates now....TY
bingster
validate problem ( im lost )
no problem mate
good looks with your cms
T Willmot
validate problem ( im lost )
bingster,
Congrats it all appears to validate ok, just two little problems ;
check that you are offering a generic font family last, for all font-family declarations and loose the ;
<?xml version="1.0" encoding="iso-8859-1"?>
line from the beginning of the page , this will be throwing IE into "Quirks Mode" which is not something you want, it's not required anyway.
Hugo.
hi
hi Hugo
Yeah i noticed the generic thing, i will fix it today. And about the <?xml version="1.0" encoding="iso-8859-1"?> code...ups, i dident know so many thanks for your help m8