Css two boxes left and right with transform - css

As i titled i have two boxes like this Guys now you can understand my problem ;)
in a responsive layout i want to display this boxes with background yellow transform like this one of left is float left and other one is float right of the browser window. i think its too hard please help me friend's :(
iam using css3

Here's your (mostly) cross-browser solution:
<style type="text/css">
#oneOfYourRectangles
{
-ms-transform:rotate(10deg); /* IE 9 */
-moz-transform:rotate(10deg); /* Firefox */
-webkit-transform:rotate(10deg); /* Safari and Chrome */
-o-transform:rotate(10deg); /* Opera */
}
#theOtherRectangle
{
-ms-transform:rotate(350deg); /* IE 9 */
-moz-transform:rotate(350deg); /* Firefox */
-webkit-transform:rotate(350deg); /* Safari and Chrome */
-o-transform:rotate(350deg); /* Opera */
}
</style>
Ya know, I never did get around to testing to see if negative values are supported.
Also, note that obviously the 10deg and 350deg are just guesses. Replace them with whatever value fits best.
And, just for funsies, note that webkit (Safari and Chrome) support 3D transformations, too.

Related

span is not properly displayed in opera

the spans .cursor and .cursorinner aren't displayed in opera, is there an opera specific css property I could set? is my css invalid or is this an opera bug?
i just tested this with different browsers, works in
ie 7-9
chrome
safari
firefox
doesn't work in opera tho
fiddle is here : http://jsfiddle.net/etj6z/1/
This isn't working because you're depending on 2 inline elements to have defined block dimensions. Adding display: inline-block; (or display: block;) to the cursor spans make the element display in Opera. There is an additional issue with the blinking, which is due to the same issue. You'd probably be better off using show() and hide() but otherwise you should be using display: [inline-]block; in the js also.

Links wont work the same in IE

I have built a module for galleries, here you have 2 examples, at the bottom of the page:
http://www.we-do.com/referenzen/watch-your-web/
As you see, in modern borwsers, clicking anywhere in the box will open the lightbox, but in IE 7 and 8 has completely different behaviours. How could I normalize it?
Here is the dirty hack for IE7 and IE8,
CSS
/* IE Fixes */
html.ie7 .gallery-links, html.ie8 .gallery-links {
background: url("http://triggertek.com/r/transparent_png/pixel.png") repeat;
} // i used 1px transparent png to solve it.

css property not working for IE6

I have this :
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.56)), color-stop(100%,rgba(210,210,210,1)));
Its working for all browsers and for IE9 , but not working for IE6
Can someone tell me what to use else
Regards
You need to use IE's old filter rules, the rule you mentioned in the question has a vendor prefix which is targeting webkit (chrome, safari etc) browsers only. - there's a neat generator here which will help you out in making cross-platform gradients. IE6-9's rules look like this:
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 *
The webkit prefix only works in Webkit browsers, which are Chrome, Safari, and Android and iPhone. For example, you'd need to use -moz for Firefox, and -o for Opera.
IE6 doesn't have any gradient support at all, so you'll need to use an image instead, or drop IE6 support, which is probably a good choice; not many users are still on IE6. (Unless this is meant for use specifically in for example governments, they're often stuck.)
Internet Explorer gradient filter doesn't support color-stop, gradient angle, and radial gradient. That means you can only specify either horizontal or vertical linear gradient with 2 colors: StartColorStr and EndColorStr.
Internet Explorer 8 and lower aren't the only browsers that don't support gradients, so using filters won't catch all browsers.
Another approach is to use Modernizr to feature detect support and use a fallback image or solid colour.
For example:
#box {
// Normal gradient syntax
}
.no-cssgradients #box {
// Fallback image
}

Webkit / Firefox alignment issue

I'm stumped here. I've got maybe 2-3 pixel difference with my header text (img) when displayed in FF vs an webkit browser. Not a whole lot going on in this page. Both the CSS and HTML validates. Doesn't appear to be and text zoom related. What am I missing?
www.caribouhouse.com
There's a hack for overwriting a css rule in firefox 3 , you can use this :
.foo{}/* other browsers */
.foo, x:-moz-any-link { } /* FireFox 2 */
html>/**/body .foo, x:-moz-any-link, x:default { } /* Only FireFox 3 */
FF and WebKit use different methods/algorithms to render text. Even WebKit by itself uses more than one method to render text, depending. Because of kerning etc it's normal to see different implementations have a difference of a few pixels when rendering text, even when the text is the same font in both cases.

CSS3 Box-Shadow applying to content in IE

Hi I was trying to apply a box shadow to my main content box but it doesn't work correctly in IE. Rather than applying the shadow to the edges of the box like in firefox & chrome it seems to apply shadw to the content.
here are the filters im using:
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=10, Direction=0, Color='#000000')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=10, Direction=0, Color='#000000');
I suggest using CSS3 PIE (http://css3pie.com) instead of filters. It offers a much more complete and accurate rendering of shadows that matches that of native-CSS3 browsers almost identically. It keeps your CSS cleaner too.

Resources