Google custom search pushed outside box bootstrap IE - css

For education I tried to make my site in a sort of flat design, I use bootstrap as framework. I installed an google custom search as the site search.
In firefox no problems at all, but when I open my site in IE (the usual course of messup), it gets pushed outside the header in a full width
The searchbar gets to 80% width on 1000px or lower, but in ie its 100% all the time. (I'm using IE 11)
I couldn't find any code that should be off
.cse .gsc-control-cse, .gsc-control-cse {
background-color: transparent !important;
border: none !important;
}
.gsc-control-cse {
border:none !important;
background-color: transparent !important;
}
input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus {
border-color: none !important;
background-color: #3cb878 !important;
background-image: none;
filter: none;
}
input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {
border-radius: 5px;
}
input#gsc-i-id1.gsc-input0 {
background-image: none !important;
background-color: #fff;
}
input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus {
border-color: #369;
background-color: #3CB878;
background-image: none;
min-height:25px;
filter: none;
}
.gsc-search-box {
height: 100%;
margin-top: 20px;
display: inline-block;
}
/*google*/
.social .pull-left{
overflow: hidden;
}
#gsc-i-id1.gsc-input{
background-color: #fff;
background-image: none !important;
}
.gsc-control-cse, .gsc-control-cse{
height: 30px;
margin:0px !important;
padding: 0px !important;
border: 0px !important;
background-color: transparent !important;
}
.gsc-control-cse {
border: 0px !important;
background-color: transparent !important;
}
input.gsc-search-button{
height: 25px !important;
}
.gsc-input-box{
border-radius: 5px ;
background-image: none !important;
}
.gsc-search-button .gsc-search-button-v2 {
background-image: url(../img/search_box_icon.png);
background-repeat: no-repeat;
background-position: center center;
border: 0px !important;
}
.gsc-search-button .gsc-search-button-v2:hover {
background-color: #00a651 !important;
background-image: url(../img/search_box_icon.png);
}
.gsc-search-box .gsc-input {
line-height: 0px !important;
}
#media (max-width: 1000px) {
#___gcse_0{
width: 80%;
margin: 0 auto;
}
Is it possible IE is struggling with the media queries ?
The online sample is http://jurjenfolkertsma.nl/bootstrap/

I got working by adding changes to the stylesheet:
.navbar-right {
width: 200px; /* Change it if needed */
}
#media (max-width: 1000px) {
.navbar-right{
width: auto;
}
}
Also the only CSS written for .navbar-right I saw was margin-right: -15px;. Don't know if this was intended or some of your code is missing. :)

Related

How to remove ripple effect from mat-stepper

tihs is the effect when you hover you mose over matstepper
not able to figure how to disable this effect
want to remove ripple effect or focus effect or scrollable affect from mat-stepper
please help me out here
i have tried all the methods
not able to figure it out like ripple effect transparent and on-focus indicator
.stepper-qre {
background: #F5F6F7;
height: 88%;
}
.mat-horizontal-stepper-header-container {
width: 65% !important;
margin-left: 16.5%;
/* display: -webkit-box !important; */
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header {
padding: 24px 0px !important;
}
::ng-deep.mat-stepper-label-position-bottom.mat-stepper-horizontal-line {
top: 34px !important;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label {
position: fixed;
margin-top: 1%;
}
.stepper-qre.mat-step-icon-selected {
background-color: #2699FB !important;
color: white !important;
}
.stepper-qre.mat-step-icon-state-done {
background-color: #2699FB !important;
color: #fff !important;
}
.stepper-qre.mat-step-header .mat-step-icon {
background-color: #C4C6CC !important;
color: #fff;
}
::ng-deep.mat-step-icon {
height: 20px !important;
width: 20px !important;
}
.mat-step-icon.mat-step-icon-state-notcompleted {
background-color: #C4C6CC !important;
}
#activebutton:focus {
border: none !important;
outline: none !important;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
::ng-deep.mat-step-header.mat-step-header-ripple {
background-color: transparent !important;
}
.mat-ripple-element {
transition-duration: 0ms !important;
}
There's a disableRipple property available for the stepper component, as per the API.
Modified the official stackblitz example to demonstrate.
.mat-step-header:hover{
background-color: white !important;
}
.mat-step-header.cdk-program-focused {
background-color: white;
}
.mat-step-header.cdk-mouse-focused{
background-color: white;
}
.mat-step-header.cdk-focused{
background-color: white;
}

How to add a background image to the body of a html email?

How can I add a background image to the body of a html email? Pasted below are my CSS styles:
<style type="text/css" media="screen">
/* Linked Styles */
body {
background:#000;
padding:0 !important;
margin:0 !important;
display:block !important; -webkit-text-size-adjust:none;
background-image:url(images/t1_free_bg.jpg); background-
repeat:no-repeat; background-size: cover; background-position:0
}
a {
color:#e85853;
text-decoration:none
}
p {
padding:0 !important;
margin:0 !important
}
img {
-ms-interpolation-mode: bicubic; /* Allow smoother rendering of resized image in Internet Explorer */
}
.mcnPreviewText {
display: none !important;
}
/* Mobile styles */
#media only screen and (max-device-width: 480px), only screen and (max-width: 480px) {
u + .body .gwfw { width:100% !important; width:100vw !important; }
.m-shell { width: 100% !important; min-width: 100% !important; }
.m-center { text-align: center !important; }
.center { margin: 0 auto !important; }
.td { width: 100% !important; min-width: 100% !important; }
.h2 { font-size: 35px !important; line-height: 40px !important; }
.nav { font-size: 12px !important; line-height: 22px !important; padding: 10px !important; }
.m-br-15 { height: 15px !important; }
.p0-15-30 { padding: 0px 15px 30px 15px !important; }
.p0-20-30 { padding: 0px 20px 30px 20px !important; }
.p30-0 { padding: 30px 0px !important; }
.p30-20 { padding: 30px 20px !important; }
.pb30 { padding-bottom: 30px !important; }
.p10 { padding: 10px !important; }
.m-td,
.m-hide { display: none !important; width: 0 !important; height: 0 !important; font-size: 0 !important; line-height: 0 !important; min-height: 0 !important; }
.m-block { display: block !important; }
.fluid-img img { width: 100% !important; max-width: 100% !important; height: auto !important; }
.column,
.column-dir,
.column-top,
.column-bottom,
.column-dir-top { float: left !important; width: 100% !important; display: block !important; }
.content-spacing { width: 15px !important; }
}
</style>
Any help would be greatly appreciated!
I had an issue like this recently. In my case, I didn't specify the image path properly. Make sure your path (relative or absolute) is correct.

During mobile view, my login drop down within Navbar is jerky and looks weird

I'm a novice, so please excuse me.
I am making a site for work, and using bootstrap. I have a login drop down in the navbar. It looks fine on desktop view, but when scaled way down for mobile view, the once you click the login button or drop down it gets jerky and then the navbar gray bar extends down and just looks all screwed up. HELP!
Here's links.
https://web.gettips.com/redesign7/index.html
https://web.gettips.com/redesign7/css/styles.css
Below is the code for the media queries:
#charset "UTF-8";
/* CSS Document */
#media (max-width: 375px) {
.title {
padding-top: 270px;
}
}
#media only screen and (max-width: 400px) {
.title {
padding-top: 0;
font-size: 12px;
}
#toplogin img {
width: 60px;
height: auto !important;
}
}
#media only screen and (max-width: 767px) {
.footer-bs .footer-nav,
.footer-bs .footer-social,
.footer-bs .footer-ns {
border-left: solid 1px rgba(255, 255, 255, 0.10);
}
#toplogin img {
width: 90px;
height: auto !important;
}
}
#media only screen and (max-width: 773px) {
.title {
padding-top: 5px;
font-size: 15px;
}
#toplogin img {
width: 90px;
height: auto !important;
}
}
#media only screen and (max-width: 1029px) {
.title {
padding-top: 5px;
font-size: 20px;
}
#toplogin img {
width: 100px;
height: auto !important;
}
.panel-heading h1 {
font-size: 25px;
}
}
#media (max-width: 1118px) {
.header img {
width: 80px;
height: auto !important;
}
.navbar-header {
float: none;
}
.navbar-toggle {
display: block;
padding: 3px;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
/* float: none!important;
*/
margin: 0px -15px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 5px;
padding-bottom: 5px;
}
.navbar-text {
float: none;
margin: 15px 0;
}
/* since 3.1.0 */
.navbar-collapse.collapse.in {
display: block!important;
}
.collapsing {
overflow: hidden!important;
}
.dropdown-menu {
font-size: 16px;
}
}
Its because you are add width 100% after click... Add to the div width 100% before click, so when you click on button, the div already have a correct width. See, I add a custom class and define a width.

