FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Add Custom CSS Styles?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Add Custom CSS Styles? [message #1397 is a reply to message #1396] Thu, 11 April 2002 21:49 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
snafu wrote on Thu, 11 April 2002 5:31 PM

I tried this out, and it worked for 1 out of 4 of my new styles. I created the following styles in header_1.inc and header_4.inc:

th { /* label here */
foo:bar;
}
th a:link { /* label here */
foo:bar;
}
th a:visited { /* label here */
foo:bar;
}
th a:hover { /* label here */
foo:bar;
}

THe first one worked. The other three were saved through subsequent uses of the style manager, but the actual style rules were erased, leaving an empty selector:

th a:link { /* label here */

}

I tried rearranging their order, but these same three would be erased every time. I also checked their syntax and made sure all beginning and ending brackets were correct, etc, but I continued to get the same behavior.

My theory is that these styles are being emptied out because their selectors are contextual (i.e. multiple elements separated by spaces) and the php code that parses the styles must be tripping over the spaces in the contextual selectors. Also, none of the style selectors in the file are contextual except for these three.


I believe the space in the class name is causing the style parser a problem. I'll check the code and let you know.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Level Manager Error
Next Topic: Problem in return to parent
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 01:03:37 GMT 2024

Total time taken to generate the page: 0.04717 seconds