smoothdzion


Member since 11/04/2009

Name: Brandon Buttars

smoothdzion

Location: Spanish Fork, UT

Website: http://brandonbuttars.com

19 snippets

2747 profile views

5 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

smoothdzion's Recent Snippets



« Prev 1 Next »
Use this to go to a URL when selecting an option.
2 682 posted 13 years ago by smoothdzion
Same as my other snippet of XHTML to test with for CSS, but also have included message code for different types of messages. Perfect for building and styling applications.
1 848 posted 13 years ago by smoothdzion
When creating a drop-down menu/hover menu, the subitems will usually go as wide as the parent li. To make them go as wide as the value of their containing li you have to add a white-space: nowrap. If you still run into issues you may have to ma...
1 576 posted 14 years ago by smoothdzion
Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet. It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programm...
3 783 posted 14 years ago by smoothdzion
Great short snippet of code to toggle checkboxes. Thanks [Josh Nathanson](http://groups.google.com/groups/profile?enc_user=aAOlJRcAAAC7dB8ku2NsRGdjbPtXhPEXHqZiDvCVswhrZ6TQxKj0ww) for putting this simple code together.
6 684 posted 14 years ago by smoothdzion
Regular menu item adding current class if current url equal menu item destination.
1 730 posted 14 years ago by smoothdzion
I needed to make menu items that kept the current class based on the controller being accessed.
1 533 posted 14 years ago by smoothdzion
I needed to copy the value of one field to a couple of others in case users decided to forget to fill them out. Using jQuery and added it to a helper because I was using in multiple places. Created variables to make it more readable.
1 596 posted 14 years ago by smoothdzion
Adds a browser and operating system class to your HTML Tag.
1 758 posted 14 years ago by smoothdzion
The code to find all objects from a model and use them as select options.
1 762 posted 14 years ago by smoothdzion
For separating a list of categories with a comma that are linked. There may be a better way. Leave a comment if you have a better way. This was the first way I found that worked. This code increments the count 1 at a time. It applies the incre...
1 515 posted 14 years ago by smoothdzion
Used to create checkboxes to select multiple categories for a post or any other type of applicable situation.
1 501 posted 14 years ago by smoothdzion
Makes your PRE code wrap and work with all browsers.
1 700 posted 14 years ago by smoothdzion
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14 1640 posted 14 years ago by smoothdzion
When I use the 960 Grid this is the code I use along with a CSS Reset. I really like Blueprint's default HTML Element styles, but I like the grid of 960.gs. This is a mashup of the code.
2 577 posted 14 years ago by smoothdzion
This code will allow you to have a full screen iframe with a header like a lot of sites do when navigating outside their site or featuring templates and things. Reference your CSS however you want. The HTML is necessary how it is, but add any addit...
1 1552 posted 14 years ago by smoothdzion
In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag. Replace /G1/example.com with whatever you want to use to identify the link.
1 656 posted 14 years ago by smoothdzion
Reset that I use for all my projects. I've added a class '.ib' at the end to easily add inline-block styling to any element.
1 592 posted 14 years ago by smoothdzion
First value takes empty input values and adds 'Enter Value'.<br> Second snippet removes 'Enter Value' when input is focused.<br> Third snippet re-adds 'Enter Value' if the value is left blank.
2 789 posted 14 years ago by smoothdzion
« Prev 1 Next »