Profile
Achievement
apphp-snippets's Recent CSS SnippetsTagged css
- All /
« Prev 1 Next »
If using transparency on a block element it makes the text inside transparent as well. Is there a way you can prevent that from happening? Yes, you may do it by putting the text in another div and setting the opacity to 100%, but that didn't do the j...
0
1031
posted 6 years ago by apphp-snippets
You may align background image not only to left or top corner, but also use an offset for alignment.
0
1080
posted 6 years ago by apphp-snippets
It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.
0
900
posted 8 years ago by apphp-snippets
It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.
0
875
posted 8 years ago by apphp-snippets
This solution is based on Chrome specific CSS extension. Other browsers will ignore this rule.
0
824
posted 9 years ago by apphp-snippets
This example shows you how to create custom tooltips, using just a pure CSS. In this examples we use "transform" feature of the CSS3 and some other tricks. Also you may find additional tooltip class provided, to show you the way you may customize thi...
0
670
posted 10 years ago by apphp-snippets
This solution will help you to prevent many issues with your site, when you need to prevent long URL's from breaking out of container.
0
753
posted 10 years ago by apphp-snippets
Using the same code in different browsers can be displayed in different ways. Resetting styles will help you to avoid such problems.
0
748
posted 11 years ago by apphp-snippets
These 2 techniques can be used for alternating row-colors in a table.
0
742
posted 11 years ago by apphp-snippets
Today with CSS3, you no longer need a background image for gradients. You can use CSS to add a gradient to the background of some elements on your page. For ex.: change the color hex values ("84c8d7" and "327fbd") to the gradient color you need.
1
716
posted 11 years ago by apphp-snippets
This solution is based on Mozilla specific CSS extension. Other browsers will ignore this rule.
0
598
posted 11 years ago by apphp-snippets
This can be used in casting shadows off block-level elements like divs, tables etc. (still not supported in IE7 and IE8). Parameters (from left to right): horizontal offset of the shadow, vertical offset of the shadow, blur radius (optional), spread...
1
649
posted 11 years ago by apphp-snippets
Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).
0
577
posted 11 years ago by apphp-snippets
These 2 techniques can be used for alternating row-colors in a table.
1
833
posted 11 years ago by apphp-snippets