SMF For Free Support Forum
Signup For Free Forum
December 05, 2008, 12:39:12 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Question about stylesheets  (Read 481 times)
0 Members and 1 Guest are viewing this topic.
Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« on: August 09, 2007, 02:23:38 pm »

Forum Url: http://fuedalworld.smfforfree3.com
How can i change these?

http://img528.imageshack.us/img528/3889/screentt1.png
(ScreenShot)
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #1 on: August 09, 2007, 02:39:44 pm »


Go here:  http://stylemanagertestsite.smfforfree2.com/index.php    It is a forum that is color coded to show you what each area is.    You can either use an image for those areas you are wanting to change or use a color code.   If you use an image remember to use a background color that is the same color as the image as the color will sometimes flash before the image loads.    The areas you asked about are:

The top area is catbg
The next two are titlebg
The ones after that are catbg

Look for the sections for catbg and titlebg in your css.
Either change the color code or replace the image urls there.
Logged

Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #2 on: August 09, 2007, 02:42:43 pm »

And when I edit the CSS, do I Click "Modify Style" or "Edit Style"
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #3 on: August 09, 2007, 02:45:38 pm »

And when I edit the CSS, do I Click "Modify Style" or "Edit Style"

After you edit the css (at the very bottom of the page) click the Modify Style button under the css.
Logged

Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #4 on: August 09, 2007, 02:47:23 pm »

And if I just want a color, do i take out the image URL?
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #5 on: August 09, 2007, 02:53:23 pm »

And if I just want a color, do i take out the image URL?

This is from the Default Stylesheet and is the titlebg area:

Code:
/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td
{
color: black;
font-style: normal;
background: url(images/titlebg.jpg) #E9F0F6 repeat-x;
border-bottom: solid 1px #9BAEBF;
border-top: solid 1px #FFFFFF;
padding-left: 10px;
padding-right: 10px;
}

If you want only a color you would do it like this:

Code:
/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td
{
color: black;
font-style: normal;
background-color:  #E9F0F6;
border-bottom: solid 1px #9BAEBF;
border-top: solid 1px #FFFFFF;
padding-left: 10px;
padding-right: 10px;
}

Note:   Lets say you change the titlebg background to black   (#000000)
          You will need to change the font color so that it can be seen.
          Change color: black;   to the color you want

Do the same for that catbg area.   Its down below the titlebg area and looks like this:
(be sure to change both areas)

Code:
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
background: url(images/catbg.jpg) #88A6C0 repeat-x;
color: #ffffff;
padding-left: 10px;
padding-right: 10px;
}
.catbg2 , tr.catbg2 td
{
background: url(images/catbg2.jpg) #A1BFD9 repeat-x;
color: #ffffff;
padding-left: 10px;
padding-right: 10px;
}
« Last Edit: August 09, 2007, 02:59:54 pm by simply sibyl » Logged

Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #6 on: August 09, 2007, 03:01:42 pm »

Simply Sibyl:
Note:   Lets say you change the background to black   (#000000)
          You will then want to change the font color so that it can be seen.
           Change color: black;   to the color you want
=========================================
I want this color: #009900

?Confused.
Logged

Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #7 on: August 09, 2007, 03:04:56 pm »

Code:
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
background: url(http://www.smfboards.com/Themes2/default/images/catbg.jpg) #009900 repeat-x;
color: #009900;
padding-left: 10px;
padding-right: 10px;
}
.catbg2 , tr.catbg2 td
{
background: url(http://www.smfboards.com/Themes2/default/images/catbg2.jpg) #FFFF00 repeat-x;
color: #0000FF;
padding-left: 10px;
padding-right: 10px;

Thats what i did and nothing changed.
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #8 on: August 09, 2007, 03:08:16 pm »

Do this and if you need a different font color change the #ffffff in both places in this code

Refresh your browser after you click Modify Style to see the changes.


Code:
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
background-color: #009900;
color: #ffffff;
padding-left: 10px;
padding-right: 10px;
}
.catbg2 , tr.catbg2 td
{
background-color: #009900;
color: #ffffff;
padding-left: 10px;
padding-right: 10px;
}

Logged

Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #9 on: August 09, 2007, 06:34:09 pm »

Thank you so much sibyl! I created my first stylesheet, which I will post here later on, (when i have nothing to do).
Logged

BlueButterfly
SMF For Free Member
*
Offline Offline

Posts: 41


View Profile
« Reply #10 on: August 10, 2007, 07:58:07 am »

This is really helpful to me too Sibyl.  I've wondered how you can change those areas, now i know.
Logged
Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #11 on: August 10, 2007, 09:55:32 am »

One More Question- How do I change the color of the tab background color? Or where can I find it in the CSS
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #12 on: August 10, 2007, 11:15:19 am »

One More Question- How do I change the color of the tab background color? Or where can I find it in the CSS

Tabs are in the section that starts with the following, goes all the way to the bottom of the css to just before the Ajax Notifier section:

/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last
{
   color: white;
   text-transform: uppercase;
   vertical-align: top;
}


The tabs are graphic images.   
To change those you  need to make new images and replace the urls in the css.
Then, if need be, you change the font colors to go with the new tab colors. 

There are a total of 12 tab images.   

There are 6 maintab images: 
maintab_first, maintab_back, maintab_last
maintab_active_first, maintab_active_back, maintab_active_last

There are 6 mirrortab images:
mirrortab_first, mirrortab_back, mirrortab_last,
mirrortab_active_first, mirrortab_active_back, mirrortab_active_last

(The "active" tabs are those that you see when you mouseover a tab.)

When you are modifying a style if you look at the top section you can see the graphics there.  You could download them from there, and use a graphics program to change the colors of them.   There are transparent areas so you would need to save them as a transparent .gif   (or a png if you dont mind that some browsers (IE6 for instance) that do not support png transparency)    Upload them to Photobucket,etc.. get the urls and replace them in the css.



Option 2:

Tabs can also be done as "links" instead of graphics.
You replace the graphic image urls with color codes.
 
This stylesheet has links instead of tabs -  Dark Aqua Marble   Click the thumbnail on that page to see how the tabs are done.

Look at the section of the css for the tabs and compare it to the default stylesheet and you will see how it is done.       
( plus many others you can find in the stylesheet index-  Stylesheet Index )

 
« Last Edit: August 10, 2007, 11:18:35 am by simply sibyl » Logged

Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 78



View Profile WWW
« Reply #13 on: August 10, 2007, 11:24:16 am »

Thanks Sibyl. I appreciate it.
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #14 on: August 10, 2007, 11:25:01 am »

This is really helpful to me too Sibyl.  I've wondered how you can change those areas, now i know.

BlueButterfly you are welcome

I do have a tip about changing the graphic image for the catbg and titlebg areas.
When you make the new images keep in mind that you need to do the following:

Make the image height taller then the default images are.
Depending on the image (lets say it is a gradient) - get the color code for the very bottom of the image and use that color code as the background color for that section.

Reason for doing so:   
Ever notice on some forums when there is a large logo put in the logo image url that you see a part of the graphic image under the logo then another color under it?   

That is because the graphic is too "short" in height and/or the color code for the background underneath the graphic either does not match or is not the same as the bottom of the graphic so that it blends well if that area is filled with a large image.
« Last Edit: August 10, 2007, 11:27:45 am by simply sibyl » Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.26 seconds with 17 queries.