php forum
php mysql forum
php mysql smarty
 
Topic Options
#64800 - 09/14/00 02:27 PM Stylesheets help...
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Awhile ago, I found this forums site. It's theme was for Diablo and Diablo II, but that doesn't really matter. Anyway, somehow using stylesheets, they made all the input boxes (name, password, subject, etc.) flat, and changed their background colors and border colors.

Does anyone know how exactly to code my txt/css stylesheet to make all my input boxes flat and colored like that? Thanks much.

BTW, I don't remember the exact site now, and the one I think it was has changed their layout so it no longer uses that stylesheet effect anymore.

---Skorpion

------------------

<IMG SRC="http://liquid.jaminnet.com/img/skorpion7.jpg" border=0>
<FONT size="4">hi there, little boys and girls!
today we're gonna learn how to poison squirrels!</FONT s>
<FONT size="1">eminem, the kids</FONT s>

<FONT size="2"> Liquid Nation Gaming Forums
Liquified Industries
</FONT s>

[This message has been edited by Skorpion (edited September 14, 2000).]
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#64801 - 09/14/00 04:07 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
I'm not a bastardo , so I'll help you.

To change the background color of the text boxes, texareas, drop down boxes, and other selection lists, simply make a class like:

Code:
code:


then in your page it would look like:

Code:
code:


to make a button flat and have a border/no border around it, make another class:

Code:
code:


Code:
code:


Have fun and stay W3 compliant! Haha. ha.

By the way, I used inline styles (style="") to make them here, but external sheets are of course the preferred method of doing such things.
------------------
<FONT size="1">-david
booey booey bashaka khans® lach de zuperrier
</FONT s>


[This message has been edited by evil-empire (edited September 14, 2000).]

Top
#64802 - 09/14/00 04:14 PM Re: Stylesheets help...
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
ROCK! Thanks a lot, evil-empire. That's exactly what I needed.

---Skorpion

------------------

<IMG SRC="http://liquid.jaminnet.com/img/skorpion7.jpg" border=0>
<FONT size="4">hi there, little boys and girls!
today we're gonna learn how to poison squirrels!</FONT s>
<FONT size="1">eminem, the kids</FONT s>

<FONT size="2"> Liquid Nation Gaming Forums
Liquified Industries
</FONT s>
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#64803 - 09/14/00 04:15 PM Re: Stylesheets help...
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Good work David... if you are using the licensed version, you can put your style sheets in the headerinsert box, about 2/3 the way down general settings... update threads and it will propagate to the whole ubb...

------------------
Allen

- http://www.stand318.com
_________________________
- Allen wavey
- What Drives You?

Top
#64804 - 09/14/00 05:32 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
three more things:

1. You can change the font properties for text boxes and buttons as well. For text boxes, it will change the font of anything a user types, for buttons it will change the font of the button value (submit, reset,etc.).

2. Heres the really fun stuff. Ok, you know how your cursor turns into a hand when you move it over a link? You can do that for buttons too.

Code:
code:


Code:
code:


And let me remind you what a normal button looks like:
Code:
code:


3. I HIGHLY doubt any of this works in in netscape 4.x! Nothing does, especially not the really cool stylesheet functions like this. But then, it might. Don't worry though, it will in NS6. bless the W3.

And, instead of me coming back here every 5 minutes telling you something else you can do, let me just tell you David's Law:
When using style sheets, experiment.
Try everything.
------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

[This message has been edited by evil-empire (edited September 14, 2000).]

Top
#64805 - 09/14/00 08:36 PM Re: Stylesheets help...
CE Offline
Member

Registered: 08/18/00
Posts: 469
Loc: Iowa
How do you do drop down menus?

Top
#64806 - 09/14/00 09:18 PM Re: Stylesheets help...
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Thanks for all the help, evil-empire!

CE, what kind of drop-down menus do you mean? The Interplay has a really good javascript pop-up menu program. Their script was what I used and modified for the previous version of my forums. It's really good, simple, and quick. And their legal peepz even give you permission to use it!

If that's the type of menu you're talking about, have at it, hope it helps. If not, I can't help you much more, sorry.

Thanks again, E-E.

---Skorpion

------------------

<IMG SRC="http://liquid.jaminnet.com/img/skorpion7.jpg" border=0>
<FONT size="4">hi there, little boys and girls!
today we're gonna learn how to poison squirrels!</FONT s>
<FONT size="1">eminem, the kids</FONT s>

<FONT size="2"> Liquid Nation Gaming Forums
Liquified Industries
</FONT s>
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#64807 - 09/15/00 03:22 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
I'm sorry, when I said drop-down menus I ment selection lists.

Code:
code:


------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

Top
#64808 - 09/15/00 05:21 PM Re: Stylesheets help...
CE Offline
Member

Registered: 08/18/00
Posts: 469
Loc: Iowa
evil how do you make thoose drop down menus so they look like this?:

Code:
code:


<font size=1>[This message has been edited by CE (edited September 15, 2000).]</font>

