• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

css

Blank Images

August 24, 2011 by Webhead

Problem:

When using Canvas and making a image appear with a grayscale when loading, the images sometimes do not display.

Solution:

Use “onload” html attribute to change the image source after it gets a chance to load.

Filed Under: Coding Tagged With: css, html, javascript

Box-Shadow CSS3

August 20, 2011 by Webhead

A great explanation on box shadows:

http://www.css3.info/preview/box-shadow/

Filed Under: Coding Tagged With: css

IE screenSize

July 9, 2011 by Webhead

Problem:

Apparently no one cares about a user’s actual screen resolution.  Usually I don’t too, but in this case I do.  In creating a home page with an image as the background and expands as the user expands their window, the overflow is hidden.  However for users with a low resolution this means that they cannot scroll to see what else is on the page.

Solution:

The workaround for this is to detect the users screen resolution and change the css overflow attribute on the html, body tags to be “auto”.  I have two monitors, one at 1600×1200 and another at 1024×768.  On firefox and chrome the height values match with the javascript property screen.height.  On IE the value is always 1200.  I’m guessing it’s because the 1600×1200 monitor is my primary monitor.

Filed Under: Coding Tagged With: css, IE crap, javascript

Share Buttons with jQuery

July 6, 2011 by Webhead

Simple as pie… Adding share buttons using jQuery and CSS:

http://www.webanddesigners.com/floating-share-box/

Filed Under: Coding Tagged With: css, jquery

Styling for Mobile Web

July 1, 2011 by Webhead

Developing for IE, Firefox, Safari, and Chrome is a pain!  But now we have mobile devices like the iPhone and iPad.  This website demonstrates a nice way to handle these:

http://www.danstorm.com/dan-storm-article-css-15.html

Filed Under: Coding Tagged With: css, iPad, iPhone

Drop Shadow with CSS

June 15, 2011 by Webhead

.shadow {
	-moz-box-shadow: 3px 3px 4px #000;
	-webkit-box-shadow: 3px 3px 4px #000;
	box-shadow: 3px 3px 4px #000;
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}

Solution found here: http://robertnyman.com/2010/03/16/drop-shadow-with-css-for-all-web-browsers/

Filed Under: Coding Tagged With: css

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 4
  • Go to page 5
  • Go to page 6
  • Go to page 7
  • Go to page 8
  • Go to Next Page »

Primary Sidebar

Topics

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php php 5.3 responsive rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools