A problem with changing style.css
Posted: Sun Mar 16, 2008 8:37 pm
Hi there.
I'm using the default theme of s9y which is carl_contest I think. I wanted to add a nicer look to my blog when posting code snippets via <pre> tags.
Something like to get a box around the code and a different background color to separate it more from the text.
What's funny is, when adding the above code at the top of style.css, nothing happens. No dashed borders around the <pre> contents.
But when I add something meaningless like a non-existing tag above all this, it's working and the dashed box is shown.
Does anyone have an idea what's the cause for this? I don't (but I'm a css newbie anyway...).
I'm using the default theme of s9y which is carl_contest I think. I wanted to add a nicer look to my blog when posting code snippets via <pre> tags.
Something like
Code: Select all
pre {
border: 1px dashed #000000;
padding: 10px;
background-color: #f1f6fb
}What's funny is, when adding the above code at the top of style.css, nothing happens. No dashed borders around the <pre> contents.
But when I add something meaningless like a non-existing tag above all this, it's working and the dashed box is shown.
Code: Select all
meaningless_stuff { }
pre {
border: 1px dashed #000000;
padding: 10px;
background-color: #f1f6fb
}