Only partial image showing as my background image. How can I use CSS to get the full image as my background?

I'm a newbie and I'm trying to figure out how to put a background image on my site. I've linked the image but it seems that it is only showing about 30% of the image. (Just the top of the photo is showing, the whole way across but none of the bottom) I'd like the entire image to be the background. The image is 594kb.
Here is my CSS:
#nav1 {
width: 100%;
float: left;
margin: 0 0 3em 0;
padding: 0;
list-style: none; }
#nav1 li {
float: left; }
#nav1 {
width: 100%;
float: left;
margin: 0 0 3em 0;
padding: 0;
list-style: none;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc; }
#nav1 li a {
display: block;
padding: 8px 15px;
text-decoration: none;
font-weight: bold;
color: #069;
border-right: 1px solid #ccc; }
#nav1 li a:hover {
color: #c00;
background-color: #fff; }
.nav
{
position: fixed;
top: 0;
}
.jumbotron {
background-image: url(../images/image.jpg);
background-repeat: no-repeat;
min-width: 100%;
min-height: 100%;
}
.jumbotron {
padding:0px;
}
body {
font-family: 'Lobster', serif;
text-shadow: 4px 4px 4px #aaa;
text-align: center;
}
h1 {
font-size: 70px;
line-height: 4em;
}
h2 {
font-size: 95px;
line-height: 1em;
}
You have to remember here, that for background images, each person has different screen resolutions and sizes. So having the entire image without some cropping or messing the image ratio is kind of impossible across different screen sizes.
Here is my preferred simple method using background-size cover. - I learned this from CSS Tricks..
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

Split out the css commands manually

The squarespace template that I am using will not let me insert the code below. I got a response back that I need to split out the commands manually.
I am getting an error back with the background: I had tried a few times to accomplish this but couldn't quite get it accurate.
.mobile-nav .show-nav {
background: url("http://www.jobspark.ca/item/517adb63e4b06ea9dd79ace8?format=original") no-repeat scroll center center / 30% auto #000000;
border-bottom: 1px solid #000000;
color: #FFFFFF;
cursor: pointer;
display: block;
max-height: 50px;
padding: 1em 40px 50px;
}
Its likely the CSS 3 background shorthand thats causing the problem, support isn't consistent across all platforms and browsers - you should split the shorthand up like so:
.mobile-nav .show-nav {
background-image: url('http://www.jobspark.ca/item/517adb63e4b06ea9dd79ace8?format=original');
background-position: center center;
background-size: 30% auto;
background-color: black;
/* omitted default values */
border-bottom: 1px solid #000000;
color: #FFFFFF;
cursor: pointer;
display: block;
max-height: 50px;
padding: 1em 40px 50px;
}

Resources