Razz
Fri 8th Jun '01, 11:29am
I have seen quite a few requests for users who want gradients in their category headers.
I have found a simple way of doing it without altering any templates.
Modify your styles and where it asks for the category background colour add this exactly as it is below, but substituting the #000000 for your current colour.
#000000" background="/images/bar.gif
Now make a gradient thats 1 pixel wide and 40 pixels tall and name it bar.gif, upload it to your images directory.
Every page that uses the category headers will now use the gradient also.
One more thing you might like to do is manually edit the Head Insert code and find the "SCROLLBAR-BASE-COLOR:" line, because it shares the category background colour, it will stop working. Just add the colour manually.
e.g.
SCROLLBAR-BASE-COLOR: #000000;
where #000000 is your category background colour.
Sorry if this is a bit vague but im no coder :)
So far i havent found any problems in doing it this way at all.
Hope this has helped someone.
PS. I have attached an example gradient, its not the best of colours but you can easily change it :)
I have found a simple way of doing it without altering any templates.
Modify your styles and where it asks for the category background colour add this exactly as it is below, but substituting the #000000 for your current colour.
#000000" background="/images/bar.gif
Now make a gradient thats 1 pixel wide and 40 pixels tall and name it bar.gif, upload it to your images directory.
Every page that uses the category headers will now use the gradient also.
One more thing you might like to do is manually edit the Head Insert code and find the "SCROLLBAR-BASE-COLOR:" line, because it shares the category background colour, it will stop working. Just add the colour manually.
e.g.
SCROLLBAR-BASE-COLOR: #000000;
where #000000 is your category background colour.
Sorry if this is a bit vague but im no coder :)
So far i havent found any problems in doing it this way at all.
Hope this has helped someone.
PS. I have attached an example gradient, its not the best of colours but you can easily change it :)