This is a discussion on Separate CSS for body? within the HTML, CSS, and Design Help forums, part of the General category; The main content area is called via the body variable. Can this be controlled via it's own css? How would ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
The main content area is called via the body variable. Can this be controlled via it's own css?
How would I amend the following to call on a style sheet? PHP Code:
__________________
v4.09 Developer MKClassifieds "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
|
#2
|
||||
|
||||
|
You could just add your CSS inline (in home.tpl.php) or you could call a separate stylesheet in layout.tpl.php by checking to see which template was being included. For example:
{if $body == 'home.tpl.php'} <link rel="stylesheet" href="templates/{$smarty.const.MAIN_TEMPLATE}/newstyle.css" type="text/css" /> {else} <link rel="stylesheet" href="templates/{$smarty.const.MAIN_TEMPLATE}/style.css" type="text/css" /> {/if}
__________________
Civ's Modules (____NOW v4 COMPATIBLE____): � Stop Incomplete Listings! (proven revenue booster!) � Scam Filter (Just say no to Nigerians!) updated � Similar Listings (keep visitors longer) � Feedback Mod (testimonial builder) � Listing Status Reminder free! |
|
#3
|
||||
|
||||
|
Perfect! Thanks Civ'.
__________________
v4.09 Developer MKClassifieds "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Separate CSS for drop-down menu's? | michael | v4 Questions & Support | 5 | 09-15-2008 09:35 AM |
| Hosted package or one off fee and separate Host? | jj30 | Pre Sales Questions | 2 | 04-26-2007 04:45 PM |
| adding a separate category | manilaboy | v3.1 Questions & Support | 1 | 10-20-2006 08:40 AM |