-
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
-
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
-
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
-
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: ...
}