New mod, New style problem

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
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.
Else your topic may be ignored or locked!
Locked
User avatar
DoYouSpeakWak
BBCoder II
BBCoder II
Posts: 27
Joined: 05 Mar 2010, 16:47

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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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.
Board rules! No PM support
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

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:
NAPWR wrote: Nice, Stoker is Hot
User avatar
DoYouSpeakWak
BBCoder II
BBCoder II
Posts: 27
Joined: 05 Mar 2010, 16:47

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.
Locked