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

SgtLegend

  • Fittext Issue

    I don't think you will ever get FitText to work with Cufon as it uses which is completely different from web fonts.
    Comment by SgtLegend May 5 permalink
  • Good book for learning AJAX

    O'Reilly has a ton of books about ajax http://search.oreilly.com/?q=ajax&x=-1147&y=-56
    Comment by SgtLegend May 3 permalink
  • Set div width issue in IE7

    This isn't an answer but a reason why IE7 should be dropped from your browser list, currently global statistics show IE8 at around 9% of all web traffic which is extremely low and IE7 is even lower at 2-3% of all web traffic. Considering how lo…
    Comment by SgtLegend April 30 permalink
  • How to add more buttons to wordpress visual editor.

    If you click the last button that will open whats called the kitchen sink which has extra options you can use.
    Comment by SgtLegend April 24 permalink
  • Adjustable width for browser size

    You could use a percentage value and box-sizing which is supported by IE9+ and all modern browsers, IE8 has some support for it but it is buggy. Given that your example doesn't change and you only have 3 boxes per row the following example wil…
    Comment by SgtLegend April 21 permalink
  • Animate :before pseudo class?

    Have a read of the following article http://css-tricks.com/transitions-and-animations-on-css-generated-content/
    Comment by SgtLegend April 20 permalink
  • Which is better practice…

    There is no difference between using " and ', people say there is but I have never seen anything to suggest either one is slower or faster than the other. As for the animation syntax you can generally just leave off the px and use integer…
    Comment by SgtLegend April 20 permalink
  • DIV overlay with scroll

    They haven't done anything fancy, what they did is add padding-right: 100px to the parent container and set overflow-y: visible which offsets the scroll bar to the right but gives you the clean no scroll bar experience. To keep everything cent…
    Comment by SgtLegend April 20 permalink
  • Can CodeKit be set to not compile Javascript

    By default you can't do this currently on a project level basis but you can tell CodeKit not to compile JavaScript by selecting all your .js files in the list and checking Do not compile directly
    Comment by SgtLegend April 20 permalink
  • How to get "data-" values under ul tag into a comma separated list?

    Using the attr method in jQuery for data- attributes is technically correct but its recommended you use the data method which is designed for HTML5 data attributes, see the below example: out.push($(this).data('customerid'));
    Comment by SgtLegend April 19 permalink
  • .slideToggle() only one open at the time

    I've setup a simple demo of how you can accomplish this without using a plugin, it uses some very basic jQuery that performs two checks. http://codepen.io/ChrisUpjohn/pen/42f48677ba5a5b45ded13b986ddfd8fd
    Comment by SgtLegend April 19 permalink
  • Guesses about :not

    The:not selector works as intended if you assign a context to it, if no context is defined it will attempt to select every element in the DOM. See the following example which shows setting body as the context ensures the pseudo selector works as int…
    Comment by SgtLegend April 19 permalink
  • .htacces and hidden files in OSX

    Personally I use Total Finder which comes with a toggle built in for showing hidden files such as .htaccess.
    Comment by SgtLegend March 20 permalink
  • How to write RewriteRule in .htaccess file?

    What happens when you try to use the rewrite rule? Does it 404?
    Comment by SgtLegend February 23 permalink
  • CSS3 Media Queries: max-device-width vs max-width

    Personally I have always just used max-width because it just works for me, that's probably the worst argument to read but I tend to lean towards solutions that work without any extra work which max-width does. I would think max-device-width wou…
    Comment by SgtLegend February 14 permalink
  • Opera on WebKit

    This is just a comment about Opera moving to WebKit; I think its the best move they could ever make as a company since they have been struggling for a while to keep up, while they have produced some pretty cool outcomes for CSS3 properties they just…
    Comment by SgtLegend February 14 permalink
  • Email Help

    Check your spam folder as pretty much all email clients that see an email without X-Spam headers will move it into spam straight away.
    Comment by SgtLegend February 12 permalink
  • Need help centering my navigation!

    The reason I used floats is because it allows for dynamic elements to be added without having a known width for the parent, for text-align to work you generally need a known width on the parent element otherwise it aligns to the left side of the pa…
    Comment by SgtLegend February 11 permalink
  • Clearfix to much??

    Personally I see it coming down to how well formed your markup is and how semantic your CSS is, if your using a lot of floats for elements that don't need them that would be cause to re-think your approach and try to optimize it without using c…
    Comment by SgtLegend February 11 permalink
  • Html coding for emailers/newsletters

    1. elements should NEVER be used in HTML emails, they break in pretty much all email clients 2. You can use reset CSS as it works for newer email clients and also can supply fixes for email clients that support them 3. You can only use elements …
    Comment by SgtLegend February 11 permalink
  • Need help centering my navigation!

    See how the following goes for you. http://codepen.io/ChrisUpjohn/pen/IByiz
    Comment by SgtLegend February 11 permalink
  • IE not respecting z-index

    Ok I think I found the issue, in your stylesheet remove your z-index from the header selector and it should then work perfectly in IE.
    Comment by SgtLegend January 22 permalink
  • IE not respecting z-index

    I had a look at your site in IE 7-10 and it was consistent between each browser, could you please post a screenshot of what you see to clarify the issue you're having.
    Comment by SgtLegend January 21 permalink
  • Show text on :hover with CSS

    You could add a span inside the div with an id then use something like #some-element { display: none; } #some-div:hover #some-element { display: block; } See the CodePen example: http://codepen.io/ChrisUpjohn/pen/HBgiI
    Comment by SgtLegend January 20 permalink
  • what is the meaning of this line in the css

    That is a child selector, it will only select the next element it finds with a class of .btn-mini. http://www.w3.org/TR/CSS2/selector.html#child-selectors
    Comment by SgtLegend January 19 permalink
  • protect a website

    1.) Find a host that has a good firewall and DDOS protection (my preference is CSF or config server firewall) 2.) Ensure all your passwords are encrypted using software like 1Password or LastPass 3.) If you use software such as WordPress install s…
    Comment by SgtLegend January 17 permalink
  • Wordpress: New pages won't go in query order?

    Try adding orderby=date to the query string
    Comment by SgtLegend December 2012 permalink
  • CodePen Pro

    The second I saw the features for CodePen Pro I payed for the yearly subscription, been able to use live view and private pens will make the whole "demo or it didn't happen" process a lot nicer now.
    Comment by SgtLegend December 2012 permalink
  • Jquery WP issue

    Well the first thing I would change is the URL for jQuery, you don't need to detect if the server is using SSL as browsers can handle that for you. See the below: // Using 2 forward slashes will let the browser know it has to pick the protocol…
    Comment by SgtLegend December 2012 permalink
  • my basic jquery not working

    Just a couple of nitpicks, the below is the recommended way of writing jQuery. // This is the shorthand way of writing $(document).ready() $(function() { // Since jQuery 1.5 its now recommend you use the on() method $('p').on('cl…
    Comment by SgtLegend December 2012 permalink