Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
I recently changed the header's css to address a recurring question whereby the header image had some extra space below it. <g>
add the following to your custom.css file:
#header h1,
#header h2
{
padding: 0px;
}
D.
It's an excellent question, rather than an ignorant one.
Long story short, the Semiologic theme is css-based and controlled by a couple of classes that are placed in the body tag. This allows to select the font, for example, with a single class, e.g.
<body class="verdana">
would make the font verdana everywhere because of a declaration like:
.verdana p
{
font-family: Verdana, Hevetica, Sans-Serif;
}
If you attempt to override the above using something like this:
p
{
font-family: Tahoma, Hevetica, Sans-Serif;
}
Both the '.verdana p' declaration and the 'p' declaration apply everywhere. Of the two, the 'p' declaration is less specific, and is never applied as a result of this.
If you add '.custom' to the 'p' tag declaration, you can override the default, i.e.:
.custom p
{
font-family: Tahoma, Hevetica, Sans-Serif;
}
In the case of our h1 and h2 tags in the header, the same style applies for all layouts, all skins, all fonts. They are declared as '#header h1' and '#header h2', so there is no need to precede them with a '.custom'.
I hope it all makes more sense to you now.
D.
1 to 7 of 7