Advertise Here

Author Topic: Changing tabs with font colors instead of images  (Read 6698 times)

0 Members and 1 Guest are viewing this topic.

Offline Tash

  • SMF For Free Full Member
  • *
  • Posts: 157
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Changing tabs with font colors instead of images
« on: November 04, 2007, 07:03:39 pm »
Forum Url: http://coffeechat.smfforfree3.com
Hi, where in the CSS would I change the background color of the tabs? 
« Last Edit: February 27, 2008, 10:19:18 am by simply sibyl »

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Changing tabs with font colors instead of images
« Reply #1 on: November 05, 2007, 12:36:12 am »
Going to post the instructions first.   The code for the main and mirrortab section is after the instructions.

Instructions:

To change the background color of the main and mirror tabs:

Look for the following in the codes for the main and mirror tabs :
        background:  #5F81A0;   
Replace the color code with your own.


To change the border color of the main and mirror tabs:

Look for the following in the code for each of the main and mirror tabs and replace the color code with your own.
(note:  not all tabs will contain all 3 of these)
 
       border-left:  1px solid #696969;
       border-right:  1px solid #696969;
       border-bottom:  1px solid #696969;


To change the background color of the main and mirror active tabs

Look for the following in the codes for the main and mirror active tabs : 
       background: #98B2CB;   
Replace the color code with your own.


To change the border color of the main and mirror active tabs:

Look for the following in the code for each of the main and mirror active tabs and replace the color code with your own.
(note:  not all tabs will contain all 3 of these)
 
      border-left:  1px solid #696969;
      border-right:  1px solid #696969;
      border-top:  1px solid #696969;

Save it at this point to be sure you have the background and borders as you want them.
Once that is done go back in and go thru to change the color codes for the fonts.

* Keep in mind that although this does work the tabs will have a flat appearance to them because they are not graphic images and will look like the graphic below.     Change the border width if need be, and the border color to go with the rest of your stylesheet.

The tabs in this example have the borders set to 3px



Here is the code:

Replace the ENTIRE main and mirror tabs section with the following code:
( WARNING :   This is not the entire css.  This is ONLY the css for the tabs)

Code: [Select]

