Characters formatti...
 
Notifications
Clear all

Characters formatting

3 Posts
3 Users
0 Reactions
1,615 Views
(@guest1943)
Posts: 0
 

I would like to style the "description" for characters differently.  AFAICT, right now it uses the same CSS class as a story's text when displaying the list of stories by character.  Where can I change this?

(reposted in what I hope is the proper forum this time. oops.)


 
Posted : 02/11/2007 10:06 pm
(@itanshi)
Posts: 381
Reputable Member
 

extra_header.php


if ($current =="characters") {
echo "<link rel="stylesheet" type="text/css" href=""skins/SKIN_NAME/characters.css"" />";

characters.css


#story {
}

This is the description area as you surmised. You may overide certain inherited styles from style.css in here should you wish to. If it doesn't work, just ad !important before the ; at the end of an attribute in the css code.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 23/11/2007 2:31 am
(@tammy)
Posts: 2577
Member Moderator
 

You don't need the extra header.  Take a look at the included CSSZen skin as an example.  In the header.tpl there is a div with an id of {page_id}.  This is a container div around everything else.  On the characters page the page_id will be characters.  So in your styles.css you'd use


#characters #story {

}

 
Posted : 27/11/2007 6:54 pm
Share: