Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
pMachine pro newb, help with CSS on stats tag
Posted: 10 November 2005 06:26 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  19
Joined  2005-11-10

I’m not new to CSS but I can’t figure out why the stats section on this page is not reflecting the .stats class in my CSS file:

http://www.parallaxwebdesign.com/projects/waterline/pmachine/blog.php

Here’s the HTML:

<!-- Various site statistics -->
<h3>STATS</h3>

<p class="stats">
Total entries: <?php weblog_stats("weblog"); ?><br />
Total comments: <?php comment_stats("weblog"); ?><br />
Total members: <?php member_stats("weblog"); ?><br />
</p>

Here’s the CSS:

p.stats {
font-size: 0.8em;
font-weight: normal;
margin: 4px 4px 4px 8px;
padding: 0px;
text-align: left;
}

No matter what attributes I change in CSS, nothing changes on the web page except the text-alignment.  Have I done something very obviously stupid here?  My CSS file is in the directory above pMachine and is referenced like this:

<link rel="stylesheet" type="text/css" href="../waterline.css">

I was able to change the appearance of the login links above - so I can’t figure out why this section is any different…
Please help!

Debbie

Profile
 
 
Posted: 11 November 2005 03:03 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  10866
Joined  2002-04-29

Debbie, if you view source for the page, you’ll see this:

<!-- <p class="stats">
Total entries: 2<br />
Total comments: 1<br />
Total members: 1<br /></p> -->

Notice the <!-- and the --> That means you’re in a comment, and that’s why it isn’t showing.

Also in your css I see

.stats

but not

p.stats

Or did you comment it out when testing?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Most recent build notes - 20080808

Profile
 
 
Posted: 11 November 2005 09:54 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  19
Joined  2005-11-10

Sorry - I commented it out and changed .stats back to p.stats while testing.

Here’s how it appears with the conditions noted in my first email (but with .stats in the php page and CSS).

http://parallaxwebdesign.com/projects/waterline/pmachine/blog.php

Debbie

Profile
 
 
Posted: 11 November 2005 10:02 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  10866
Joined  2002-04-29

Your CSS just has .stats, not p.stats

So if you get rid of the paragraph markup, does it work?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Most recent build notes - 20080808

Profile
 
 
Posted: 11 November 2005 10:08 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  19
Joined  2005-11-10

It looks the same whether it’s in <p></p> or not.  It’s like it’s not being affected by the CSS at all.

My HTML was class="stats", I changed it back.  It didn’t make any difference anyway!

Debbie

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 60663 Total Logged-in Users: 0
Total Topics: 73072 Total Anonymous Users: 0
Total Replies: 394009 Total Guests: 35
Total Posts: 467081    
Members ( View Memberlist )
Active Members: