CSS overflow not working in chrome - html

I have a "mega menu" that contains a .png that's supposed to hide after the user mouses off the menu. It works as expected in IE but not Chrome - it leaves the areas of the picture that hang out past the menu.
As per Sparkys suggestion, here's the JSFiddle
Here's a link to my development folder:
http://libertyeaglearms.com/dev/
here's a direct link to my css:
http://libertyeaglearms.com/dev/assets/menu.css
I think i t might have to do with line 6
.megaCreator a img{
display:block;
position:absolute;
bottom:-50px;
right:-50px;
max-width:550px;
outline:none;
border:none;
background:none;
}
but, I'm not sure.
If I need to post the code directly here I will, I'm not sure exactly where the problem lies so viewing all the css via the actual sheet, I feel ,would be better.
Here's a couple of screen shots showing the issue:
Here's the mouse over:
Here's the mouse out:
NOTE: I'm not using any javascript for the menu, in case the question comes up!
Thanks :)
HERE'S THE WORKING CODE -> JS FIDDLE

One of those rules is overwriting the overflow:
.megaMenu-fade > li.megaMenu-drop:hover > div,
.megaMenu-fade > li.megaMenu-drop:hover > ul,
.megaMenu-fade > li > ul li.megaMenu-drop:hover > ul,
.megaCreator > li.megaMenu-drop:hover > div,
.megaCreator > li.megaMenu-drop:hover > ul,
.megaCreator > li > ul li.megaMenu-drop:hover > ul
See:

I worked with it a lot and i find out that it has nothing to do with css as i change the "img" tag display to none (after the part image stayed on page), but it still stayed on. My guess would be it must be chrome graphic renderer problem that could not handle such a thing as sometimes it just disappears. my guess is it would be chrome's fault and not yours and as still as you don't put an element (like a div) over that image, the problem still exists.

Related

Hiding elements based on data attribures?

I am just trying to play around with the widget on this link and hide all the tabs on the top except "Flights", so I have one in the end instead of four.
I figured out the following CSS snippet for this, which is visible in the html on the link :
[data-cf-product="FLIGHTSHOTELS"] {
display:none;
}
So I am just trying to hide the second li in the ul that has a data attribute with value FLIGHTSHOTELS with this code, but I have no idea why it isn't working. Can anyone help?
[data-cf-selectedproduct="FLIGHTS"] > li:not(:nth-of-type(1)) {
display:none;
}

Hide Link Text Within Media Query - WordPress

Unfortunately it looks like you can't hide link text with CSS. On my WordPress site, at 375 px and below, the titles of the links in the secondary-navbar start to overlap.
Please see for yourself
What I'm trying to do is to say "as soon as the titles start to overlap (at 375px and below), make the titles disappear." I'd also like to make the glyphicons larger and centered.
Here's a link to my header.php file. I didn't write the code for this site and am not very familiar with the wp_nav_menu function, but I would guess that it's probably line 62 that's causing the menu titles to appear in the div with the nav navbar-nav secondary-links class.
So then, if that is the problem, how do we get that specific part of the function to disappear at 375px and below?
I tried commenting out line 62 and got a pretty bad result:
Please point me in the right direction if you have any suggestions / ideas. Maybe there's a way to disable the titles with JQuery? Thank you.
Here is the solution put it in the end of the stylesheet file.
#media only screen and (max-width:480px) {
.secondary-navbar .navbar-nav > li > a{font-size:0px;}
.secondary-navbar .navbar-nav > li > a:hover{font-size:0px;}
.secondary-navbar .navbar-nav > li > a span{font-size:20px!important;}
}

Selecting a div before a "checkmark:checked" condition in CSS

