php forum
php mysql forum
php mysql smarty
 
Topic Options
#315785 - 09/23/07 01:45 PM Help needed with stylesheet
mikey81 Offline
Lurker

Registered: 09/20/07
Posts: 5

   Help needed with stylesheet to Del.icio.us Add to del.icio.us
  Digg Help needed with stylesheet Digg it
Hi, I tried to change my stylesheet and I was partly succesfull.

I just can't seem to find where the colors of the buttons in the picture below are defined.

I want to chaneg to colors of the buttons only.

Can someone give me some pointers please?



Edited by mikey81 (09/23/07 01:46 PM)

Top
#315786 - 09/23/07 03:04 PM Re: Help needed with stylesheet [Re: mikey81]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5123
Loc: Portland, OR, USA
As stated over at central; these gradients are controlled by the "tdheader" class in the stylesheet editor.

You can use various tools in firefox (such as the colorpicker) which will display the class(es) for specific areas.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#315797 - 09/24/07 12:23 PM Re: Help needed with stylesheet [Re: mikey81]
sirdude Offline
Bada bing!
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: SoCal
Originally Posted By: mikey81
I want to chaneg to colors of the buttons only.

Can someone give me some pointers please?


sure i can. here's what you do.

i'll give an example where you change just the 'Forum Options' button.

open up /templates/default/postlist.tpl

find:
Code:
<table width="100%" class="t_standard">
<tr>
<td class="tdheader" style="cursor: pointer" id="options_control" onclick="showHideMenu('options_control','options_popup')">
{$lang.FORUM_OPTIONS} <img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</td></tr>
</table>


note where it says 'class="tdheader"' .. that's the style that is shared by all. since you want to be specific for just buttons, you can use the 'Cascade' in Css and add another class like so:
Code:
<table width="100%" class="t_standard">
<tr>
<td class="tdheader muhaha" style="cursor: pointer" id="options_control" onclick="showHideMenu('options_control','options_popup')">
{$lang.FORUM_OPTIONS} <img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</td></tr>
</table>


now all you have to do is go to your styles editor and edit the style in questions.

go down to the Extra CSS section and paste this in it:
Code:
.muhaha {
background: hotpink;
color: #000;
}


for example. now when the browser renders that button, it cascades to the second class, which overrides the tdheader for background and color.

obviousely you aren't going with hotpink, but i use that as an example. also, you probably aren't going to use 'muhaha' either, but more likely a descriptive name like '.my-buttons'

you can do this for other parts of that template to style the other buttons as well.

now as for the pager stuff, it's a different story and once you get this first part, i can show you how to do your pager wink
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#315828 - 09/25/07 11:58 AM Re: Help needed with stylesheet [Re: sirdude]
mikey81 Offline
Lurker

Registered: 09/20/07
Posts: 5
Thx!

I have changed the file in your example and did the same with the pagecalculator. It now looks perfect.

Mike

Top


Who's Online
0 Registered (), 28 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 5
Mike L_dup1 4
Chris Bale 4
Ian_W 4

 

 

 
fusionbb message board php hacks