Top
#64809 - 09/15/00 08:23 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
The same way you make text boxes like that, it all operates on the same principles.

------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

Top
#64810 - 09/16/00 08:08 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
**** . **** **** **** **** **** .

None of this stuff works in netscape (4.x). I did three new pages on my site, all of which contain form fields, and all of which I applied some of the previously discussed formatting. In 4.7, weird little boxes show up, and textareas dont work at all. I know SOME of the formatting works, like font, bgcolor and such, but borders and such might be a problem...
hey, that might be it. Some certain border-atrributes are buggy in NS4, let me see if i do it differently...

I'll edit this later if I get it to work.

I tried going to extremeforums.com to see what they did with theirs to make it work, but that site is (apparently) no more. It's replaced by a simple message written by someone who cannot even correctly specify the background color of the page. ich.


[EDIT]
OK, I looked around and found nothing. I changed some of the things and it still doesn't work in netscape. Much as he doesn't want to admit it, the CSS guru needs help. Or maybe there isn't help.

its all netscape's fault. Im very tempted to just say **** it and let the NS4 users rot. but, that wouldn't be proper.
[/EDIT]
------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

<font size=1>[This message has been edited by evil-empire (edited September 16, 2000).]</font>

Top
#64811 - 09/17/00 04:56 AM Re: Stylesheets help...
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
NS doesn't support background color (or indeed, any attribute) of the form elements. They even use their own fixed width font under windows which screws up sizing.

A better way to implement your stylesheets for the UBB would be as follows:

Code:
code:


This will automatically color all form fields without you having to edit the HTML at all.

Just a thought

NB. Netscape CSS doesn't support the cursor property for any element. It's IE proprietry **** .

------------------
http://www.iamcal.com
_________________________
http://www.iamcal.com

Top
#64812 - 09/17/00 09:31 AM Re: Stylesheets help...
z2s Offline
Member

Registered: 07/03/00
Posts: 46
Loc: Somewhere in Hyrule
Hmmm...., I hvae some CSS that might change the input as well. Go <a href="http://pub21.ezboard.com/bungd">here</a>. if you want some of that CSS I can post it

------------------
FreewareUBB.com Boards
_________________________
FreewareUBB.com Boards

Top
#64813 - 09/17/00 09:06 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
well, thanks guys, I'll work on that later.

and, actually cal, you're wrong. It's not proprietary **** from IE. It's netscape 4's problem. "Cursor" is standard CSS, netscape 4 doesnt support it. Netscape 4 is pure shite, you see. Doesn't support anything, and that layer tag shite is useless. In NS6 they drop the layer tags and start complying with the W3, as IE has been doing. I'll bet you $5 that 'cursor' works in NS6.

And, interestingly enough, "cursor:hand" is wrong, according to the W3's online CSS validator. It's supposed to be "pointer", but I tried that and it doesnt work. Go figure.

------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

Top
#64814 - 09/17/00 09:23 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
ok, 2 minutes later. or something.

earth shattering revelation:
netscape sucks.

I've come to a compromise of sorts. I only defined the background color and font for the form elements. So it still looks like unrefined shite in netscape, but at least it's usable, not-too-****ed-up unrefined shite. In IE, theres still some dignity, but thats only because the border on form elements isn't as wide as it is in NS. Maybe in a few months I'll change it, and **** netscape.

------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

<font size=1>[This message has been edited by evil-empire (edited September 17, 2000).]</font>

Top
#64815 - 09/18/00 02:28 AM Re: Stylesheets help...
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
As you posted yourself, 'cursor' is proprietry. The w3c put pointer into CSS2 AFTER ms had put cursor in IE. Now that it's more formalised we would hope NS will pick it up.

Just a thought

------------------
http://www.iamcal.com
_________________________
http://www.iamcal.com

Top
#64816 - 09/18/00 07:37 AM Re: Stylesheets help...
CE Offline
Member

Registered: 08/18/00
Posts: 469
Loc: Iowa
2 days ago i downloaded netscape...after 10 minutes i was cursing it and deleting it, netscape is the biggest pieace of **** made, how the thing stays in business is beyond my mind, it make EVERYTHING look incredibly like **** .

Top
#64817 - 09/19/00 02:42 AM Re: Stylesheets help...
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
The trick is to make things work with both browsers on both platforms (win & mac). That's all the fun of HTML

Just a thought

------------------
http://www.iamcal.com
_________________________
http://www.iamcal.com

Top
#64818 - 09/19/00 03:18 PM Re: Stylesheets help...
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
a tried posting a long-winded response to that CE, but I forgot to put in my user/pass, and it lost my message, so I went and watched TV.

basically, I said what cal did, but I went off on a tangent about netscape/IE and how much netscape sucks.

------------------
-david
<FONT size="1">I wish the milkman would deliver my milk.
In the morning.</FONT s>

Top


Moderator:  Gizmo, Ian_W 
Who's Online
0 registered (), 29 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks