VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

I WANT TO FIT THE SUBMENU TITLE WITH BACKGRO
(2 viewing) isupport, (1) Guest
  • Page:
  • 1

TOPIC: I WANT TO FIT THE SUBMENU TITLE WITH BACKGRO

I WANT TO FIT THE SUBMENU TITLE WITH BACKGRO 11 Oct 2018 12:09 #11229

How can I use code to fit the submenu title with its background?








__________________________________________________________________________
krogerfeedback
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
Last Edit: 12 Oct 2018 18:31 by Cherie275.

  • Posts:2
  • Cherie275
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: I WANT TO FIT THE SUBMENU TITLE WITH BACKGRO 12 Oct 2018 02:12 #11231

You can replace file templates/jf_creativia/css/menu.css by file in attachment.

This attachment is hidden for guests. Please log in or register to see it.


joomfreak

  • Posts:2856
  • isupport
  • Moderator
  • NOW ONLINE
  • Karma: 0

Re: I WANT TO FIT THE SUBMENU TITLE WITH BACKGRO 23 Mar 2020 05:25 #12195

Ideally, it would be great if there was a CSS selector that would let us query if an element contained another kind of element as a direct child, something akin to jQuery's .has() method.

We can can achieve nearly the same thing with li a:first-child:nth-last-child(x) { }.

The key is having an expected child count (HTML element planned parenthood?). Most likely it will be two elements: the anchor and the <ul>, though one can tweak this technique to work for any number or child elements, as long as you have a regular pattern.

Here is a quick example. The markup is just your standard nested UL, but note that I have only used one class in the HTML, on the root <ul>. Test this out yourself, add any number of nested lists at any level!


#prepaidcardstatus
Last Edit: 24 Mar 2020 04:36 by jonarthan.

  • Posts:1
  • jonarthan
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.61 seconds
Wednesday 01 April 2020

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.