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 Mon Jun 17, 2013 2: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!
avatar
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 Mon Jun 17, 2013 2:32 am

It should start with "a.mainmenu", but I'm not sure if that still applies to phpBB 3.
avatar
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 Mon Jun 17, 2013 2: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.
avatar
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 Mon Jun 17, 2013 2: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
avatar
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 Mon Jun 17, 2013 2: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!
avatar
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 Mon Jun 17, 2013 3:02 am

Sorry to disappoint you, but margin and padding don't accept negative values, so margin: -1; is an invalid declaration.
avatar
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 Mon Jun 17, 2013 3: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
avatar
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 Mon Jun 17, 2013 3:09 am

Try putting in margin: 1; and see if it works just as -1 does (that should be the case).
avatar
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 Mon Jun 17, 2013 3: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.
avatar
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