Profile

Achievement

first submission:submitting first snipplet

apphp-snippets's Recent SnippetsTagged css



« 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 1036 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 1093 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 906 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 884 posted 8 years ago by apphp-snippets
This solution is based on Chrome specific CSS extension. Other browsers will ignore this rule.
0 828 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 675 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 758 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 755 posted 11 years ago by apphp-snippets
These 2 techniques can be used for alternating row-colors in a table.
0 748 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 722 posted 11 years ago by apphp-snippets
This solution is based on Mozilla specific CSS extension. Other browsers will ignore this rule.
0 604 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 658 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 585 posted 11 years ago by apphp-snippets
Usually when you're using different CSS files on your site, they might take a quite long to be loaded. Using this PHP code, you can compress them into a single file with no unnecessary white spaces or comments. Why we need to compress multiple CSS fi...
0 611 posted 11 years ago by apphp-snippets
These 2 techniques can be used for alternating row-colors in a table.
1 838 posted 11 years ago by apphp-snippets
« Prev 1 Next »