News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Text Formatting

Started by Jojie, November 27, 2011, 07:25:36 AM

Previous topic - Next topic

Jojie

Hi, All.

I would like to edit my .css file and change my text formatting. I suppose a blogging platform would be more suited to what I am doing. But I want to keep a forum based site... (but I do use it more as a blogging platform).

Currently, when I put a post. I do something like this #size #color... If i keep doing this and happen to change my template where the colour the colour I have been choosing isn't suited to the template then I am screwed. So I would like to change this on the template level instead.

So  basically, If I choose a size.... then it will automatically do that colour or even the font size. How do I do this?  I am used to formatting h1, h2, etc.. but clueless on SMF bacause I can only see  font size xyz.. Any guide to point me towards the right direction would be grateful

floridaflatlander

I use the default SMF theme with changes

around line 172 I have this which is the standard I think. This sets the color on these tags and you'd change it for your site wide needs

h1, h2, h3, h4, h5, h6
{
   color: #000;
   font-size: 1em;
   margin: 0;
   padding: 0;
}

here is an example to change a class at a particular place on the forum.

.catbg, .catbg2, tr.catbg td, tr.catbg2 td, tr.catbg th, tr.catbg2 th
{
   /* for board page and main page, go figure */
   color: #fff;
   font-family: arial, helvetica, sans-serif;
   font-size: 1.1em;
   background-color: #003366;
}

Advertisement: