SimplePortal
Customization => Custom Coding => Topic started by: lc62003 on May 25, 2011, 11:13:47 AM
-
I've been digging around here for quite some time trying to understand how to use CSS for an individual block. Been through the tutorials, searched, etc. I can't even seem to make font bold. :'( I have created a class in index.css, but now what? Could someone please put up a GOOD explanation how to do this stuff (not just some code to solve this one issue)? Does this only work for custom html/php blocks, or will it work for any block? Perhaps several examples? Thanks for your considerations. :)
-
for individual block use custom style options under each block
-
for individual block use custom style options under each block
And do what exactly?
-
i guess it depends on what your trying to do..??
that attached picture shows the area in each block were you can enter the styles for either the header or body of each block...
so if you have created a class for the Block all you need to do is enter it in the Custom Body Class: or Custom Title Class: depending on were you would like to change the class...!!
you can see the default class, or chose any of the default class through the drop downs..
if your using a custom BBC / PHP / HTML block then you can do all the class comands for larger or bolder text in those blocks when you type the text. !!
or even click/tick the box at the bottom for no CSS styles...
hope this has helped a little..
-
OK, so let's say for example I paste this into index.css:
newblockbg
{
background: (../images/pic.png) repeat-x;
}
Then paste "newblockbg" into the Custom Body Class box. Am I on the right track?
-
it's a class
u r missing a dot before the class name
-
it's a class
u r missing a dot before the class name
Got it figured out. Thanks!!!
For anyone else reading.....dot before class name in css...and no dot in class name pasted into Custom Body Class. 8)