Why are my style sheets all listed on one line?
| From: | Freedomware | Date: | Fri, 30 Jan 2004 08:16:39 +0000 |
| Subject: | Why are my style sheets all listed on one line? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176308@lists.php.net to get a copy of this message | ||
I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint.
I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one looooong line, like this:
</script><link href="../../css/ref.css" rel="stylesheet" type="text/css"><link href="../../css/na/a1.css" rel="stylesheet" type="text/css" /><link href=".css" rel="stylesheet" type="text/css" /><link href="../../css/nations.css" rel="alternate stylesheet" type="text/css" title="Nations" />
It looks like they won't scroll across THIS page, so here's a more clear example:
<stylesheet1><stylesheet2><stylesheet3><stylesheet4>
What I want is a normal style sheet display, like this:
<stylesheet1>
<stylesheet2>
<stylesheet3>
<stylesheet4>
Do you know what causes this and if there's a fix? I posted some code from the head section and main page below.
Thanks!
* * * * * * * * * *
HEAD SECTION (included page; ../../includes/ref/head.php)
<?php
$todayDate = date("m-d-Y");
echo '<title>Freedomware > ' . $myname . '</title>';
echo '<meta name="description" content="' . $myname . ' versus Microsoft" />';
echo '<meta name="keywords" content="' . $myname . ' versus Microsoft" />';
echo '<meta name="mssmarttagspreventparsing" content="true" />';
echo '<meta http-equiv="content-Type" content="text/html; charset=iso-8859-1" />';
echo '<meta name="author" content="David Blomstrom" />';
echo '<script src="' . $periods . 'js/swapclass.js" type="text/javascript"></script>';
echo '<script language="JavaScript" src="' . $periods . 'js/sort.js"></script>';
echo '<script language="JavaScript" src="' . $periods . 'js/ss.js"></script>';
echo '<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>';
echo '<link href="' . $periods . 'css/ref.css" rel="stylesheet" type="text/css">';
if($includea1 == TRUE){
echo '<link href="' . $periods . 'css/' . $continentcode . '/a1.css" rel="stylesheet" type="text/css" />';} echo '<link href="' . $mycss . '.css" rel="stylesheet" type="text/css" />'; echo '<link href="' . $periods . 'css/nations.css" rel="alternate stylesheet" type="text/css" title="Nations" />'; echo '<link href="' . $periods . 'css/themes/peace.css" rel="alternate stylesheet" type="text/css" title="Peace" />'; echo '<link href="' . $periods . 'css/themes/war.css" rel="alternate stylesheet" type="text/css" title="War" />'; echo '<link href="' . $periods . 'css/themes/pat' . $countrycode . '.css" rel="alternate stylesheet" type="text/css" title="Patriotism" />'; echo '<link href="' . $periods . 'css/themes/nationalism.css" rel="alternate stylesheet" type="text/css" title="Nationalism" />'; echo '<link href="' . $periods . 'css/themes/corporate.css" rel="alternate stylesheet" type="text/css" title="Corporate" />'; echo '<link href="' . $periods . 'css/themes/conspiracy.css" rel="alternate stylesheet" type="text/css" title="Conspiracy" />'; echo '<link href="' . $periods . 'css/themes/media.css" rel="alternate stylesheet" type="text/css" title="Media" />'; echo '<link href="' . $periods . 'css/themes/atlantic.css" rel="alternate stylesheet" type="text/css" title="Atlantic" />'; echo '<link href="' . $periods . 'css/themes/indian.css" rel="alternate stylesheet" type="text/css" title="Indian" />'; echo '<link rel="SHORTCUT ICON" href="../../../../us/aaa/favicon.ico" />'; ?> * * * * * * * * * * MAIN PAGE <!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" xml:lang="en" lang="en"> <head> <?php $myname = 'Alaska'; $mynickname = 'Land of the Midnight Sun'; $mycode = 'ak'; $mywebring = '/world/na/us/ak/'; $myregion = 'north'; $mycountry = 'United States'; $mycontinent = 'North America'; $countrycode = 'us'; $continentcode = 'na'; $periods = '../../'; $tlperiods = '../'; $includea1 = TRUE; include ("../../includes/ref/head.php"); ?> <link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" href="<?php echo (!$sitestyle)?'aaa':$sitestyle ?>.css" /> <script language="JavaScript" src="../../../js/ss.js"></script> <link href="../../../xss/nations.css" rel="stylesheet" type="text/css"> <link href="../../../css/nations.css" rel="alternate stylesheet" type="text/css" title="Nations" /> </head>