Jump to content

css does not display on server


tymoteusz3

Recommended Posts

I recently encountered a problem and wondered whether you guys knew what I am doing wrong.I am making a website using XHTML, PHP, and CSS styles, but i encountered a problem with the css styles showing for the files on my server (offline). (I have an offline server on my computer I test all the files on before I upload them-it runs apache like the remote one).Would someone be able to see what i did wrong?No css styles come up at all. I have included the index.php file and the main_css.css file

<?phperror_reporting(0);require_once('config.inc.php');require_once('core.inc.php');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><!-- created by interwebcomputers.com for interwebcomputers.com Timothy Patrick tcsp1900@hotmail.com !--><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Small Business Hosting by InterWeb</title><link href="main_css.css" rel="stylesheet" type="text/css" /><style type="text/css"><!--#Layer1 { position:absolute; left:33px; top:300px; width:56px; height:11px; z-index:1;}#fantasticpo { position:absolute; left:506px; top:561px; width:193px; height:21px; z-index:1;}#cpanel_frontpage { position:absolute; left:478px; top:497px; width:246px; height:14px; z-index:2;}--></style><script type="text/javascript" language="Javascript"><!-- function focus(){ document.whoisForm.domainForm.focus(); }--></script><script type="text/JavaScript"><!--function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}}function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_setTextOfLayer(objName,x,newText) { //v4.01 if ((obj=MM_findObj(objName))!=null) with (obj) if (document.layers) {document.write(unescape(newText)); document.close();} else innerHTML = unescape(newText);}//--></script></head><body onload="MM_preloadImages('images/btns_buy_01_over.gif','images/btns_buy_01_over copy.gif','images/btns_learn_01_over.gif'); focus()"><table width="700" height="90" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#4E8BB7" id="banner_picture'"> <tr> <td width="353" align="center" valign="top" bgcolor="#4983B4"> <p align="left" class="price_first_digits"><img src="images/banner_logo.gif" width="353" height="109" /></p> </td> <td width="347" align="center" valign="top" bgcolor="#4983B4"><p>Please enter the domain name, and select an extension.</p> <form name="whoisForm" id="whoisForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input name="domainForm" type="text" id="domainForm" value="<?php showPrevious(); ?>" /> <select name="extForm" id="extForm"> <?php /* This shows the domain extensions in the drop-down box. */ formExtensions(); ?> </select> <input name="submitForm" type="submit" id="submitForm" value="Check" /> </p> </form> <?php /* This shows the domain available/unavailable message, and the whois results. */ domainResults(); ?></td> </tr></table><table width="700" height="20" border="0" align="center" cellpadding="0" cellspacing="0" id="links"> <tr align="center" valign="top" bgcolor="#B4C8D9"> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="home"> <param name="movie" value="home.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="home.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#000000"></embed> </object></td> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="hosting plans"> <param name="movie" value="hosting_plans.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="hosting_plans.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#000000"></embed> </object></td> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="software"> <param name="movie" value="software.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="software.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#000000"></embed> </object></td> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="company"> <param name="movie" value="company.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="company.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#000000"></embed> </object></td> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="support"> <param name="movie" value="support.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="support.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#000000"></embed> </object></td> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="Login"> <param name="movie" value="login.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="login.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#000000"></embed> </object></td> </tr></table><table width="700" height="150" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECECE4"> <tr> <td width="194" height="24" bgcolor="#B4C8D9"> </td> <td width="229" bgcolor="#B4C8D9"> </td> <td width="277" bgcolor="#B4C8D9"> </td> </tr> <tr bgcolor="ECECE4"> <td height="150" align="left" valign="top" bordercolor="#EBE9ED" bgcolor="ECECE4"><p><img src="images/header_image.gif" width="194" height="150" /></p> </td> <td align="left" valign="top" bordercolor="#EBE9ED" bgcolor="ECECE4"><p align="left"><img src="images/special_plan_01.gif" width="210" height="46" /></p> <p align="left" class="price_special_plan">Starting at <span class="price_first_digits">$3.95</span> per month </p> <p align="left"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','images/btns_buy_01_over.gif',1)"><div align="center"><img src="images/btns_buy_01.gif" name="Image14" width="75" height="20" border="0" id="Image14" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','images/btns_buy_01_over copy.gif',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','images/btns_buy_01_over.gif',1)"></a> <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','images/btns_learn_01_over.gif',1)"><img src="images/btns_learn_01.gif" name="Image15" width="75" height="20" border="0" id="Image15" /></a></p></div></td> <td align="left" valign="top" bordercolor="#EBE9ED" bgcolor="ECECE4"><p align="left" class="women_ad"><img src="images/check1.gif" alt="1" width="16" height="16" /> 300 MB of Disk Space </p> <p align="left" class="women_ad"><img src="images/check1.gif" alt="1" width="16" height="16" /> 2000 MB of Monthly Transfer</p> <p align="left" class="women_ad"><img src="images/check1.gif" alt="1" width="16" height="16" /> Unlimited Email Accounts</p> <p align="left" class="women_ad"><img src="images/check1.gif" alt="1" width="16" height="16" /> Unlimited FTP Accounts </p></td> </tr></table><table width="700" height="20" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="24"><img src="images/main_header.gif" width="700" height="25" /></td> </tr></table><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#4E8BB7"> <tr> <td class="index_product_border" width="172" height="350" align="left" valign="top" bgcolor="#B4C7D8"><p><img src="images/left_product_list.gif" width="174" height="22" /></p> <p align="left" class="junk"><img src="images/cross_box.gif" width="11" height="12" /><a href="index.html" class="prod_bold"> Business Web Hosting</a> -Interweb Starter Plan -Interweb Basic Plan -Interweb Pro Plan</p> <p align="left" class="junk"><img src="images/cross_box.gif" width="11" height="12" /> Blog Hosting </p> <p align="left" class="junk">- Easy Blog Plan</p> <p align="left" class="junk"><img src="images/cross_box.gif" width="11" height="12" /> Web Design - Bronze - Silver - Gold </p> <p> </p> <p> </p> <p> </p> <p align="center"> </p></td> <td class="second_tdtag" width="251" height="350" align="center" valign="top" bgcolor="#ECECE4"><p align="center"><img src="images/special_offer.gif" width="185" height="33" /></p> <p class="bolded_section_second">Get your site set up quickly</p> <p align="center" class="words_in_middle_section_homepage"><span class="words_in_middle_section_homepagebold">The internet is changing fast</span>. No longer is website setup only for those knowledgable in computer programming. We at Interweb realise that you do not have time to try program your website. This is why Interweb features the award winning control panel, <span class="words_in_middle_section_homepagebold">Cpanel</span>, which performs hundreds of complex server operations in a few seconds. <br /> Also included in all our web hosting packages is the<span class="words_in_middle_section_homepagebold"> Fantastico de Luxe suite</span>, an automated software installer that not only installs over 50 web applications in seconds, but can also does not require setting up MySQL databases, importing structure, chmoding files and other tasks associated with installations. This means you can get your site up in no time at all.<br /> <span class="words_in_middle_section_homepagebold">What does this mean?</span> You can spend more time with your business, saving time and money.</p> <p align="center"><img src="images/bronze.gif" width="100" height="100" /></p> <p align="center"> </p></td> <td class="second_tdtag" width="277" align="center" valign="top" bgcolor="#B4C7D8"><p><img src="images/template_01.jpg" width="248" height="109" /></p> <p align="left"> <p><a href="http://www.cpanel.net/index.html"><img src="images/cpanel_logo.jpg" width="118" height="34" border="0" class="software_banner_no_margin" onmouseover="MM_setTextOfLayer('cpanel_frontpage','','<div align="center" class="layer_dropdown">\nThe award winning control panel is standard with all our hosting packages</div>')" onmouseout="MM_setTextOfLayer('cpanel_frontpage','','')" /></a> <a href="www.microsoft.com/Frontpage/"><img src="images/frontpage.gif" width="109" height="34" border="0" class="software_banner_no_margin" onmouseover="MM_setTextOfLayer('cpanel_frontpage','','<div align="center" class="layer_dropdown">\nAll our hosting packages come with full FrontPage support</div>')" onmouseout="MM_setTextOfLayer('cpanel_frontpage','','')" /></a><a href="http://netenberg.com/fantastico.php"><img src="images/fantastico_symbol.gif" width="193" height="28" border="0" class="software_banner" onmouseover="MM_setTextOfLayer('fantasticpo','','<div align="center" class="layer_dropdown">\nAutomated Script Installer</div>')" onmouseout="MM_setTextOfLayer('fantasticpo','','')" /></a></p> <div align="center" style="width:125px;"><a href="http://www.webhostingstuff.com/verified/InterWebHosting.html" title="InterWeb Hosting" target="_blank"><img src="http://www.webhostingstuff.com/seal.gif" border="0" alt="InterWeb Hosting"></a><br><font style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;">Status Verified by</font><br><a href="http://www.webhostingstuff.com" title="We recommend affordable web hosting services by InterWeb Hosting" style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;" target="blank">Web Hosting Stuff</a></div></p> <p class="bolded_section_second">LIMITED OFFER </p> <p class="words_in_middle_section_homepagebold">All our hosting packages come with </p> <p class="words_in_middle_section_homepageitalic">100 FREE Web Templates</p> <p class="words_in_middle_section_homepageitalic">100 FREE Joomla Templates </p> <p> </p> <p><img class="software_banner_no_margin" src="images/partner_01.jpg" width="259" height="40" /></p></td> </tr></table><table width="700" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="24"><img src="images/body_main_footer.gif" width="700" height="25" /></td> </tr> <tr> <td height="24"> </td> </tr></table><p> </p><p> </p><p> </p></body></html>
AND NOW MAIN_CSS.CSS
/* CSS Document */body {background:#000000};/*old css used for creation */.test {background-color:#CCCC00};.junk {color:#FFFFFF};/* Now this is the main CSS part of the document */.index_product_border {border:#4E8BB7; border:solid; border:thin};.women_ad {color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; font-size:14px; margin-left:10px};.price_special_plan {color:#000000; font-size:14px; font-family:Arial, Helvetica, sans-serif; font-weight:bold};.price_first_digits {color:#FF0000; font-size:22px; font-weight:bold; font-family:Arial, Helvetica, sans-serif};.price_seconf_digits {color:#FF0000; font-size:20px; font-weight:bold; font-family:Arial, Helvetica, sans-serif};/* SECOND BAR NEAR PRODUCT BAR STYLES *//*image*/.second_tdtag {border:#B2C0CE; border:solid; border:thin};.software_banner {margin-top:20px; border:#4E8BB7; border:solid; border:thin};.software_banner_no_margin {border:#4E8BB7; border:solid; border:thin};/* PRODUCT BAR STYLES*****style for product bar first names */.prod_bold {color:#232323; font:Arial, Helvetica, sans-serif; font-size:11px; font-weight:bold; text-decoration:none}.prod_bold:visited {color:#232323; font:Arial, Helvetica, sans-serif; font-size:11px; font-weight:bold; text-decoration:none}.prod_bold:hover {color:#CC0000; font:Arial, Helvetica, sans-serif; font-size:11px; font-weight:bold};/*style for the sublinks on product page */.style_product {color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:11px; margin-left:20px; text-decoration:none};/* second section on home page */.bolded_section_second {color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:14px; font-style:normal; font-weight:bold};.words_in_middle_section_homepage {color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:400};.words_in_middle_section_homepagebold {color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold};.words_in_middle_section_homepageitalic {color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; font-style:italic};.layer_dropdown {color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:11px; font-weight:bold; font-style:italic};
Link to comment
Share on other sites

  • 2 weeks later...

Well, this may make you feel stupid so.. here is your issue:

;

after every closing curly braces you have that.. but it should be inside of the brace. This is your problem.. change it in your main_css.css file and it will work :).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...