Joomla 1.5: how to remove space from
  • Locked
    User avatar
    kor
    Joomla! Enthusiast
    Joomla! Enthusiast
    Posts: 177
    Joined: Wed Feb 08, 2006 5:33 pm
    Location: amsterdam, holland
    Contact:

    Joomla 1.5: how to remove space from
  • Post by kor » Wed Dec 20, 2006 10:23 pm

    Hello,

    In order to comply with the rules set by the client I am working for, I need to get rid of the space between "level1" and  "item1" in the menu items (there are no spaces allowed in css classes and id's).

    Instead of
       
       

    I need
       
       

    Does anyone know how to hack the core code? I guess it must be somewhere in \modules\mod_mainmenu\menu.php but I can't seem to find it.

    Anyone?

    regards, Kor
    Last edited by kor on Thu Dec 21, 2006 12:01 am, edited 1 time in total.

    User avatar
    kor
    Joomla! Enthusiast
    Joomla! Enthusiast
    Posts: 177
    Joined: Wed Feb 08, 2006 5:33 pm
    Location: amsterdam, holland
    Contact:

    Re: Joomla 1.5: how to remove space from
  • Post by kor » Thu Dec 21, 2006 12:00 am

    I never assigned 2 classes to one element before but now I found out that this is the way to do it:

    from http://www.w3schools.com/css/css_syntax.asp:

    "
       
        This is a paragraph.
       
       
        The paragraph above will be styled by the class "center" AND the class "bold".
    "

    I think my clients specs are not correct.

    So problem solved.

    User avatar
    ianmac
    Joomla! Virtuoso
    Joomla! Virtuoso
    Posts: 4784
    Joined: Sat Sep 24, 2005 11:01 pm
    Location: Toronto, Canada

    Re: Joomla 1.5: how to remove space from
  • Post by ianmac » Thu Dec 21, 2006 3:00 am

    kor wrote: I think my clients specs are not correct.

    So problem solved.
    I would agree with your analysis...  removing the space would cause an undesirable effect.

    Ian

    User avatar
    kor
    Joomla! Enthusiast
    Joomla! Enthusiast
    Posts: 177
    Joined: Wed Feb 08, 2006 5:33 pm
    Location: amsterdam, holland
    Contact:

    Re: Joomla 1.5: how to remove space from
  • Post by kor » Thu Dec 21, 2006 8:23 am

    Yes....

    I just wasn't familiar with how to assign two classes to the same selector, I never needed that. So I learned something.

    Also I was half asleep and now I realise the client's specifications are not wrong: they only allow alphanumeric characters in the naming. This seems right to me and also does not conflict with what Joomla is generating. I don't know what I was thinking last night.
    Everybody happy  :)

    regards, Kor

    3dch
    Joomla! Apprentice
    Joomla! Apprentice
    Posts: 21
    Joined: Tue Dec 12, 2006 6:49 pm

    Re: Joomla 1.5: how to remove space from
  • Post by 3dch » Thu Jan 04, 2007 8:46 pm

    Hi Kor

    You have what I'm looking for urgently (see my post which wasn't answered till now here: http://forum.joomla.org/index.php/topic,126770.0.html).
    I tried everything with my J1.5 installation be it setting the style in the index.php template file or by changing the menu type to list, vertical, horizontal or flat list in the module manager of the back end, but I never get the classes you mentioned above. So I hope that you can tell me how I get these class names for my menus in the generated HTML output.

    Regards
    Ernst

    User avatar
    kor
    Joomla! Enthusiast
    Joomla! Enthusiast
    Posts: 177
    Joined: Wed Feb 08, 2006 5:33 pm
    Location: amsterdam, holland
    Contact:

    Re: Joomla 1.5: how to remove space from
  • Post by kor » Sun Jan 07, 2007 3:06 pm

    Hallo Ernst,

    I just came back from my vacation so I try to remember the details but I am afraid that takes a day. I can send you a screenshot of the parameters I use,  if you wish. Please let me know your email address.

    From what I remember the output that I specified comes with the default installation however.

    ~kor

    3dch
    Joomla! Apprentice
    Joomla! Apprentice
    Posts: 21
    Joined: Tue Dec 12, 2006 6:49 pm

    Re: Joomla 1.5: how to remove space from
  • Post by 3dch » Sun Jan 07, 2007 3:36 pm

    Hi Kor

    Thanks for answering my post. I'll send you a private message with my e-mail through the forum.

    Regards
    Ernst


    Locked

    Return to “Design and Accessibility - Archived”