/* 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;
}
.maintab_back, .maintab_active_back
{
color: white;
text-decoration: none;
font-size:  9px;
vertical-align: top;
padding: 2px 6px 6px 6px;
font-family: tahoma, sans-serif;
}

.maintab_first
{
background: #5F81A0;
             border-left:  1px solid #696969;
             border-bottom:  1px solid #696969;
width: 10px;
}
.maintab_back
{
background: #5F81A0;
             border-bottom:  1px solid #696969;
}
.maintab_last
{
background: #5F81A0;
             border-right: 1px solid #696969;
             border-bottom: 1px solid #696969;
width: 8px;
}
.maintab_active_first
{
background: #98B2CB;
             border-left:  1px solid #696969;
             border-bottom:  1px solid #696969;
width: 6px;
}
.maintab_active_back
{
background: #98B2CB;
              border-bottom:  1px solid #696969;
             
}
.maintab_active_last
{
background: #98B2CB;
             border-right:  1px solid #696969;
             border-bottom: 1px solid #696969;
width: 8px;
}

/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
color: white;
text-decoration: none;
}

.maintab_back a:hover, .maintab_active_back a:hover
{
color: #e0e0ff;
text-decoration: none;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
color: white;
text-transform: uppercase;
vertical-align: top;
}
.mirrortab_back, .mirrortab_active_back
{
color: white;
text-decoration: none;
font-size: 9px;
vertical-align: bottom;
padding: 6px 6px 2px 6px;
font-family: tahoma, sans-serif;
}

.mirrortab_first
{
background: #5F81A0;
             border-top:  1px solid #696969;
             border-left:  1px solid #696969;
width: 10px;
}
.mirrortab_back
{
background: #5F81A0;
             border-top:  1px solid #696969;
}
.mirrortab_last
{
background: #5F81A0;
             border-top:  1px solid #696969;
             border-right:  1px solid #696969;
width: 6px;
}
.mirrortab_active_first
{
background: #98B2CB;
             border-top:  1px solid #696969;
             border-left:  1px solid #696969;
width: 6px;
}
.mirrortab_active_back
{
background: #98B2CB;
             border-top:  1px solid #696969;
}
.mirrortab_active_last
{
background: #98B2CB;
             border-top:  1px solid #696969;
             border-right: 1px solid #696969;
width: 8px;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
color: white;
text-decoration: none;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
color: #e0e0ff;
text-decoration: none;
}

« Last Edit: February 27, 2008, 10:19:39 am by simply sibyl »

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Tab Background
« Reply #2 on: February 27, 2008, 10:18:35 am »
Update to "Changing tabs with font colors instead of images"

You can do the borders of the tabs in a way that creates a double bordered look.  

Instead of using:    border-bottom: (or top, left, right)  1px solid #fontcolor;
                 Use:    border-bottom: (or top, left, right)  3px double #fontcolor;

Use the .tborder border color for the border color for the tabs.
Doing it this way gives it a double border that goes better with the rest of the forum:



What looks like a thin white area surrounding the tabs is actually a transparent area.
All tabs were set to   3px double #696969   (same color as .tborder border color)

Looks best on stylesheets that have a lighter background color,  a very light tborder background color, and a dark tborder border color.   



« Last Edit: February 27, 2008, 10:21:10 am by simply sibyl »

Offline Defil3d v2

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Changing tabs with font colors instead of images
« Reply #3 on: April 01, 2008, 07:47:50 pm »
how do we put a picture in the tabs?!?

like flames

Offline -A-

  • SMF For Free Sponsors
  • *
  • Posts: 877
  • Don't be afraid.
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Search Apple User Mobile User Windows User Topic Starter
Re: Changing tabs with font colors instead of images
« Reply #4 on: April 01, 2008, 07:50:22 pm »
You will have to make an image like that, with the background as flames.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Changing tabs with font colors instead of images
« Reply #5 on: April 01, 2008, 08:00:22 pm »
You would need to make 12 images.   

The tabs at the top of the forum (home, help, search)  use 6 of them.
3 are for the main tabs, 3 are for the main active tabs

The other 6 are the mirror tabs  (places like "Mark all Messages as Read")
3 are for the mirror tabs, 3 are for the mirror active tabs

The css for the tabs is in the bottom part of the css.

If you replace the graphics you may also need to change the font colors.

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #6 on: July 24, 2010, 10:50:41 pm »
this still has me boggled. i did all the changes and went though the instructions extremly cafeful and it doesn't even change.
NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #7 on: July 25, 2010, 07:35:21 pm »
can someone plz help me. i followed all instructions and it does not work.
NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #8 on: July 25, 2010, 09:03:48 pm »
o saw the problem
NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #9 on: July 25, 2010, 09:05:17 pm »
i forgot to fill this part out, when i did, it changed:

Code: [Select]
/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
color: white;
text-decoration: none;
}

.maintab_back a:hover, .maintab_active_back a:hover
{
color: #e0e0ff;
text-decoration: none;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
color: white;
text-transform: uppercase;
vertical-align: top;
}
.mirrortab_back, .mirrortab_active_back
{
color: white;
text-decoration: none;
font-size: 9px;
vertical-align: bottom;
padding: 6px 6px 2px 6px;
font-family: tahoma, sans-serif;
}

.mirrortab_first
{
background: #5F81A0;
             border-top:  1px solid #696969;
             border-left:  1px solid #696969;
width: 10px;
}
.mirrortab_back
{
background: #5F81A0;
             border-top:  1px solid #696969;
}
.mirrortab_last
{
background: #5F81A0;
             border-top:  1px solid #696969;
             border-right:  1px solid #696969;
width: 6px;
}
.mirrortab_active_first
{
background: #98B2CB;
             border-top:  1px solid #696969;
             border-left:  1px solid #696969;
width: 6px;
}
.mirrortab_active_back
{
background: #98B2CB;
             border-top:  1px solid #696969;
}
.mirrortab_active_last
{
background: #98B2CB;
             border-top:  1px solid #696969;
             border-right: 1px solid #696969;
width: 8px;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
color: white;
text-decoration: none;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
color: #e0e0ff;
text-decoration: none;
}

NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Changing tabs with font colors instead of images
« Reply #10 on: July 25, 2010, 10:04:09 pm »
94AmTranVolunteer -  are you all set with it now? 
Sorry for not getting back with you sooner today. I've been pretty busy.

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #11 on: July 25, 2010, 10:37:01 pm »
yes, the only thing is that how can i change all that is above the tabs
NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #12 on: July 26, 2010, 06:54:10 am »
Well, not anymore.

Somehow the CSS Code got deleted!
NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline 94AmTranVolunteer

  • SMF For Free Full Member
  • *
  • Posts: 106
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Changing tabs with font colors instead of images
« Reply #13 on: July 26, 2010, 07:06:58 am »
I fixed it hoping that the New CSS doesn't get deleted.
NOW ON CREATE-A-FORUM

Create your Own Forum FOR FREE at Create-A-Forum

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Changing tabs with font colors instead of images
« Reply #14 on: July 26, 2010, 01:41:22 pm »
yes, the only thing is that how can i change all that is above the tabs

Change the colors, background images, fonts?  Is that what you mean?
Explain more please  ;)

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
1910 Views
Last post September 24, 2007, 11:42:25 am
by Kimmie
14 Replies
2400 Views
Last post May 07, 2008, 04:28:41 am
by Celebrus
3 Replies
1169 Views
Last post August 03, 2008, 12:38:20 pm
by simply sibyl
11 Replies
3647 Views
Last post October 27, 2008, 01:08:52 pm
by Southeast_offroad
2 Replies
1410 Views
Last post December 22, 2008, 12:35:11 pm
by OutOfOrder