Skip to main content

Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 70 total)
  • Author
    Posts
  • in reply to: Background image in empty div #90614

    thomas
    Member

    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 you want the background to repeat, then you should be already set.

    in reply to: Lightbox 2 problems #90613

    thomas
    Member

    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/

    in reply to: paypal pro #89292

    thomas
    Member

    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 entirely transparent.

    According to their terms: “If you fail to comply with the requirement to use Express Checkout described in Section 8, you may be subject to up to a 1% fee increase to your then current Transaction Fee rate.”

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=ua/ProVT_full

    in reply to: IE 6&7 Z-index bug #89032

    thomas
    Member

    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 has a lower z-index. In other words, in IE, the z-index is relative to the parent, and child elements can never appear over an element that is above their parent.

    You may need to reconsider the HTML structure of the page.

    in reply to: Change padding of “p” inside a “div” on :hover #89028

    thomas
    Member

    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 hover over the div instead of relying on a separate hover over p (e.g. div:hover p {margin: whatever})?

    in reply to: Label in forms #88802

    thomas
    Member

    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.

    in reply to: [SOLVED]Simple CSS query. #88572

    thomas
    Member

    I’m assuming that you’re floating individual <li>s and the header below isn’t clearing the float. If that’s the case, use “clear:left” on the header element.

    in reply to: text-indent: -9999px = bad seo? #88512

    thomas
    Member

    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.com/archives/2008/05/05/image_replac/

    in reply to: what’s benfits of learning javascript ? #88415

    thomas
    Member

    @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, conditional statements, looping structures, etc., then you’re writing JavaScript code (they aren’t part of jQuery).

    To answer your question about the benefit of learning JavaScript, the reason, quite simply, is that you’d be a better programmer. You could build a website entirely in a WYSIWYG editor like the ones offered by Dreamweaver or FrontPage, but you’ll need to know HTML and CSS to really understand how it works under the hood and to be a better web developer. The same goes for JavaScript.

    in reply to: Set HTML table attributes with external CSS #88409

    thomas
    Member

    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.

    in reply to: Span Header(s) across all columns #88408

    thomas
    Member

    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/

    in reply to: CSS jQuery hover fadeIn problems – Please help!! #88414

    thomas
    Member

    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 want to consider a jQuery fallback for IE and users on older versions of Firefox, Chrome, and Safari.

    in reply to: Smooth animation for paragraphs of text? #88317

    thomas
    Member

    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/

    in reply to: test for empty response ajax #88316

    thomas
    Member

    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.

    in reply to: How do I make a floating image appear at mouseover? #88275

    thomas
    Member

    @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’s definition unless you plan on using it (e.g. var el = e.target). In the example @Josh gave, the script would work fine with or without the “e” parameter. Now, if he needed to get some information from the event object, it would have been required.

Viewing 15 posts - 1 through 15 (of 70 total)
icon-link icon-logo-star icon-search icon-star