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

thomas

  • Background image in empty div

    It's a little unclear what you're asking for. Do you want the background to "stretch" according to the width of the div? If so, you can use the "background-size" property (not supported by older browsers, though). If y…
    Comment by thomas November 2011 permalink
  • Lightbox 2 problems

    What's the @ symbol for in the following line? $('a[@rel*=lightbox]').lightBox(); It's giving a syntax error. http://api.jquery.com/attribute-contains-selector/
    Comment by thomas November 2011 permalink
  • paypal pro

    Actually, part of using PayPal Pro is the requirement to implement Express Checkout. So, although you can process credit cards on your site transparently, you still have to offer your customers the choice to checkout with PayPal — so it's not e…
    Comment by thomas October 2011 permalink
  • IE 6&7 Z-index bug

    As @SgtLegend pointed out, the most common z-index issue in IE is due to how it handles stacking order. By spec, a higher z-index should always appear on top, but with IE, a higher z-index may be under a lower z-index if one of its ancestor elements…
    Comment by thomas October 2011 permalink
  • Change padding of "p" inside a "div" on :hover

    Can you create a simplified version of the problem? I didn't dig through all of your code, but it looks like you're using CSS transitions along with a :hover change on the div and a :hover change on the p. Why not target the p when you ho…
    Comment by thomas October 2011 permalink
  • Label in forms

    I agree with @TT_Mark, the second method states that the text box is its own label, which doesn't make sense. If you're doing it that way strictly to have a container element, use a div or whatever works best for your form.
    Comment by thomas October 2011 permalink
  • [SOLVED]Simple CSS query.

    I'm assuming that you're floating individual s and the header below isn't clearing the float. If that's the case, use "clear:left" on the header element.
    Comment by thomas October 2011 permalink
  • text-indent: -9999px = bad seo?

    This question has been addressed by Google and other search engines for some time now, and the answer was very clear: you won't be penalized for using common image replacement techniques. Just don't try anything dodgy. http://mezzoblue.co…
    Comment by thomas October 2011 permalink
  • what's benfits of learning javascript ?

    @ameral, if you're using jQuery, you're already using JavaScript. jQuery is basically a number of prewritten JavaScript functions (a library) that you can call without having to write them from scratch. If you're using variables, cond…
    Comment by thomas October 2011 permalink
  • Set HTML table attributes with external CSS

    Which external styles aren't working correctly? The only reason an inline style should work when an external one doesn't is if the external rule is being overwritten by another rule. If possible, you should avoid inline styles.
    Comment by thomas October 2011 permalink
  • Span Header(s) across all columns

    You can either use classes on the top/left and top/right cells as @Bob mentioned, or target them using :first-child and :last-child pseudo-selectors, as in this example: http://jsfiddle.net/pLgmL/
    Comment by thomas October 2011 permalink
  • CSS jQuery hover fadeIn problems - Please help!!

    Why didn't you use "opacity 1s linear" for all of the vendor-prefixed properties? And don't forget to include "transition" by itself so that it will continue to work when it's widely supported. You might still wan…
    Comment by thomas October 2011 permalink
  • Smooth animation for paragraphs of text?

    I'm not sure exactly what you're trying to accomplish, but here's a quick fiddle based on your description: http://jsfiddle.net/hzBVL/
    Comment by thomas September 2011 permalink
  • test for empty response ajax

    Try adding an alert or console.log to verify if data.length really is zero. If it is, then the problem is with the line responsible for hiding the loading image. If it isn't, then you need to find out what is really being returned.
    Comment by thomas September 2011 permalink
  • How do I make a floating image appear at mouseover?

    @Johnnyb, unlike many languages, with JavaScript, you can pass any number of arguments to a function whether the function accepts them in its definition or not. In the case of the event parameter, you don't need to capture it in the function&#…
    Comment by thomas September 2011 permalink
  • how can i float this fb like button...

    @seb_z_lite has some good suggestions. Absolute positioning will probably give you the most control.
    Comment by thomas September 2011 permalink
  • how can i float this fb like button...

    Yeah, that "like" button is notoriously difficult to style. Float the social network anchors ('s) to the left. Then, increase the width of the div or the li that contains your social buttons to about 170 px. This should be wide enoug…
    Comment by thomas September 2011 permalink
  • CSS text transparancy problem (help)

    Dup post.
    Comment by thomas September 2011 permalink
  • CSS text transparancy problem (help)

    For older versions of IE that don't support RGBA and HSLA, you can use a gradient filter with the same start and end colors. div {filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000);} Note: #330000…
    Comment by thomas September 2011 permalink
  • Tabbed menu - flared edges and dropdown problems!

    Here's a fiddle for you. Be warned that you're going to run into some problems if you need to support older versions of IE. http://jsfiddle.net/wSdpm/2/
    Comment by thomas September 2011 permalink
  • looking for help

    Is there a reason it has to use ordered lists? The structure looks more like an outline than a list format. TITLE 1. *** TITLE 2. *** TITLE 3. *** * *** TITLE 4. *** 5.*** * *** TITLE 6. ***. * 6.1 ****; * 6.2****
    Comment by thomas September 2011 permalink
  • CSS3 Multiple Column Hover Bug

    Is there a reason for this rule in styles.css? p { float: left; width: 100%; margin: 0 0 15px 0; } If you remove the float from your paragraphs, it should clear up the issue. It does appear to be a bug, though.
    Comment by thomas September 2011 permalink
  • Image consecutive fade in effect

    Thanks, @GMB, I forgot about the delay() function. Here's a revised version of my fiddle that's leaner on the JavaScript: http://jsfiddle.net/xGCYa/
    Comment by thomas September 2011 permalink
  • Layout perfect in Safari but misbehaving in Firefox!

    The problem is with your margin-top property for your ".galleria-container" rule on line 15 of http://www.grayscale.net63.net/js/galleria.fullscreen.css?1317251748254. Either adjust it to something smaller than 10%, or try and figure out …
    Comment by thomas September 2011 permalink
  • CSS3 Loading Animation

    I think it's a nice concept, but I don't care for the extra HTML markup involved. I know it defeats the purpose of a CSS loader, but I think canvas or animated GIFs would be better choices. Maybe if you could create the loaders with pseud…
    Comment by thomas September 2011 permalink
  • Image consecutive fade in effect

    Here's a fiddle that might help: http://jsfiddle.net/Zrzhp/
    Comment by thomas September 2011 permalink
  • Image consecutive fade in effect

    The jQuery fadeIn() function should be able to help. You'll need to use it with setTimeout() or pass a callback function to stagger the fades.
    Comment by thomas September 2011 permalink
  • i hate loving divs..

    @ChristopherBurton, it looks like you're getting hung up on whether this is a good use case for tables, and I've already made it very clear that I agree it is. As for my statement of not seeing the information he will be using in that lay…
    Comment by thomas September 2011 permalink
  • i hate loving divs..

    @Adman, I didn't check his website, and I'd like to reiterate that I'm not suggesting that tables aren't the right approach for this. The example I gave was to create the layout he requested, not to spark a debate about the sema…
    Comment by thomas September 2011 permalink
  • i hate loving divs..

    @ChristopherBurton, right, and I would probably use a table as well, but without actually seeing the information he is putting into it, it's really a matter of opinion of whether it would be considered tabular data or not. I posted the code as…
    Comment by thomas September 2011 permalink