CSS how to solve -webkit- functions
Tags: css
Problem :
I'm currently using this code taken from the Chrome settings page and it works great on Chrome.
-webkit-box-align: center;
-webkit-box-orient: vertical;
-webkit-box-pack: center;
-webkit-perspective: 1px;
bottom: 0;
display: -webkit-box;
left: 0;
overflow: auto;
position: fixed;
right: 0;
top: 0;
The code does not work on IE and Firefox. How can I use this same code, but then on IE and Firefox?
Solution :
The code you posted is deprecated flexbox code.
Here's a prefixed version, generated with last 10 versions
with Autoprefixer on Play:
flex-align: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-perspective: 1px;
perspective: 1px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
This doesn't include the other CSS in your original post, just the properties that need to be prefixed.
CSS Howto..
Use the class selector with addClass and removeClass. $('.newwidget').removeClass('newwidget').addClass('newerwidget'); ...
try set display: inline-block span{ display: inline-block; line-height: 1em !important; } value line-height from how to decrease the height of content area for <p> with css?...
I don't think so. If you don't use shadow DOM you can't have scoped CSS. One alterantive is to keep shadow DOM and change the CSS you applied to your...
Using jQuery Add a class: $('selector').addClass("classname") Remove a class: $('selector').removeClass("classname") Changing whole class attribute $('seletor').attr('class', 'classname'); Using Javascript Add a class: document.querySelector('selector').classList.add('classname') Remove a class:...
If the parent has a set width, then it will not expand with the width of the child, even if the child's width exceeds that of the parent. See this...
Thanks to the hint from @Morpheus, here is a solution : First, in order to not depend on anything (jQuery, etc.) we need to define 2 functions : One to...
This finds all elements with text-align: justify and sets the border to red. It should be plenty to get you started. Note: This is not very efficient, but there's not...
Add this in the XML: android:digits="abcdefghijklmnopqrstuvwxyz1234567890 " ...
CSS allows a "min-height" property. This can be used to set the minimum height of the div you're talking about. #div-id { min-height: 100px; } ...
In order for the z-index property to have any effect it must be used on elements that are positioned as absolute, relative or fixed. Read more: Understanding CSS z-index -...
Here's the element with the border: As to getting rid of it, you could probably do something like this: .amazon-product-table .amazon-asin-title { border-left: none; } ...
You can use fadeTo() function for this task: setTimeout(function () { $('#menuwrap').fadeTo('slow', 0); }, 3000); $('#menuwrap').hover(function () { $(this).fadeTo('slow', 1); }, function () { $(this).fadeTo('slow', 0); }); Demo: https://jsfiddle.net/sruLsr37/2/...
Here's greate tutorial Creating a Mobile Touch Slide Panel with JQuery. Source code also available on github - jstouchslide.
I guess you want the yellow background for first link so do it like this #menu ul li:nth-child(1) a { background-color: yellow; } Or simply give a class for example...
here is a solution who sweets your needs : Live Demo input:checked ~ img { border: 2px solid #f00; } label, img { position: relative; top: -80px; } label, input[type=radio]...
You can use Flexbox footer{ background-color: #fbfbfb; padding: 10px; display: flex; align-items: center; } #social { margin-left: auto; } <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"/> <footer> <p>Copyright © 2016 Sample SIte</p> <div...
You can learn more about it .fadeOut() Try This Example <div id="clickme"> Click here </div> <img id="book" src="book.png" alt="" width="100" height="123"> Script <script>$( "#clickme" ).click(function() { $( "#book" ).fadeOut( "slow",...
You can't define the border radius separate from its value because it's all one property. There's no way to tell an element to have rounded corners "in general" without also...
I'd suggest that if you're using JavaScript for this, that you don't need ANCHOR tags because you've already negated the need for them. I'd suggest changing to adding click events...
In your css, you've used display: inline-block; and float: left; together. That is not necessary. They kind of have similar effect. Removing float: left solves the problem... .fourth_section .col {...
You can't do it, each font needs it's own separate file. You can use a service to convert a ttf to eot, and svg files and then use some code...
I wonder how could I dynamically resized the div's width to fit the text content (without wrapping)? Assuming the content would fit without overflowing, you could use a float...
try this: <div id="container-galeria"> <ul><li> <img src="galeria1/1.jpg"></li> <li> <img src="galeria1/1.jpg"></li> <li><img src="galeria1/1.jpg"></li> <li><img src="galeria1/1.jpg"></li> <li><img...
Ok I overread something. You have to add {{var non_inline_styles}} to your E-Mail "Template Content" field. Looks like this then: {{var non_inline_styles}} {{block type='core/template' area='frontend' template='email/header-billing.phtml'}} <table cellspacing="0" cellpadding="0" border="0"...
Not exactly cross-browser but works. Hope I've understood your request. http://jsfiddle.net/wmDNr/3/ .triangle { position: relative; width: 20px; margin-top: 100px; } .triangle>div { width: 20px; height: 2px; background: red; margin-top: 100px;...
First you have to start with this html code: <div class="img-with-text"> <img src="http://z.lmnd3.com.s3.amazonaws.com/2015/07/24/20/05/30/422/White_Nectarine_Persian_Cucumbers_English_Peas_Watercress.jpg" alt="image"> <div><h2>Hello!</h2></div> </div> now you have to create...
Maybe you should use viewport sized typography units for the font-size. It can be used when you want to size thing through the viewport's (element container) width or height. Or...
Separate the selectors with a comma: .footer #one .flag li .drop_down form div, .footer #two .flag li .drop_down form div { /* Rules */ } From the selectors level 3...
I am not sure what you're looking for, but maybe just using calc() would be the best way to handle it all. .panel { float: left; height: 160px; width: calc(20%...
You can't target it like that, but you can do something like this bellow. Basically overwriting the rest with the default. A much better approach would be to have different...