Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In this article I will show you how to use AngularJS and Laravel Blade together.
People who have been using AngularJS for a while may know of this solution. However if you are just getting started or have never used Angular with a templating engine...
0
1116
posted 10 years ago by CreativePunch
This handy tool takes raw CSS and finds all relative URLs for background images and injects the absolute path. After which all the background images are displayed on the page. This is useful if you need a quick way to save all background images at on...
0
891
posted 11 years ago by pussard
Changes shape back and forth from a round element to a square element.
0
775
posted 11 years ago by COBOLdinosaur
I am having an issue making the div stay opened when it gets animated
0
692
posted 12 years ago by skeletor1101
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0
905
posted 13 years ago by zvineyard
Will produce output like this:
<html>
...
</html>
<html>
...
</html>
Target in CSS like this:
html[data-useragent*='Chrome/13.0'] .nav {background:url(img/radial_grad.png) center bottom no-repeat;}
or
html[data-useragent*=...
0
1029
posted 13 years ago by reverend
.zz1_logoLinkId_1
{
color: #fff;
background-image:url("/_layouts/Images/HLLMRKLINK/Logo.gif");
background-repeat:no-repeat;
background-position:15px 10px;
background-color:#67507e;
display:block;
width: 170px;
height: 88px;
overflo...
0
836
posted 13 years ago by nickaranz
JavaScript
Set links with href to current page as active (or if in subnav set their parent to active)
look through the list items in your main nav and based on href of anchor tags this will set the top level link to have an 'active' class.
0
1147
posted 13 years ago by iammikecohen
Removes the margin-right spacing from the item in a line of items. This works cross browser unlike the CSS last-child selector (which doesn't work in IE6 or IE7).
0
770
posted 13 years ago by redconservatory
Learn how to test for CSS property support in specific browsers using this simple Javascript technique.
1
752
posted 14 years ago by neal_grosskopf
Great for those situations where you need an element fixed on a page - so when a user scrolls it stays in the same position - *relative to its parent element*.
0
855
posted 14 years ago by Meander365
[via rtcrm]
CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.
2
842
posted 14 years ago by mennyj
adopted from:
http://www.alistapart.com/articles/makingcompactformsmoreaccessible/
0
817
posted 14 years ago by cfleschhut
Adds a browser and operating system class to your HTML Tag.
1
925
posted 14 years ago by smoothdzion
Puts a red border around anything with an inline style. Prefix with "javascript:" and paste into the address bar to run on a page directly, or run with a load event.
1
763
posted 15 years ago by DaveChild