RSS Feed

Author Archive

  1. CSS3 Box Sizing

    January 8, 2012 by Austin Hallock

    CSS3 let’s you do a lot of cool stuff, most of which add graphical enhancements like gradients and rounded corners, all of which are great. Lately however, I think my favorite new property is box-sizing.

    There are two modes: content-box and border-box. content-box is default, and will calculate the true width for an element as width+padding+border. So if you have a child <div> with 100% width and 10px of padding, it will extend outside the parent <div>. Here’s an example of content-box:

    The parent<div> has a black background and the child has a red background with 50% opacity (rgba is another awesome new tool to use with css)

    With border-box, the padding and border are included in the width of the element. So an element with width: 300px; and padding: 10px; will still have a width of 300px, rather than 320px. Here’s the example from above using border-box:

    This allows for more fluid specification of widths in a lot of instances. Say you need a textarea with width: 100%, you can add padding to it and not have to worry about it extending to be wider than what you really want. Before, I always had to set a fixed width, which obviously isn’t ideal when developing a site you want to work in a variety of resolutions and devices (mobile).

    The box-sizing property doesn’t work in IE 7, but you can get around that with this.

    Here’s how you implement it:

    box-sizing: border-box;
    /* Firefox */
    -moz-box-sizing: border-box;
    /* Webkit */
    -webkit-box-sizing: border-box;
    /* IE */
    -ms-box-sizing: border-box;
    /* Opera */
    -o-box-sizing: border-box;
    

    Hope this helps you out like it has helped me!


  2. A Recap of 2011, and Looking Forward

    January 2, 2012 by Austin Hallock

    It’s that time of year where everyone writes their blog posts detailing the past year, so here’s mine.

    2011 was a fun year – the three things that stick out to me for this past year are going on a lot of adventures (that I wouldn’t normally do) with my girlfriend, the development of IMLoop, and my transition to the University of Texas. Of course, a lot more happened this year, but for the purpose of being succinct, those are the three that stand out most.

    Rachel and I have done a lot this year, most notably our road trip to Florida. We spent a week in New Orleans, LA; Panama City, FL; and Treasure Island, Fl. I never made a blog post about this, but we both had a lot of fun, and made memories for a lifetime. Here are a few pictures from the trip.

    Another big part of my year was the creation and development of IMLoop. Though I’m admittedly not a fan of Internet Marketing, I like the people in the industry (well, most of them  ;)), and I’m proud of what I’ve created. I’ve put hundreds of hours of work into it, and it has certainly been a good learning experience.

    The last major thing of 2011 for me was transferring from Austin Community College to the University of Texas. Ever since I was a kid I wanted to go to UT (I did go through a phase where I wanted to go to Yale, and CU was always an option to, growing up near Boulder). I’ve finally reached that. So far, so good – UT is certainly more difficult than ACC, but it also provides a lot more opportunities, and I like that the professors are passionate about what they do. My favorite class was Architecture and Society taught by Larry Speck…I was only taking it for the Fine Art credit, but it turned out that I learned a lot about what is always surrounding me.

    With 2011 in the past, it’s time to look forward to 2012. As I mentioned, being at the University of Texas means a lot more opportunities for me, and one of those is a class called 1 Semester Startup. It’s essentially a startup incubator for UT students. While in the program you get advice from a bunch of smart people, and learn a lot about entrepreneurship and startups as a whole.

    I’ve applied for the class with a fellow UT student and a project involving HTML5 and WebGL, it’s an idea we’re really excited about. So hopefully, that class will help us in our endeavor in creating something amazing. I’ll have more on this soon.

    I want 2012 to be another year where I learn and improve upon myself by leaps and bounds. Of course, I’d love to see this startup become a success… it has all the right components so it’s just a matter of execution mixed with a bit of luck.


  3. My Infatuation with WebGL

    December 22, 2011 by Austin Hallock

    WebGLThe past year plus, whenever I’ve had free time, I’ve used to it to familiarize myself with WebGL, a new technology that allows some pretty awesome graphics to work in your browser without any plugins (utilizing HTML5′s <canvas>). Part of that time has been spent developing a game (which can be very hard work), and I even used the technology to make my girlfriend’s anniversary gift.

    Most software has moved to the web in the past 5 or so years, and games are sort of an exception. Of course there are web games, and some very popular ones at that (Farmville, Words with Friends, Sims Online, etc), but no truly awesome 3d games. With WebGL, hopefully that can happen.

    Here are a couple cool demos using WebGL (you’ll need a newer version of Chrome/Firefox, or some beta builds of Opera/Safari): Cars and Rigging

    There are even projects in the works to get this all working with gamepads. As I was developing my game, I made use of APE Project to handle multiplayer connection, so if you’re interested in developing a multiplayer game, consider that.

    WebGL is something I hope to continue working with, I’ve always been fascinated by video games, and I have a few ideas up my sleeve – so watch out!


  4. Looking for Beta Testers!

    April 1, 2011 by Austin Hallock

    I’m at that point in the development of new program where I need other people to rummage through the site looking for bugs.

    If you’re at all interested (it’s internet marketing related), send me an email: austinhallock [@] gmail [dot] com.

    IMLoop


  5. CSS Gradients

    May 9, 2010 by Austin Hallock

    One of the cool CSS techniques I used a few places in Sweeva was CSS gradients … That’s right, gradients WITHOUT the use of images, it’s pretty cool!

    So cool in fact I made a site dedicated to it, it’s pretty easy to use and spits out the CSS you’ll need for the gradient background: http://css-gradient.com/ (I got inspiration from this awesome site)

    That CSS should work in every browser except Opera, if you’re in Opera you’re out of luck. If you’re a beginner to CSS and the code it spits out means nothing to you, this post should help!

    Hope you all like it!

    If this gains traction and I get a few comments asking for it, I’ll spend the time to make those input boxes draggable so you can change the gradient’s angle.