spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

CSS3: How do I make a linear gradient on top of an image suitable for cross browser compatibility?


div {
  background:
-webkit-linear-gradient(left,rgba(0,0,0,0.2),rgba(0,0,0,0.8));
/*Safari 5.1-6*/
  background:
-o-linear-gradient(right,rgba(0,0,0,0.2),rgba(0,0,0,0.8));
/*Opera 11.1-12*/
  background:
-moz-linear-gradient(right,rgba(0,0,0,0.2),rgba(0,0,0,0.8));
/*Fx 3.6-15*/
  background: linear-gradient(to
right,rgba(0,0,0,0.2),rgba(0,0,0,0.8));
/*Standard*/
} 

You can see full examples from w3schools. Just remember to put the standard syntax last.


Categories : CSS

Related to : CSS3: How do I make a linear gradient on top of an image suitable for cross browser compatibility?
3D CSS Effect (max Cross Browser compatibility)
That's simply a thick outset border, you don't need anything special for that: li { border: 10px outset #CCC; } Here's a JsFiddle example.

Categories : CSS
How can I improve cross browser compatibility of my CSS only slider menu?
How about adding the appearance css für the other browsers? .thing { -webkit-appearance: value; -moz-appearance: value; appearance: value; } Code from here

Categories : HTML
Linear Gradient overlay not Working in IE
user the following style will hopefully do the job for you filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#000000'); check the the Following link for quick understanding http://www.css3please.com/

Categories : HTML
change background height with repeating-linear-gradient
You can control the stripes height by specifying a height to that element: #levelrange { background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 10%, #06b4c8 10%, #06b4c8 30%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 100%); background-size: 9.7% 5px; height:200px; } <form oninput="amount.value=userlevelofsurfing.value"> <

Categories : CSS
Cross-browser way to force SVG fit inside div
The viewBox attribute describes the bounding box of the content of the SVG. It is used by the browser to calculate how much to scale the SVG content so it fills the SVG width and height without overflowing (depending on your preserveAspectRatio setting of course). In your case "0 0 800 400" is wrong. It only covers a portion of the island. A more accurate value is "74 58 617 902". I got that

Categories : Javascript
Recently Add
Ignore CSS declaration on a specific control
Mark space for :after content non-breaking
2 inline images - 1 centered and 1 right using Bootstrap
Bootstrap - three sibling col divs, is this layout possible?
jquery mobile-vertically center two lines of button text
Change footer content in magento
CSS help - Shopify Blockshop theme collection page alt image hover changes
SVG filter feGaussianBlur in percentage
How to remove arrow from select element
how to align sub tags in parent tag
Attribute name "onclick" associated with an element type "Label" must be followed by the ' = ' character
CSS : Fixing up/down arrow CSS
Flip horizontally only one background image
Recent posts in footer widget not aligning
Change fielderror style for a specific form only
Creating disable opacity bootstrap 3?
How to display two nav bars in bootstrap while browsing through mobile and displaying content on it without use of button that bootstrap provides
Why css & image get distorted on URL rewrite in asp.net?
changing css class variables
CSS Scrolling Background Image
Custom Checkbox Not Working in Chrome on Windows
Facebook like box showing only partially
Gulp sass output paths for css.map files Google Chrome can't resolve path
background-image not displaying
Undefined variable in SASS, even though the variable is defined above
css - start new line when we reach width
How to create a horizontal calendar with nested lists?
See current column category used in Bootstrap 3
CSS3: How do I make a linear gradient on top of an image suitable for cross browser compatibility?
Responsive Centered Image: Vertical Resizing - NOT
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.