Results 1 to 4 of 4

Thread: Image on menu

  1. #1
    New user
    Join Date
    10-30-11.
    Posts
    23

    Default Image on menu

    Hi there

    A question if it is possible to add a image to my menu instead of text.?

    In my main menu I have one navigation link, is says "English" but instead I would like to add a English flag. The link is a external link..

    I have add pageimage to my site, but this does not work on a navigation link..

    Best regards to you
    Karsten

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Image on menu

    You can add a "body class" through the "edit page" in the backend and then add the image as background using css
    Consulenza Contao CMS https://www.intco.it

  3. #3
    New user
    Join Date
    10-30-11.
    Posts
    23

    Default Re: Image on menu

    Hi
    Thanks, ga.n, it sound a little difficult for me. *:-)
    So If I use something like a ... class "flag" in contao then I make .flag into my css file.. and create a background images with the flag..

    yes?

    Best regards
    Karsten

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Image on menu

    in the "page details" you can add a "css class" under "expert settings" (see http://www.webpagescreenshot.info/im...232012104840AM)

    assuming that you put a "css class" "mypage"

    the link will be rendered in the frontend as

    Code:
    ....
    <li class="mypage"><a class="mypage">...</a>
    ....
    so you can style it with

    Code:
    /** or li.mypage a or a.mypage */
    li.mypage {
       background: ...
    }
    Consulenza Contao CMS https://www.intco.it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •