Question for Turb, Raw or whoever else knows about phpBB

Open discussion about any topic, as long as you abide by the rules of course!
Post Reply
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Question for Turb, Raw or whoever else knows about phpBB

Post by inphlict »

I'm setting up a phpBB forum, I would really appricate if you could tell what I need to edit in order to remove the 2 pixel border around the ugly buttons.

Image

I want to have similar 1 border buttons you have here, just a different color.

Thanks. :)
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Post by Fender »

Depends on what style you have installed. There's probably a css style sheet.
For example, this is mine:
http://forums.fender.net/templates/subB ... bBlack.css

Find your css, then look at the source HTML and figure out what css style is being applied to that element and change it.
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

Alright thanks
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Post by Fender »

If the style is based on subSilver, then the style applied to the Go button is liteoption.
Change the css line that looks like this
input.liteoption{background-color:#000000;color:#FFFFCC;font-weight:normal}

To something like this (this is the q3w css)
/* None-bold submit button */
input.liteoption {
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color : #000000;
color : #FFFFFF;
border-top: 1px solid white;
border-right: 1px solid white;
border-bottom: 1px solid white;
border-left: 1px solid white;
font-weight : bold;
font-size: 12px;
/* padding: 1px 1px; */
}
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Post by Fender »

Actually this is even better:
/* None-bold submit button */
input.liteoption {
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color : #000000;
color : #FFFFFF;
border: 1px solid white;
font-weight : bold;
font-size: 12px;
}
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Post by Fender »

Just noticed I use the same style as q3w. :o!
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

It has something do with firefox rendering the css diferent because in ie I don't get such ugly thick borders around buttons and text areas. I've tried changing the css but it doesn't seem to effect it, i'm going to mess around some more. :(
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

I also noticed a file called formIE,

/* Fancy form styles for IE */

input, textarea, select {
border-top-width : 1px;
border-right-width : 1px;
border-bottom-width : 1px;
border-left-width : 1px;
}

input { text-indent : 2px; }

input.button {
border-top-width : 1px;
border-right-width : 1px;
border-bottom-width : 1px;
border-left-width : 1px;
}

.postbody { line-height: 18px}

Does this work for firefox? I'm guessing no, but I'll try it.
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Post by Fender »

The borders look the same to me in FF and IE here on q3w. Maybe clear your browser's cache?
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

Yes on q3w, but not on my forum
Last edited by inphlict on Fri Mar 04, 2005 10:36 pm, edited 1 time in total.
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

I think I know why I can't change anything

NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.

That's in my source, I guess I need to edit index.php?
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Post by Fender »

Your inline style is still the default:
/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
}
Find that and change to
/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
border: 1px;
}
inphlict
Posts: 1656
Joined: Sat Jul 13, 2002 7:00 am

Post by inphlict »

I just messed up, but I at least I know what to do now.
Post Reply