Question : Accessing the .front AND .logged-in divs in Drupal

Hello,

I am trying to configure the CSS with a drupal site while logged/not-logged-in.  So there are some CSS classes associated with the <body> tag.  One is 'front' the other is' logged-in'.  For some reason I can only use one of those classes, but I really want to use both of the classes so that if the user is on the front page AND logged-in, the site is configured with CSS as I wish.

I've attached a screenshot from Firebug.

Thanks.

Attachments:
 
CSS .front AND .logged-in
CSS .front AND .logged-in
 

Answer : Accessing the .front AND .logged-in divs in Drupal

@EricBourland
I think the problem is that while Drupal applies both the classes front and logged-in to the body of his pages, his CSS doesn't seem to apply.

@ModifyMe
I don't think anything in your question is unclear, but after reading on the link Thomas posted, it seems like my suggestion above is correct. If it is not then I don't think I understand the question.

I haven't taken the time to try this on a Drupal site, but the code below works for me in firefox, and the text becomes red when both classes are present, and black if only one is. If this still doesn't work for you, then I believe the issue is with caching or something similar, rather than CSS/the browser/Drupal.

What browser are you trying this with?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
<html>
<head>
<style>
body.class1.class2 {
    color: red;
}
</style>
</head>
<body class = "class1 class2">
    This becomes red
</body>
</html>
Random Solutions  
 
programming4us programming4us