The Official Blog of Patcoola

Im just a dude watching over my parents,
and trying to make cartoons and video games from home.

Script: Set Style Box Sizing [JS]

, By Patcoola

Script Title: setStyleBoxsizing
Programming Language: Java Script
Date Completed: 2013/04/06

Purpose: Sets the Cascading Style Sheet’s (CSS) Box sizing.

Advertisement

Donate Now!

This might not be the best time, but making a blog is not easy. Would you consider donating?


Description: Sets the CSS Box sizing attribute with cross browser compatibility. Returns true or false if successful, returns undefined if an input is not valid.

Compatibility: Tested with Chrome, Firefox and IE9.

Method:

setStyleBoxsizing ( elementID_s, value_s );

Example Usage:

setStyleBoxsizing ( “myDiv”, “border-box” );

 

Advertisement

Donate Now!

Hi there, I spend a lot of time making this blog.

It would be great if you would consider donating.


 

Post Meta

Share Post

 

Comments: Write Comment

Be the first to write a comment.


Leave a Comment


All comments are reviewed before publishing. Comments must be related to the page topic, must not be spam, and must comply with the criminal code of Canada.