RelentlessSkateshop Posted December 7, 2006 Posted December 7, 2006 In a html document, the stylesheet is linked to the document in the head like this: <link href="stylesheet.css" rel="stylesheet" type="text/css" /> How does oscommerce know what the link of the stylesheet is? There has to be similar code like what I posted here? Does anyone know where to find it? Has anyone ever tried to link separate stylesheets to individual page elements, like one to the header, one to column left, one to footer, etc? Is that possible? If not, why? If you say you can't do it, you're only fooling yourself.
bill110 Posted December 7, 2006 Posted December 7, 2006 How does oscommerce know what the link of the stylesheet is? in the head (example: catelog/index.php) <link rel="stylesheet" type="text/css" href="stylesheet.css"> you will see the style either in the html in the page or included in the code for individual element. example <td class="pageHeading"> is in the stylesheet as: TD.pageHeading, DIV.pageHeading (same styles for TD and DIV Example in the code $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', is here in the stylesheet TD.smallText, SPAN.smallText, P.smallText Don't see why you could'nt use multiple stylesheets. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
RelentlessSkateshop Posted December 7, 2006 Author Posted December 7, 2006 Rock on Bill. As they say in TX, yeehaw. If you say you can't do it, you're only fooling yourself.
RelentlessSkateshop Posted December 7, 2006 Author Posted December 7, 2006 wait, now I see the code you're talking about. But it has the doctype, html, and head elements in that file. Does that need to be in my header.php file for it to link to the new stylesheet, then? I'm assuming I wouldn't include the title and meta tags because my index page would take care of that. Am I right? If you say you can't do it, you're only fooling yourself.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.