Vertical Menu Spacing in Cloudbase3

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
steveotm
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Apr 26, 2016 4:13 pm

Vertical Menu Spacing in Cloudbase3

Post by steveotm » Tue Apr 26, 2016 4:23 pm

I just created a menu in sidebar a in Cloudbase 3 template....http://ensocorp.freesite.host/index.php. Do I have to dig into the css sheet to make the spacing between tabs closer together???? Would appreciate any info!!!! Steve

User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Vertical Menu Spacing in Cloudbase3

Post by AlexVega » Wed Apr 27, 2016 6:19 pm

Hi there,

Welcome to the Forum, Change the value for padding in this css rule:
.gf-menu.l1 > li > .item you can add in your main css file something like:

Code: Select all

/* By default the value for top and bottom is 16px */
.gf-menu.l1 > li > .item {
  padding: 10px 0;
}
Cheers!

steveotm
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Apr 26, 2016 4:13 pm

Re: Vertical Menu Spacing in Cloudbase3

Post by steveotm » Mon May 02, 2016 1:24 pm

Thank you so much AlexVega! I will try to get to this today.....your time is appreciated!

User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Vertical Menu Spacing in Cloudbase3

Post by AlexVega » Tue May 03, 2016 4:31 am

Glad to help,
Regards.

steveotm
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Apr 26, 2016 4:13 pm

Re: Vertical Menu Spacing in Cloudbase3

Post by steveotm » Tue May 03, 2016 6:06 pm

Hi again, I made the css change but now a few of the menu items have crushed into some others...what could be wrong????

User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Vertical Menu Spacing in Cloudbase3

Post by AlexVega » Tue May 03, 2016 9:53 pm

Hi there,
steveotm wrote:Hi again, I made the css change but now a few of the menu items have crushed into some others...what could be wrong????
Can you show us the URL of your project?

Cheers.

steveotm
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Apr 26, 2016 4:13 pm

Re: Vertical Menu Spacing in Cloudbase3

Post by steveotm » Wed May 04, 2016 12:34 pm


User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Vertical Menu Spacing in Cloudbase3

Post by AlexVega » Wed May 04, 2016 6:50 pm

Hi,

I see the problem, try this:

Code: Select all

/* First add more padding to right and left, in this case this value add 10px to
the top, bottom, left and right */
.gf-menu.l1 > li > .item {
  padding: 10px;
}

/* Add this new rule*/
.gf-menu li {
  width: 100%;
}
Cheers.

steveotm
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Apr 26, 2016 4:13 pm

Re: Vertical Menu Spacing in Cloudbase3

Post by steveotm » Thu May 05, 2016 1:16 pm

AlexVega, you are amazing! It looks perfect now! Thank you so much for your expertise. Out of curiosity, is it possible to get the menu to open a menu item to the right instead of down like it is doing now????

User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Vertical Menu Spacing in Cloudbase3

Post by AlexVega » Thu May 05, 2016 10:55 pm

Hi,

Yes is possible, you can use a tool like Firebug for inspect the source code of your page
in your browser.

A tool like this will give you information about the selectors and the path where they are
located, the line number and the name of the file that contains this css selectors.

Once you have this you can add or change the values.

Cheers!


Locked

Return to “Templates for Joomla! 3.x”