I am trying to integrate Google CSE in a page with BS3. Looks like BS3 is messing up the search box and button.
http://jsfiddle.net/DTcHh/509/
This is how the code looks in IE and Chrome http://i.imgur.com/vungb7v.png
The search icon is missing in the button and the bottom bar is missing in Chrome.
I tried playing around with
input.gsc-search-button
.reset-box-sizing *
but since I have only basic CSS skills I cannot figure out how to fix this. Can someone please tell me how should I fix this so that the box and button looks fine in IE and Non IE browsers.
All what you have to do is to replace the CSS values that are making problems and to know what you must replace and what are the values that you must change to is to take advantage from Google Chrome's "Inspect Element" feature.
You can see the effect on my own server on :
http://link-sa.ga/gcse/
Download the source code:
https://www.dropbox.com/s/bo01xp2agvp7w4e/index.html
JSfiddle:
http://jsfiddle.net/rsm23/GPLyM/
Read the comments under the GCSE call for the css code is should be like this :
<gcse:search></gcse:search>
<style type="text/css">
body {
margin: 10px;
}
#gsc-iw-id1{
height: 30px;
border-color: #898989;
}
input.gsc-search-button-v2{
width: 71px;
height: 29px;
}
</style>
Related
Im using the Facebook Button by BestWebSoft plugin in my WP site.
I'm trying to style the Facebook like button. Just want to make it bigger. Using my browser I see this rule for the like button that controls the size.
._2tga._49ve {
border-radius: 3px;
font-size: 11px;
height: 20px;
padding: 0 0 0 2px
}
I can't seem too change it. I've the "custom code" tab in the product settings, my child theme style sheet with !important, an internal style sheet in the head and even looked for the code in the plugin files, but nothing is working.
Can anyone help with this? Here is the page the FB like button is on: http://vote.krankgolf.com Thank you
It is not allowed to change the appearance: https://www.facebookbrand.com/dos-donts
Don't: Modify Facebook brand assets in any way, such as by changing the design or color
You can only use the Like Button just like you get it, but there is an option to make it larger in the Like Button generator: https://developers.facebook.com/docs/plugins/like-button
Example:
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
I've been customizing a one-page-design wordpress template (see http://ggc.inductiveplay.com) - it pulls up a floating button on the home page that :should: scroll down to the next section (#menu), but for some reason it keeps pointing to the 3rd section (#location).
I'd like to just override the link in CSS where I'm customizing the button size/appearance and assume I just have bad syntax here:
.a-btn {
padding: 2px 12px !important;
margin-bottom: 5px !important;
opacity: .8;
z-index: 1;
href="#menu";
}
If there's a quick fix for this I'd love to know, otherwise I'd love any insights on where the link is being set/computed on the site.
You can add things before and after a HTML element in css. But you can't change a link using CSS.
The below is bad CSS syntax:
href="#menu";
To add things before something in CSS you can have a HTML element like:
<div class="sample-text"></div>
Then using the following CSS:
.sample-text:before {
content:"blah blah";
}
Instead of "blah blah" you can have something else.
You can't use HTML in the CSS so you can't do what you want, but this is the closest you can get to it.
However you can change links using javascript.
Also you can only use z-index if you specify a position:relative, position:absolute or position:fixed.
The Person Icon that represents the Street View on Google maps seems to be having issue on my insert. I am using the v3 api and The Icon placement is there but the icon seems missing or distorted.
If you look at the image something is there but it disappears on hover. Any ideas what could cause this.
I believe its could be to do with some of my pages code as if i do a vanilla version it seems ok, but i am not targeting this at all and was wondering if anyone else has come across this and might have an idea etc
This is definitely a CSS issue. Look for CSS that is applying to all images like:
img {
max-width: 100%;
}
Select only Google Maps and keep the rest of your site responsive
.gm-style img {
max-width: none;
}
Just set:
img {
max-width: none;
}
I am having a problem with the onestepcheckout login popup, its working fine in normal browser in a computer but while trying to login using an iPhone the login popup gets hidden and cannot see it.
I tried to change the css and i find out that it has an inline css and what ever i try to put in there gets overwritten by the inline css, and i cannot seem to find how the inline css is being put in that block all i see is :
login_popup.phtml
<div id="onestepcheckout-login-popup" style="display: none;">
but when i see it in a firefox browser through a firebug it gives me
<div id="onestepcheckout-login-popup" style="margin: 0px; position: absolute; z-index: 9999; top: 264px; left: 555px;">
I need to change the css so that it will be visible on the iPhone also , but i am having difficulty as i cannot find how the inline css is being put in there, anybody who encountered this problem with onestepcheckout or anybody, any suggestions or solutions will be greatly appreciated and thanked for.
Thank you
I've been stuck on this for 3 days now.
I have two pages that basically share some code for a search feature on my website, here's my code
The CSS
#btnSearch {
display: block;
color: #ffffff;
width: 100px;
height: 27px;
border: 0;
padding: 0;
background: transparent url("Images/btnSearch2.png");
}
When I'd gotten the one page working, I copied that code to the page where it doesn't work, but it hasn't made any difference, here's the HTML (don't worry about the inline css, that's just for convenience while I'm working on it...)
EDIT1:
All other classes work correctly as they (along with the css above) come from a stylesheet at <webroot>/App_Themes/Default... The images go in a subdirectory of this location.
I don't see why this code works on 1 page and not the other when all the other CSS classes work on both pages...
Have you tried the absolute image path and see if it works that way?
Maybe it´s a Browser problem: Try to open the file that doesn´t work in another browser.
Maybe you have a tag named the same way #btnSearch in the pages where the styles don´t apply.
Is the path to the background image correct for the page where the code doesn't work? Or even the path to the CSS file?