How can I change the menu?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Feb 11, 2014 12:17 am
Reply with quote
Report this post
Hello friends,
I have a problem with the Menu "CSS style for the link!"
I have a set menu "image link" and the "mouseover" to get a frame that Menubild.
But it does not work! What am I doing wrong?

Here is the code, because I have added in template.css and I give the menu CSS-Style: menu-item


Code: Select all

.menu-item img {
  border: 1px solid #FFFFFF;
}

.menu-item img:hover {
  border: 1px solid #000000;
}

.active .menu-item {
  border: 1px solid #000000;
}





Thanks for any help! :)
Sakari
User avatar
Expert Boarder

GK User
Tue Feb 11, 2014 7:36 am
Reply with quote
Report this post
1. Please use override.css instead of modifying core template files. It will save you from troubles while updating.
2. Could You please post an url to your site?
3. Could you specify exactly what is the desired look you seek (screenshots might be helpful).
User avatar
Moderator

GK User
Tue Feb 11, 2014 8:14 am
Reply with quote
Report this post
Hi Cyberek,

thank you first for your help!

Look please at the pictures because you can see exactly how I want it.


menu1.jpg
menu2.jpg



The website is running on the intranet and I have moved the code to the override.css. :)

I hope you can help me anyway!

Thank you very much! :)
User avatar
Expert Boarder

GK User
Tue Feb 11, 2014 11:12 am
Reply with quote
Report this post
Without accessing live site I cant help further. Perhaps you could post your site live somewhere temporarily?
User avatar
Moderator

GK User
Tue Feb 11, 2014 3:49 pm
Reply with quote
Report this post
I have sent you the demo access data via private mail!


Oh, you can also set the height of the menu?
You'll see that the menu screen is higher!


Thank you very much! :)
User avatar
Expert Boarder

GK User
Wed Feb 12, 2014 3:47 pm
Reply with quote
Report this post
I give that right one? (see picture)

I've tried it, before a "#" or "." or a blank space.

How is the pure spelled correctly?

menu3.jpg



Thank you again.
regards
:)
Sakari
User avatar
Expert Boarder

GK User
Wed Feb 12, 2014 11:40 pm
Reply with quote
Report this post
How it works! (see code below)
I have changed it directly, without the entry in the "CSS style for Menu". entry!
Since I had this function does not work!

Code: Select all

.gkMenu img {
 border: 1px solid #FFFFFF;
}

.gkMenu img:hover {
 border: 1px solid #000000;
}

.gkMenu li.active > a img {
 border: 1px solid #000000;
}


User avatar
Expert Boarder

GK User
Thu Feb 13, 2014 5:30 pm
Reply with quote
Report this post
If the spacing between top of the page and image is the problem, please use this css:
Code: Select all
.gkMenu img {
margin-top: 26px;
border: 1px solid #FFFFFF;
}

It should push image down.
User avatar
Moderator

GK User
Thu Feb 13, 2014 7:42 pm
Reply with quote
Report this post
Ok, that works too!

If I want to embed it on "CSS style for Menu" like I give exactly one so that it is integrated?
Let's say the code does not .gkMenu but .imgMenu as it is entered in the "CSS style for Menu"?


Code: Select all
/* Image Menu */

.imgMenu  img {
 border: 1px solid #FFFFFF;
margin-top: 26px;
}

.imgMenu  img:hover {
 border: 1px solid #000000;
margin-top: 26px;
}

.imgMenu  li.active > a img {
 border: 1px solid #000000;
margin-top: 26px;
}




Can you explain me bite that? :)

Many thanks :)
User avatar
Expert Boarder

GK User
Fri Feb 14, 2014 10:06 am
Reply with quote
Report this post
Do you use translator? I'm having problem understanding your point ;).
User avatar
Moderator


cron