Does anyone know how the "Security updates and bugfixes available: Drupal 5.2 and 4.7.7 released" post has a different background than the rest of the posts? Right now this is what my page looks like http://www.thecrookstoncollection.com. Although the page is nice and simple, I'd like to have the first to posts highlighted a bit.

Does anyone know how I could do this, or have any alternate suggestions?

Thanks

Comments

pbarnett’s picture

Hi!

I notice from looking at your site with the help of the Firefox Web Developer plugin that the first two posts have been published as 'sticky at top of lists'.

This being the case, you could change their background by adding

.sticky {
  background-color: #fdd; /* or whatever suits! */
}

to your style.css.

Alternatively, the id's for the two posts are #node-29 and #node-7, so provided that these posts are a permanent fixture, you could have different colours by adding

#node-7 {
  background-color: #ddf; /* or whatever suits! */
}
#node-29 {
  background-color: #fdd; /* or whatever suits! */
}

Pete.

Anonymous’s picture

... that will come in handy.
Steve

Ev0’s picture

I tried changing the background colour in the style.css under public_html/themes/garland/ and nothing happened... Is there a style.css file I am suppose to edit elsewhere, or something special I have to do since I'm using garland?

pbarnett’s picture

Hi again!

I added the following at the end of mysite/themes/garland/style.css

.sticky {
  background-color: yellow;
}

and hit the 'reload current page' button in FireFox and it definitely worked.

I used FireFox Web developer to look at the CSS for your front page, and it appears to be using http://www.thecrookstoncollection.com/themes/garland/print.css; try modifying that...

Pete.