Okay, so I'm making a responsive navigation out of pure CSS (using a tutorial). The way it works is, when you're viewing the responsive (condensed) menu, the "Menu" button has a hidden checkbox input assigned to it. When the checkbox is checked, the navigation ul#menu (set to display:none; in mobile view) gets set to display:block like so:
input[type=checkbox]:checked ~ #menu {display:block;}
I also have a span with an arrow icon for menu items with submenus that rotates to point down when you hover over the li with the submenu.
<li class="dropdown">Link with Submenu<span class="arrow">></span></li>
.dropdown:hover .nav-arrow {transform:rotate(90deg);}
Standard stuff.
I didn't like the "hover" attribute displaying the submenu in mobile view, so I converted those to checkboxes as well. So tapping the li items will trigger their own checkboxes to display the submenu ul beneath them.
input[type=checkbox]#show-menu:checked ~ .sub-nav {display:block;}
The problem I can't seem to figure out now is how to get the submenu arrows to rotate down when you tap(check) the submenu link.
I've tried moving the input both above and below the li with the arrow (using both checkbox:checked + .nav-arrow and checkbox:checked ~ .nav-arrow respectively), but nothing seems to work.
Does anyone have any ideas of how to appropriately select the span with the arrow after the checkbox is checked? Appreciate it!
As a quick side note, I'm not JavaScript/jQuery savvy, and the point of this is to avoid using it, so any solutions negating those languages would be preferred. :)
Edit: Here's a js fiddle of my exact html/cs setup:
http://jsfiddle.net/nL3cd9mg/
Thanks for your responses so far, I hope the fiddle helps. :P
Ah! I finally got it. Simple solution I overlooked, as always. I just became more specific with my selectors:
input[type=checkbox]#show-cl-menu:checked ~ .show-cl-menu .nav-arrow {
instead of the old
input[type=checkbox]#show-cl-menu:checked ~ .nav-arrow {
Thanks everyone for your input!
If the issue is the actual rotation animation, try something like:
.subnav {
transition: transform .5s;
}
input[type=checkbox]#show-menu:checked ~ .sub-nav {
transform: rotate(90deg);
}
Obviously you'll need to change precisly what that is applied to fit your exact situation. Your question has no html so I can't be more specific to your situation. But you can see the parts that work together to get that rotating arrow effect.

Complete page shifts to right side after loading in IE 7 and 8

It being two days and i am punching my head due to IE 7 and IE 8. When my web site (built in drupal) is loaded, it shifts to right side. Link is below :
http://goo.gl/GkMF6Z
I applied overflow hidden etc, but nothing is working and the page still moves to right side.
I need help to fix this issue.
Thanks in advance.
Note: If someone give me details for a fix and it worked, i will offer a bounty of 50 points to correct answer after two days.
Looks like.. problem is with your doctype declaration. Can you check that once?
I got the issue
Issue is with your #menu #naviagtion_menu li ul try making that display:none and everything will be fine. Menu has position:absolute; left:-999em which is creating space. Try playing with display properties instead left.
Solution :
#menu #naviagtion_menu li ul { left:auto; display:none;}
On hover of parent ul show this #menu #naviagtion_menu li ul with jquery/ javascript like you are doing with position left.

CSS issues in IE7

I'm having the weirdest most annoying issue with my web page. It's located at [2012sbc.com/demo][1]. If you click on the link for Promotional Material, then click on one of the downloads, then refresh the Promotional Materials page, it's using the a:visited, a:hover, and a:active properties from an entirely different div, the navigation.
I tried to set a whole new div for just the links on the page, and then those properties mess with my navigation!! I can't just like, set a class, then set another one, they interact with each other and I have no idea why. And of course, it's only happening in IE7.
Can someone check it out and tell me what I did wrong? I'm at a complete loss!!
edit:
Screenshot located: https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/screenshot.gif
And I personally don't care about IE7, but that's what our client uses and so I have to make it work.
2nd edit:
None of these things are helping, does anyone else have any suggestions?
There is no point in a:visited for main-menu. what if the user visited more than one item in the menu? you want to paint it as visited? it's a menu, not a normal link.
But, if you still want this behaviour then:
In the oneColFixCtrHdr.css you declared:
A:visited {
BACKGROUND-IMAGE: url(https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/darkredbar.jpg)
}
You should scope it like this:
.oneColFixCtrHdr #stripes UL A:visited {
BACKGROUND-IMAGE: url(https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/darkredbar.jpg)
}
In order to apply it on your main-menu.
Try this,
.roundside a {color:#990000; font-weight:bold}
.roundside a:visited,
.roundside a:hover,
.roundside a:active{ color: #F00; font-weight:normal; }
Hope that help you :)