PDA

View Full Version : CSS buttons using cp-style/headinsert


nagasadow
03-17-2003, 06:15 PM
Here is my head insert, wich will allow you to replace every button by a CSS style.

You'll just have to place this code in the cells containing several links :

<td class="nono"> or <td class="menu"><a href="your link></a>

Or this code if you need just one link :

<span class="nono"><a href="your link"></a></span> or <span class="menu"><a href="your link"></a></span>

No matter for the class name, you can change it and there are other possibilities, you just have to customize ;)

You can use it for every link, even to put the page numbers in blocks if you want.

look at my forumtest to see the effect : http://www.yamakasis.com/forumtest/index.php?s=

Naga ;)

gmarik
03-18-2003, 02:48 PM
A great idea, I'll add my .css file later too, it is really a good solution, I think.

Chris Gwynne
03-18-2003, 03:57 PM
I was going to use do an idea exactly like this the other week, but dropped it because it's too tedious to go through and replace every button and part with the CSS prefixes instead.

Also, older browsers probably won't support it. :)

nagasadow
03-18-2003, 04:42 PM
to complete this, you can also specify a gif for the css A:link, .nono A:visited, .nono A:active and another gif for the css .nono A:hover {

This looks like a script hover isn't it ?

See on my official forum what it looks like ---> http://www.yamakasis.com/forum/index.php?s=

You just have now to put css value for the fonts as it is specified here ---> http://www.vbulletin.com/forum/showthread.php?s=&threadid=17943

So that when you modify the fontsize in IE nothing in your page will change in size ;)

The results ? when your host work with hits/page, your browser won't load too much gif ;)

naga

gmarik
03-19-2003, 01:00 PM
Who cares about older browsers? Nobody does, a-drive. 90% of users have at least version 4.0 browsers and CSS is the best solution for all problems.

Chris Gwynne
03-19-2003, 01:34 PM
Today at 03:00 PM gmarik said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=369241#post369241)
Who cares about older browsers? Nobody does, a-drive. 90% of users have at least version 4.0 browsers and CSS is the best solution for all problems.

Dude, relax! I'm not bashing his way, I even said that I'd thought of doing it myself.
But I'm giving a flaw to it, like there's always a flaw to a hack or anything else released to vBulletin. People use old browsers, that's the truth. The forum wouldn't function properly for them, so obviously they'd care about it.

Dean C
03-19-2003, 03:13 PM
gmarik - everyone cares about old browsers, its business etiquette to provide a site that will function the same in all browsers :)

That's why i don't use fancy css scrollbars and such (unless the client requests it of course :))

- miSt