Comment on WordPress Theme Development by SEO Dave.

Stallion Responsive WordPress Theme Got your email you are a Stallion theme user for Stallion support go to the Stallion SEO WordPress Theme Support otherwise it gets confusing.

The Stallion theme style.css file isn’t used like it is with Talian

You’d need to add it to

style-delicate.css

to get the same effect as adding it to the Talian style.css file.

As you are currently using the Delicate colour scheme it’s style-delicate.css. If you change colours edit the css file for that colour scheme.

There are already CSS classes for center, left and right:

.align-left {
text-align: left;
}
.align-right {
text-align: right;
}
.align-center {
text-align: center;
}

also these you might find useful

.floatleft {
float: left;
}
.floatright {
float: right;
}
.adsspace {
padding: 5px 0 10px 0;
}
.centerad {
text-align: center;
margin: 0px;
padding: 10px 0 0 0;
}
.adscenter {
text-align: center;
margin: 0px;
padding: 5px 0 5px 0;
}
.fadright {
float:right;
padding: 0px 0px 6px 4px;
}
.fadleft {
float:left;
padding: 0px 4px 6px 0px;
}

Note: these won’t work for Talian users (yet: next Talian update will use the Stallion theme framework, after I release Stallion 6.3 will create Talian 6.3).

If you wanted something centering with a little padding above and below use class=”adscenter” just want centering class=”align-center”. Want something floating to the right class=”floatright”. These are built into all Stallion colour schemes, so you can switch colours and the alignment will remain.

To avoid editing the css files (makes it a pain to upgrade) if you want to add some styling for something within a post I’d add inline styling mixed with the built-in styling above. For example if you wanted something centering and the text red.

<div class="align-center" style="color:red;">
Content here
</div>

You can replace red with a colour code like #FF0000

Or you could go all inline

<div style="color:red;text-align:center;">
Content here
</div>

That will work with any theme since it’s all inline CSS.

David