Customizing SMF > Graphics and Templates

Avatar list in profile

(1/2) > >>

Aaron Nelsen:
Is there a quick and easy way I can change the background color of the list of avatars in the profile area?

Peter Duggan:
It's controlled by the 'select' class of Themes/default/style.css, but so are *all* the drop-downs, so you might need to introduce an extra class.

Peter Duggan:

--- Quote from: Peter Duggan on March 14, 2004, 06:22:43 AM ---so you might need to introduce an extra class.

--- End quote ---

Like 'select.avatar'!

Peter Duggan:
So search Themes/default/Profile.template.php for:


--- Code: ---<select name="cat" id="cat" size="10" onchange="changeSel(\'\');" onfocus="document.creator.avatar_choice[', $current_choice, '].checked = true;">';
--- End code ---

And replace with:


--- Code: ---<select class="avatar" name="cat" id="cat" size="10" onchange="changeSel(\'\');" onfocus="document.creator.avatar_choice[', $current_choice, '].checked = true;">';
--- End code ---

<edit>Missed the 'real' avatar list, so check out Reply #5 too!</edit>

Then search Themes/default/style.css for:


--- Code: ---select
{
font-size: 8pt;
font-weight: normal;
color: #000000;
font-family: Tahoma, arial, helvetica, serif;
}
--- End code ---

And replace with:


--- Code: ---select
{
font-size: 8pt;
font-weight: normal;
color: #000000;
font-family: Tahoma, arial, helvetica, serif;
}
select.avatar
{
background-color: red;
}
--- End code ---

Where 'red' is *your* background colour!

Aaron Nelsen:
Got it, thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version