treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Keyamoon

  • Issue with Icon Fonts in Chrome 23

    If I'm guessing right, you're experiencing this bug on Windows. Some of my other users had this issue. But there's an easy workaround for it: Use the PUA encoding. You can reset the encoding of your font to PUA in the font tab of the …
    Comment by Keyamoon January 14 permalink
  • JQuery - need to target iframe with src="vimeo"

    This should do it: var ret = []; $("iframe").each(function() { var $this = $(this); if ($this.attr('src').match(/vimeo.com/ig)) ret.push($this); });
    Comment by Keyamoon March 2011 permalink
  • Padding problem with web fonts on linux/mac

    Thank you @wolfcry911 for sharing your results. Here's what I've got: http://img156.imageshack.us/img156/7114/fontissue.jpg as you can see, Ubuntu does not include some of the pixels on top as part of the text and therefore, when adding …
    Comment by Keyamoon March 2011 permalink
  • Padding problem with web fonts on linux/mac

    "test-jump" didn't change anything for me. windows is till showing it right, and linux is showing it the same as before.
    Comment by Keyamoon March 2011 permalink
  • Count posts excluding certain categories

    You could also use get_posts() with the category__not_in parameter and then counting the number of returned posts but I'm not sure if it would be a faster/more efficient solution.
    Comment by Keyamoon February 2011 permalink
  • PHP arrays

    I would use regular expressions to achieve this: preg_replace('/\s(\w+)$/i', ' $1', 'this is a sample sentence');
    Comment by Keyamoon February 2011 permalink
  • Div collapsing

    There are lots of benefits in using a grid system. I'd rather leave you with google.com and this video below =) http://developer.yahoo.com/blogs/ydn/posts/2009/03/website_and_webapp_performance/ glhf
    Comment by Keyamoon February 2011 permalink
  • Best free web editing software for windows?

    Notepad++ is the best option for windows. I use it with a monokai theme and the consolas font.
    Comment by Keyamoon February 2011 permalink
  • Div collapsing

    Basically, you should use a grid system. My favorite is the one that comes with oocss. It will help you make any flexible layout very easily.
    Comment by Keyamoon February 2011 permalink
  • Best way to achieve this gallery in Wordpress

    I wish there was a way to customize wp's gallery shortcode without hacking... I don't think there's a plugin that can do exactly what you want. So, I suggest you to write your own custom shortcode.
    Comment by Keyamoon February 2011 permalink
  • Div collapsing

    Your clearing should happen after and next to the floated box. your content doesn't have any float properties and so your footer is not clearing anything. As a quick fix, you might want to add a float: left to your container. Or, you may want t…
    Comment by Keyamoon February 2011 permalink
  • (Clearing Floats): BR Clear="ALL" ... :-)

    If you have a grid system, you wouldn't need a br with clear: both. However, you may still want to have a clear class in your css for special situations. I would avoid that deprecated attribute or inline styles.
    Comment by Keyamoon February 2011 permalink
  • Div collapsing

    You didn't post your html so I'm not sure why that clear: both on your footer is not doing the trick. Still, you might want to try adding overflow: hidden; to your wrapper.
    Comment by Keyamoon February 2011 permalink
  • CSS Positioning

    Try using vertical-align: middle on the elements you want to center vertically. Notice that the container should have a line-height equal to its height for this trick to work. vertical-align does not work for block elements so you can't center …
    Comment by Keyamoon February 2011 permalink