New mod, New style problem

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

New mod, New style problem

Post by DoYouSpeakWak »

Hey everybody. I tried asking this at phpbb.com. Nobody seems to know why this is happening. So i wanted to ask everybody here.

Im making a mod that uses alot of styles. No problems so far. Only with subsilver2. In firefox it looks great. but in chrome the padding is removed. The code is xhtml strict valid so i wonder why there is this diffrence and what there is to do about it.

menu with firefox
Image

menu with Chrome
Image

try yourself
http://psyhosting.com

Css that controls this.

Code: Select all

#accordion {
	background:#CADCEB;
	width: 182px;
	margin-left: 1px;
	margin-right: 1px;
	margin-bottom: 7px;
	margin-top: 7px;
}
any ideas on why this happens ?

Wak

Re: New mod, New style problem

Post by Stoker »

Remember chrome still is a beta browser.

Anyway, you are writing padding but you are actually using margin. ;)

Use !important like:

Code: Select all

margin-bottom: 7px !important;
I am guessing.

Re: New mod, New style problem

Post by Steve »

i am guessing the class <h2></h2> already has its own defined css some where in the stylesheet and the browser is ignoring his margin :geek:

Re: New mod, New style problem

Post by DoYouSpeakWak »

Thanks guys.

Tried both about, changed the name of h2, didnt work, i think as long its inside the accension div it doesnt matter, h2 is also used in the prosilver based styles, they work perfect in ie and chrome.

im leaning on replacing alot of the subsilver2 stuff with sqaure by stoker.