The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Gap between menu buttons

2 posters

Go down

Gap between menu buttons Empty Gap between menu buttons

Post by Shelby™ 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™
Shelby™
Forumember

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

http://evasion.forumo.org/

Back to top Go down

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Ultron's Vision 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
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

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Shelby™ 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™
Shelby™
Forumember

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

http://evasion.forumo.org/

Back to top Go down

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Ultron's Vision 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
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

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Shelby™ 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™
Shelby™
Forumember

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

http://evasion.forumo.org/

Back to top Go down

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Ultron's Vision 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
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

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Shelby™ 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™
Shelby™
Forumember

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

http://evasion.forumo.org/

Back to top Go down

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Ultron's Vision 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
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

Gap between menu buttons Empty Re: Gap between menu buttons

Post by Shelby™ 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™
Shelby™
Forumember

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

http://evasion.forumo.org/

Back to top Go down

Back to top

- Similar topics

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