Separate CSS for body?

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 ...


Go Back   68 Classifieds Forums > General > HTML, CSS, and Design Help

 
LinkBack Thread Tools Display Modes
  #1  
Old 08-26-2007, 12:56 PM
Senior Member
 
Join Date: Jan 2007
Posts: 256
Rep Power: 13
Default Separate CSS for body?

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:
   <!-- // Content // -->
 
    
{* This includes the content portion *}
    {include 
file=$body}
 
   <!-- 
// End Content // --> 
Or do I place a call in home.tpl.php to achieve this?
__________________
v4.09 Developer
MKClassifieds


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
Reply With Quote
  #2  
Old 08-26-2007, 04:07 PM
civ's Avatar
civ civ is offline
Senior Member
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 655
Rep Power: 24
Default

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!
Reply With Quote
  #3  
Old 08-27-2007, 12:17 AM
Senior Member
 
Join Date: Jan 2007
Posts: 256
Rep Power: 13
Default

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)
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 01:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22