Joyride tourstop notices off by 200px - zurb-joyride

I have set up joyride.js for a plugin I am creating so I can walk the user through some basic set up steps before using the plugin. I have it running/functioning correctly, but one thing I notice is that the 'Tour Stops' are about 200px or so lower than they should be.
Could this be due to a padding or margin on my elements? Is there a way to adjust this so that it appears next to the correct element? I have tried setting the tooltip to above, left and right and all of them are about 200 or so px lower than need be.
Joyride settings below:
jQuery(window).load(function() {
jQuery("#TourList").joyride({
autoStart : true,
'tipLocation': 'right', // 'top' or 'bottom' in relation to parent
'nubPosition': 'auto',
// enable cookies to only run the joyride tutorial one time
'cookieMonster': false, // true/false for whether cookies are used
'cookieName': 'JoyRide', // choose your own cookie name
'cookieDomain': false
});
});

I eventually went in and changed the css in joyride-2.1.css
.joyride-tip-guide {
position: absolute;
background: #000;
background: rgba(0,0,0,0.8);
display: none;
color: #fff;
width: 300px;
z-index: 101;
top: 0; /* keeps the page from scrolling when calculating position */
left: 0;
font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", Helvetica, Arial, Lucida, sans-serif;
font-weight: normal;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
margin-top:-55px;
}

Related

Reposition invisible recaptcha

I have a Google invisible Recaptcha that auto positions itself at the bottom right corner of the page.
The footer is now covering this so I want to relocate it. When I inspect its styles I see:
element.style {
width: 256px;
height: 60px;
display: block;
transition: right 0.3s ease 0s;
position: fixed;
bottom: 14px;
right: -186px;
box-shadow: grey 0px 0px 5px;
border-radius: 2px;
overflow: hidden;
}
It looks like the bottom value needs to be changed to unset. When I change this in Chrome it positions correctly.
I have included the following in my style tag however it does not make any difference.
.grecaptcha-badge
bottom: unset

Product Name text overlapping price. How to fix?

HELLO KIND SIRS AND MADAMS,
http://www.statis-online.com For the homepage root catalog,
The product name overlaps the product price (When name is long).
-I would like to know how to make the product name and price not overlap!
(Step by Step Instructions Preferred. Not extremely code friendly)
Either through changing size of words?
or
Placement of price?
Other suggestions are welcome!
Thanks!
In the file style.css you have:
.products-grid .product-name a {
display: block;
color: #222;
height: 44px;
font-size: 13px;
font-weight: bold;
}
You need to remove the height property as the links are set to display as blocks, so the item wont get bigger than the set 44px height and it's overflowing to the next element.
This will fix the name issue, but will make the item boxes holding the products with different heights.
To fix this remove the set height for the price box and set height and position: relative for .item-bottom.
Then you can set the price box and and "add to cart" button to be positioned absolute and set them to be at the bottom of .item-bottom.
So you'll have:
.products-grid .item-bottom {
padding: 10px;
height: 155px;
background: url(../images/griditem-bottom.gif) repeat-x left top;
position: relative;
}
.products-grid .product-name a {
display: block;
color: #222;
/* height: 44px; */
font-size: 13px;
font-weight: bold;
}
.products-grid .price-box {
margin: 5px 0;
/* height: 58px; */
position: absolute;
bottom: 40px;
}
.products-grid .actions {
height: 26px;
position: absolute;
bottom: 10px;
}

White corner showing on black box with Border-radius

I am getting a odd effect (currently in chrome). I have created my own overlay dialog box. which has a semi transparent background sitting on top of my website with a box on top of that. the top of the bar as you can see has a black background. The main part of the box is white thought.
Its not the easyist to see but it is annoying me.
The white is showing through from behind. (I know as if i change it to red it changes colour) Which you can see in the top right hand corner of the screenshots, just above the "X"
Both the header and the box has a border radius 3px
.blockUI .overlay {
background: #f00;
border-radius: 3px;
margin: 0 auto;
padding: 10px;
overflow: hidden;
position: relative;
top: 20%;
text-align: inherit;
width: 600px;
z-index: 10009;
}
blockUI .overlay h1 {
background: #000;
border-bottom: 2px solid #F48421;
border-radius: 3px 3px 0 0;
color: #FFF;
font-family: 'Roboto', sans-serif;
font-weight: 300;
margin: -10px;
padding: 10px;
}
Since overflow: hidden; along with border-radius seems to cause some rendering inconsistencies in some engines (take a look at this), one should use border-radius on both the parent and the child elements to achieve rounded corners.
As you have noticed, you still get some wierd results with extra pixels "shining" through. Just reduce the border-radius of the child (or the other way round) to compensate this.
blockUI .overlay h1 {
border-radius: 2px 2px 0 0;
}
I had same problem. But I solved.
.blockUI .overlay {background:#000;}
and remake some!
You should try on the parent div:
-webkit-background-clip: padding-box;
Finally fixed this completely by adding this on parent and child divs.
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
-webkit-transform: translate3d(0,0,0);
outline:none;
border:none;
text-decoration:none;

How to add a text content slider over full background web page

I want to add a text content slider over a full screen background website. I'm poor in css. So please help me to add a beautiful text content slider that describes about each background image. The following is my background page
http://alampady.tk/fullbg/testbackground.html
Regards
Ashraf
Add this to your
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600' rel='stylesheet' type='text/css'>
And this to your stylesheet
.colorbag {
position: absolute;
top: 300px;
left: 900px;
width: 500px;
border: thin dotted;
height: 200px;
background-color: #ccc;
opacity: 0.6;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
padding: 10px;
font-family: 'Open Sans', sans-serif;
line-height: 22px;
}
.colorbag span.subtext {
font-weight: 600;
font-size: 22px;
}
.colorbag font {
font-weight: 300;
font-size: 14px;
}
Then I think it will be like 10 times nicer =)

IE8 and IE9 :before and :after elements position absolute are hidden

I am trying to create a button with "caps" on either end, and a repeating background, in order to keep the button a flexible size.
In order to do this, I have used the :before and :after pseudo-elements in CSS, along with position:absolute to get it outside of the main button's background-covered space (using negative values).
It works in FF and Chrome, but it looks like in IE8 and 9, the images are there, but are "outside" the button, and therefore are hidden. Does anyone know how to pop these pseudo-elements "out" of the button, so that they will render?
I want to keep the HTML to just the <button></button> element, and am using SASS.
You can see a jsFiddle here: http://jsfiddle.net/Dqr76/8/ or the code below:
button {
display: inline-block;
zoom: 1;
*display: inline;
border:0;
background-image: url(../images/btn_bg.png);
background-repeat: repeat-x;
color: #fff;
font-weight: bold;
height: 22px;
line-height: 22px;
position: relative;
margin: 0 5px;
vertical-align: top;
&:before {
display: inline-block;
height: 22px;
background-image: url(../images/btn_left.png);
width: 5px;
position: absolute;
left: -5px;
top: 0;
content: "";
}
&:after {
display: inline-block;
height: 22px;
background-image: url(../images/btn_right.png);
width: 5px;
position: absolute;
right: -5px;
top: 0;
content: "";
}
}
Just a sidenote, before someone brings it up, I know that these pseudo-elements do not work in < IE8, and have created a work-around that is not effecting this problem.
Add overflow: visible; to the button element, and it shows up.
Demonstrated at this jsFiddle
I swear I tried that already, but I guess not. Thanks to this question

Resources