Ok so, I'm trying to replicate the effect you see here at the bottom of the page, with the back to top button: http://www.ppp-templates.de/tilability/ - After the content area for We stay connected.
basically he's using a background image for that and I'd like to replicate it with CSS and keep the same effect.
I know how to create triangles with CSS with borders, but in my case I'd like to use the transparent bg image and not a color so I can't use borders
I removed the background image and used #FFF on the whole div, so it's all white now... I created a new div in which I added the back to top button and added background: transparent to it so it's transparent, but how do I create the triangle via CSS?
Any help is greatly appreciated.
Here's one way to make a triangle with fairly minimal markup and css:
HTML:
CSS:
http://jsbin.com/iribib/21
Here you go, http://jsfiddle.net/pkUx7/1/
HTML
CSS
The Fiddle:
http://jsfiddle.net/JaMH9/2/
The HTML:
The CSS:
I just threw this together, there's probably a better way to achieve this effect.
HTML
CSS
See it here.
You can use vector path. For instance, transparent triangle with green border:
See it here.