The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Gap between menu buttons

View previous topic View next topic Go down

Gap between menu buttons

Post by Shelby™ on June 17th 2013, 10:28 am

Hello,

I used a code to remove the gap between the menu buttons, but I don't find now where it is.. Anyone can give me the CSS code for it? Thanks in advance!

Shelby™
Forumember

Male Posts : 185
Reputation : 6
Language : Hungarian(native), English
Location : Hungary

http://evasion.forumo.org/

Back to top Go down

Re: Gap between menu buttons

Post by Ultron's Vision on June 17th 2013, 10:32 am

It should start with "a.mainmenu", but I'm not sure if that still applies to phpBB 3.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Gap between menu buttons

Post by Shelby™ on June 17th 2013, 10:35 am

@Ultron's Vision wrote:It should start with "a.mainmenu", but I'm not sure if that still applies to phpBB 3.

My forum version is Phpbb2 at moment.

Shelby™
Forumember

Male Posts : 185
Reputation : 6
Language : Hungarian(native), English
Location : Hungary

http://evasion.forumo.org/

Back to top Go down

Re: Gap between menu buttons

Post by Ultron's Vision on June 17th 2013, 10:40 am

Then the menu buttons are accessible via "a.mainmenu" or just ".mainmenu".

The associated code would be margin: 0; and padding: 0;, so if that helps you, you're welcome Wink

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Gap between menu buttons

Post by Shelby™ on June 17th 2013, 10:47 am

@Ultron's Vision wrote:Then the menu buttons are accessible via "a.mainmenu" or just ".mainmenu".

The associated code would be margin: 0; and padding: 0;, so if that helps you, you're welcome Wink

My career as coder has been started, I guess... xD

Code:
a.mainmenu {
margin: -1;
padding: -1;
}

Thanks for the help, it worked. :PProblem solved!

Shelby™
Forumember

Male Posts : 185
Reputation : 6
Language : Hungarian(native), English
Location : Hungary

http://evasion.forumo.org/

Back to top Go down

Re: Gap between menu buttons

Post by Ultron's Vision on June 17th 2013, 11:02 am

Sorry to disappoint you, but margin and padding don't accept negative values, so margin: -1; is an invalid declaration.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Gap between menu buttons

Post by Shelby™ on June 17th 2013, 11:04 am

@Ultron's Vision wrote:Sorry to disappoint you, but margin and padding don't accept negative values, so margin: -1; is an invalid declaration.

But it works perfectly. : o

Shelby™
Forumember

Male Posts : 185
Reputation : 6
Language : Hungarian(native), English
Location : Hungary

http://evasion.forumo.org/

Back to top Go down

Re: Gap between menu buttons

Post by Ultron's Vision on June 17th 2013, 11:09 am

Try putting in margin: 1; and see if it works just as -1 does (that should be the case).

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Gap between menu buttons

Post by Shelby™ on June 17th 2013, 11:11 am

@Ultron's Vision wrote:Try putting in margin: 1; and see if it works just as -1 does (that should be the case).

It brings the menu buttons closer to each other, but theres still gap, I tried. With -1 the menu is perfect.

Shelby™
Forumember

Male Posts : 185
Reputation : 6
Language : Hungarian(native), English
Location : Hungary

http://evasion.forumo.org/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum