Forums Get help. Give help.
CSS Transform Skew One Side with RGBA
-
-
Can you please go into more detail in regards to what you are after.
-
Without getting into the RGBa (which doesn't relate to skewing) it's certainly possible to skew a rectangle (CSS3 only for browser support).
http://jsfiddle.net/Paulie_D/Hfkk7/1/
I'm still not entirely sure what the OP is after however. -
cnwtx THANK YOU!!
using :before is not only better, the angle looks more defined as well. I had some problems where the skew being jagged with linear-gradients, rgba borders, and even overflow: hidden!
You are using the triangle borders with :before, that's absolute genius! I no longer have to counter the skew for the text as well!
I wanted to have a border around the rectangle with one skew, but I think I can live with this method!
If anyone knows how to do this with skew, please advise!
Codingforum post
I've helped people on codingforums for the past year, but when I needed a question answered, no one knew how. Sorry for the multiple forum post, but this forum is way more professional! -
Hmmm... The one that I made doesn't allow for transparency through the angled area. See here: http://jsfiddle.net/Hfkk7/4/ Here's one that might work better for what you want: http://jsfiddle.net/Hfkk7/5/
-
-
Can you explain what don't understand? Is this more like what you want: http://jsfiddle.net/djuKm/
-
Nevermind, I got it!
Live Link
I was actually pretty hesitant to use :before since the browser support would be different from skew. I just set .claw-main to 100% width and used overflow: hidden; on the parent. This method will work in all browsers, since I'll be using the matrix filter for ie6-8.
Big thanks to everyone!!! Really appreciate cnwtx effort! <3 -
Believe it or not, there is actually quite a bit better support for :before than for skew. See here: http://caniuse.com/css-gencontent and here: http://caniuse.com/transforms2d
-
yeah i know, I often use the :before, :after display:table; clear method
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Categories
- All Discussions15,493
- CSS Combat7,193
- Other Discussions3,820
- JavaScript Jungle2,455
- PHP Problems2,025
Tips
Just some helpful hints to get the most out of the forums.


