Web Dev
Fixed position div isn’t staying fixed in Chrome
I was working on a little menu specifically for mobile devices. It was intended that this menu stay fixed at the bottom of the screen. It usually worked, but in some instances in chrome, it would be thrown all the way to the bottom of the document, not the bottom of the window. It looks […]
Read MoreSlide a Div Up From the Bottom of the Page
Sliding down/up from an element is easy, but I had a menu at the bottom of the page, and I wanted a hidden menu to slide up from the bottom of the page, encompass the whole page, and then slide back down when it was time for it to hide. I tried quite a bit of stuff […]
Read MoreRGBA Color Format
Just a sample RGBA color format. This will make a black line (rgb 0, 0, 0), but with .3 opacity: .sample-class{ border-right: 1px solid rgba(0,0,0,0.3); }
Read MoreSASS Quick Guide
Include a mixin (in this case, a mixin with the name of testmixin): .sample-class{ border: 1px solid red; @include testmixin(); }
Read MoreOnly Include jQuery if it Hasn’t Already Been Included
If jQuery gets included twice, things break. Because of various nested documents with server-side scripts, I encountered a few situations were jQuery would occassionally be included twice. To check, and make sure to only include it once, you can use the following:
Read MoreShowing HTML Code on a Web Page
There is obviously a need a site like this to show HTML code within a blog post. Recently the need for this functionality also arose at work, so I decided to put together a quick script to make the task easier. This will scan for a tag with the class of code (ideally a ‘pre’ […]
Read MoreA Super Simple jQuery Fading Slideshow
I usually end up doing a search about every month for a nice slideshow script that fades between the various slides, provides some functionality for the user to jump to a specific slide, and that\’s about it. It doesn\’t have to do crazy transitions or bring out the razzle and dazzle, it just needs to […]
Read MoreAdd Stroked Point Markers to a Google Line Chart
I was pretty easily able to
Read MoreAdd Point Markers to a Google Chart Line Chart
It\’s pretty easy to add points or nodes to a google line chart. The keys are to add the pointSize option to the chart options object. By default, it\’s set to 0, so the points don\’t appear. The color will set to be whatever you have set in your colors series. Also note that the […]
Read MoreTargeting the Submit Button with CSS
Yeah, I always forget how to apply styles to just the submit button. It\’s of course easy, but I can never get it to stick around in my brain for the next time I need to use it: input[type=”submit”]
Read More