Note that there are some explanatory texts on larger screens.

plurals
  1. PODIV Positioning different in IE and Firefox
    primarykey
    data
    text
    <p>This is a pretty simple question, clearly it's an issue either with my CSS or JS, my brain is just too fried from staring at this all day to see it.</p> <p>If you take a look <a href="http://www.aifittingsproto.com/samples" rel="nofollow">HERE</a>, what I am trying to accomplish is when someone click on either "Products, Spec Sheets, Banners, etc." it switches to the correct slide (UL element), and the arrow pointing down slides under the correct title. Everything works dandy in Chrome; however, in Firefox - the arrow is far to the right, and in IE it's below the container. Here's the JS: </p> <pre><code>var TabbedContent = { init: function() { $(".category").click(function() { var background = $(this).parent().find(".selected"); $(background).stop().animate({ left: $(this).position()['left'] }, { duration: 350 }); TabbedContent.slideContent($(this)); }); }, slideContent: function(obj) { var margin = $(obj).parent().parent().find(".sliderContainer").width(); margin = margin * ($(obj).prevAll().size() - 1); margin = margin * -1; $(obj).parent().parent().find(".displayContent").stop().animate({ marginLeft: margin + "px" }, { duration: 1 }); } } $(document).ready(function() { TabbedContent.init(); }); </code></pre> <p>I'd paste the CSS but it's a little lengthy, it can be viewed <a href="http://www.aifittingsproto.com/samples/css/uncompressed/cart.css" rel="nofollow">HERE</a> (It's under the comment "Here's the CSS for the tabbed content"). So as you can see from the JS, the arrow is supposed to slide under the correct heading in 350ms, and the associated UL slides into position. Now the movement seems to be fine in IE and Firefox, it's just that the positioning of the pointing arrow is way off. Hopefully someone in the community can spot my flaw. Thank you in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload