DevSnippets
Subscribe by RSS
  • DevSnippets FEED
  • |
  • User Link Feed
  • |
  • Code Snippets
  • Home
  • Contact Us
  • About DevSnippets
  • Archives
  • Subscribe
  • Follow Us
  • CSS
  • jQuery
  • Menus
  • Layouts
  • WordPress
  • javascript
  • IE Hacks
  • Mootools
  • Prototype
  • WordPress Hacks
  • more →

Results

In {Reviews} -3rd Feb- {49 Comments} 15 jQuery Plugins to Fix and Beautify Browser Issues

15 jQuery Plugins to Fix and Beautify Browser Issues

We advocate using CSS whenever possible, and we often successed. Modern browsers have very good support for CSS — it’s certainly good enough for you to use CSS to control layout and presentation. Sometimes however, certain page elements will appear differently in different browsers. That’s why today we wanted to highlight 15 jQuery solutions for the most common browser issues that you’ll encounter when building web applications among other jQuery plugins that will give you a nice browser effect.

1. Achieving Rounded Corners in Internet Explorer with DD_roundies

Using jQuery to Fix 20 Common Browser Issues

Unfortunately, CSS3 border-radius is only supported by Safari and Firefox, leaving browsers such as Internet Explorer to gracefully degrade to square corners. DD_roundies library offers a new approach to bringing rounded corners to Internet Explorer. DD_roundies works with selectors – much like jQuery – this capability allows for a very convenient mapping to jQuery UI’s CSS Framework classes, and allows us to apply DD_roundies to jQuery UI in a few short lines.

Check out the Demo here

2. Setting Equal Heights with jQuery

Using jQuery to Fix 20 Common Browser Issues

Creating the visual effect of equal-height columns or content boxes has been a challenge. From a usability and performance standpoint, one smart solution is to use a simple JavaScript workaround: our equalHeights() function determines the heights of all sibling elements in a container, and then sets each element’s minimum height to that of the tallest element. When JavaScript is disabled, the boxes or columns appear with varying heights, but the content remains legible and the page is still completely usable.

Check out the Demo here

3. Cross browser text-shadow

Using jQuery to Fix 20 Common Browser Issues

Text-shadow is a neat little CSS3 (actually, CSS2) property that allows you to display a shadow behind your text. The only downfall is that it doesn’t work in Internet Explorer. One handy little thing of Internet Explorer is that it also gives you access to CSS declarations it does not understand, so we can simply request the text-shadow value of a given element and process that. This should work in Internet Explorer 5.5 to Internet Explorer 8.

Check out the Demo here

4. Rounded Corners

Using jQuery to Fix 20 Common Browser Issues

This jQuery plugin will create beautifully rounded corners. No images or obtrusive markup necessary. Support for padding ensures your layout degrades gracefully for users who have disabled javascript.

5. Position Footer

Using jQuery to Fix 20 Common Browser Issues

This little plugin will allow you to position a footer at the bottom of the browser viewport when the content doesn’t reach that far. It will not adjust the footer if the content goes below the viewport height.

Check out the Demo here

6. Link Control

Using jQuery to Fix 20 Common Browser Issues

A simple plugin designed to give the end user control over whether they want to open a link in a new window or not without having to right click and such.

Check out the Demo here

7. Page Peel

Using jQuery to Fix 20 Common Browser Issues

A jQuery plugin for the page peel ad effect used on quite a few sites now.

Check out the Demo here

8. Delaying loading of images in (long) web pages

Using jQuery to Fix 20 Common Browser Issues

Lazy loader is a jQuery plugin that delays loading of images in (long) web pages. Images outside of viewport (visible part of web page) wont be loaded before user scrolls to them. This plugin specially helps on long web pages containing many large images makes the page load faster. Browser will be in ready state after loading visible images. In some cases it can also help to reduce server load.

Check out the Demo here

9. Preload Images Sequentially With jQuery

This is a small code snippet you can use for preloading images for mouseovers. It uses $(window).bind(‘load’, function() {…}) to wait until all page elements have finished loading. This includes all images.

10. BGIframe

Using jQuery to Fix 20 Common Browser Issues

Helps ease the pain when having to deal with IE z-index issues.

11. Fixing IE overflow problem

Using jQuery to Fix 20 Common Browser Issues

IE has a different implementation of overflow compa(red) to Firefox or Safari. In particular, Firefox et al, when overflowing an element, it puts the horizontal overflow scroll bar on the outside of the element. Because the content overflows horizontally in IE, the new horizontal scroll bar means we can’t see all the content vertically, thus generating a vertical scroll bar.

Vertical overflow is always inside the element, so you need to apply the following in IE only:

  • Find all elements whose contents is overflowing horizontally.
  • Add 20 pixels of padding to the bottom of our element.
  • Strip the vertical scroll bar.
(function ($) {
  $.fn.fixOverflow = function () {
    if ($.browser.msie) {
      return this.each(function () {
        if (this.scrollWidth > this.offsetWidth) {
          $(this).css({ 'padding-bottom' : '20px', 'overflow-y' : 'hidden' });
        }
      });
    } else {
      return this;
    }
  };
})(jQuery);

// usage
$('pre').fixOverflow().doOtherPlugin();

This fix results in IE conforming to putting the horizontal scroll bar below the element.

Check out the Demo here

12. Avoiding CSS hacks using Javascript

Using jQuery to Fix 20 Common Browser Issues

If you don’t have to code those ugly CSS hacks for those browsers that just won’t show you what you want them to, you can use one trick to ease the CSS writing: “Browser selectors”. So now you can preprend your styles with .msie, .mozilla, .opera, .safari or .other depending on the targeted browser.

Check out the Demo here

13. Increase the size of click targets

Using jQuery to Fix 20 Common Browser Issues

Say goodbye to boring ‘Read More…’ links by turning your entire content block into a clickable target!

Check out the Demo here

14. Vertically Center An Element

Using jQuery to Fix 20 Common Browser Issues

In this video tutorial, you will learn how you can vertically center an image in your browser by combining CSS with jQuery’s power

15. JSizes ― jQuery extension plugin for CSS properties

JSizes is a small plugin which adds support for querying and setting the CSS min-width, min-height, max-width, max-height, border-*-width, margin, and padding properties. Additionally it has one method for determining whether an element is visible. In total it adds six new methods to the jQuery element API.

Some examples of how the new methods can be used:

jQuery(function($) {
   var myDiv = $('#myDiv');

   // set margin-top to 100px and margin-bottom to 10em
   myDiv.margin({top: 100, bottom: '10em'});

   // displays the size of the top border in pixels
   alert(myDiv.border().top);

   // displays true if the element is visible, false otherwise
   alert(myDiv.isVisible());

   // set padding-right to 10px and margin-left to 15px using chaining
   myDiv.padding({right: 10}).margin({left: 15});
});

Don’t forget to

subscribe to our RSS-Feed and visit my twitter page : nourayehia to get notified when our next post is here.

Category: Reviews | Leave a Comment | 49 Comments

What others said...

49 Comments, Add Comment or Ping



  1. Rodney Reid says:
    February 3, 2009 at 5:39 pm

    A very useful article, thanks!

    I have been using DD_Roundies for the past 2 months. Because of it’s use of vector drawing primitives in IE, it’s the most advanced round corner/border radius at this time.

    Just be aware that you understand the caveats and limitations (like no rounding of tables or table elements, or select dropdowns)

  2. John McMullen says:
    February 3, 2009 at 6:07 pm

    Thanks for the double link love on the Link Control and Page Peel. Great list too. I’ve got to try out that footer one.

  3. WPCult says:
    February 3, 2009 at 10:47 pm

    Some of those plugins seem really useful!

  4. Sean Delaney says:
    February 4, 2009 at 1:19 am

    Very informative. It must have taken you a while to find and put all of these together.

    Thanks.

  5. landry says:
    February 4, 2009 at 1:43 am

    I think there’s a bug in the demo of dd_roundies : when executed in IE7, corners are effectively rounded, but the tabs don’t change color when clicked

    • Drew Diller says:
      February 4, 2009 at 12:57 pm

      Yeah, I’m working on that one. Simple fix, but I don’t want to put out another release until I’ve addressed some more significant ‘under the hood’ issues.

  6. Patternhead says:
    February 4, 2009 at 4:35 am

    Great resource. Seen most of these before but DD_roundies is a new one on me.

  7. web development says:
    February 4, 2009 at 5:00 am

    Lazy load – Delaying loading of images in (long) web pages is very useful

  8. emendelski says:
    February 4, 2009 at 8:15 am

    Hi, great post.
    But i found mistake in link href in 5. Position Footer.

    • Noura Yehia says:
      February 4, 2009 at 10:31 am

      Thanks for pointing that, just fixed it :)

  9. AthenaEmily says:
    February 4, 2009 at 8:40 am

    nice one with the DD_Roundies, it can avoid invalid CSS too. awesome!

  10. Jonas says:
    February 4, 2009 at 9:15 am

    “This should work in Internet Explorer 5.5 to Internet Explorer 8.”

    We should give up IE hacks completely. Force people into switching browsers.

  11. Iaman says:
    February 4, 2009 at 12:35 pm

    Wow, this is great! I’m (finally) starting to get into the world of using jQuery, so these kinds of things are awesome resources for me!

    Jonas:
    Now, now, we shouldn’t be forcing people to use certain browsers, we should be campaigning for consistent support by all browsers. We want people to have more legitimately good choices, not lock them in to one or two.

  12. Braxo says:
    February 4, 2009 at 12:42 pm

    14: Vertically center an image.

    There is a pure CSS solution as well. Give the element and absolute position, move it top negative 50% and left negative 50%. Then give it a margin-top and left of half the elements hight and width.

    For text, say in a button with one line of text, give the element a height and set the line-height to be equal to it.

  13. Nick Poulos says:
    February 4, 2009 at 1:52 pm

    I’m not sure how exactly the footer plug-in works (is the footer at the bottom of the PAGE or ’stuck’ at the bottom of the browser view port while content goes behind it? ex. http://www.cbcli.com)

    There are pure CSS ways to have a footer sit at the bottom of the page, as seen here:

    http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

    or

    http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page

    But if this plug-in is for the footer stuck at the bottom of the browser view port, I don’t know of a CSS-only way to do it without using JavaScript

    • Noura Yehia says:
      February 4, 2009 at 3:33 pm

      The jQuery solution is almost similar to the one found here, the only difference is in the jQuery solution you don’t need to specify a height for the footer.
      Anyone here might give us another difference, or what is the need of using javascript when we can do it with CSS only.

  14. donna says:
    February 4, 2009 at 2:57 pm

    Lazy load – Delaying loading of images in (long) web pages is very useful.

  15. Bladimir says:
    February 4, 2009 at 4:08 pm

    Nice and useful article, finally I found a preloading images sequentially code that actually works!

    Thanks.

  16. Ben Higham says:
    February 4, 2009 at 5:49 pm

    Some really great jQuery plugins here. I can see how a lot of them are useful.

    I do have one question though, doesn’t using Javascript for styling purposes ruin the whole idea of the 3 layers of web design? i.e. (X)HTML = content, CSS = presentation, JS = behaviour.

  17. Steve Firth says:
    February 4, 2009 at 6:45 pm

    Nice to have some additions to my jQuery tool box, some nice ways of bringing IE up to spec without busting your hump.

  18. Andris says:
    February 5, 2009 at 12:35 am

    Some pretty usefull plugins here. thanx a lot for the collection.

  19. pite says:
    February 5, 2009 at 12:35 am

    except for lazy load all of these should really be delt with CSS rather than JS…

    • John McMullen says:
      February 6, 2009 at 11:55 pm

      I’m curious, how would you accomplish the Link Control or Page Peel with CSS?

  20. Niklas says:
    February 5, 2009 at 3:32 am

    I found a solution to the bug:

    In function(out) set:
    $(this).css(‘position’,’static’);

  21. Leon Poole says:
    February 5, 2009 at 3:54 am

    Great post – thanks!

  22. JoeFuture says:
    February 5, 2009 at 7:40 am

    It’d be nice if the rounded corners plugin worked well in IE8.

  23. donna says:
    February 5, 2009 at 8:28 am

    Great post – thanks!!

  24. Avenger says:
    February 5, 2009 at 9:50 am

    jquery is like the solution to all the things that frustrate me with web development

  25. Joshua Folkerts says:
    February 5, 2009 at 8:39 pm

    Very nice!!!!

  26. trendbender says:
    February 6, 2009 at 7:17 am

    thx for good list)

  27. trendbender says:
    February 6, 2009 at 7:18 am

    ‘Vertically Center An Element’ link is broken

  28. Crysfel says:
    March 5, 2009 at 11:03 am

    nice collection thanks for share

  29. gern says:
    March 14, 2009 at 7:13 am

    “Avoid CSS hacks with Javascript…” Hilarious. CSS “hacks” are used to avoid Javascript. :)

  30. Greg says:
    April 4, 2009 at 11:41 pm

    D’oh! I know tip #1 specifically says “In IE”, but I was hoping it would work for Opera as well. Not so much!

    Thanks for the cool list, though. Lots of useful stuff in there. I like #13, BigTarget.js, in particular.

Trackbacks/Pingbacks

  • links for 2009-02-04 « Minesa IT
  • Daily List - MiT Gr8 1
  • Some more good jQuery stuff « my 2 bits worth
  • links for 2009-02-04 « Mandarine
  • links for 2009-02-04 « Stand on the shoulders of giants
  • links for 2009-02-05 | Emrah Sağlık
  • links for 2009-02-05 « pabloidz
  • 15 jQuery Plugins to Fix and Beautify Browser Issues - Graphic Design Forum and Web Design Forum
  • Bithalter Webzeuglinks 006′09 | Webzeugkoffer Webdesign
  • David Santos Web Design » Blog Archive » A nice little link about JQuery
  • links for 2009-02-10 « Richard@Home
  • Using jQuery to Style Design Elements: 20 Impressive Plugins | DevSnippets
  • Dagliga tips #05: CSS Framework, 50+ gratis Wordpress tema, PHP tips | Webbrelaterat
  • » Bookmarks for March 5th - Michael Zehrer
  • Jesse Bilsten » Blog Archive » Bookmarks for March 11th through March 12th
  • Tabs (27)
  • Forms (132)
  • Menu (62)
  • Tables (9)
  • Navigation (36)
  • ToolTips (23)
  • LightBox (41)
  • Calendar (9)
  • AutoComplete (13)
  • Accordion (15)
  • Sliders (40)
  • Gallery (84)
  • Image Effects (62)
  • Date & Time (16)
  • Charts (16)
  • Carousel (12)
  • Tag Clouds (1)
  • Links (1)
  • Layouts (82)
  • IE Hacks (19)
  • Image Sprites (7)
  • Sliding Door (7)
  • Techniques (84)
  • Image Effects (17)
  • Font Styles (22)
  • Positioning (5)
  • Menus (42)
  • Rounded Corner (20)
  • Tools (1)
  • Drop Shadows (1)
  • CSSFrameworks (2)
  • Mootools (84)
  • jQuery (338)
  • Prototype (23)
  • Scriptaculous (10)
  • Javascript (126)
  • javascript Framework (1)
  • LOG IN:

    Not a member? JOIN NOW!
     Username                   Password
    Remember me Recover password

ADVERTISE HERE

Add a Snippet / Design News

Mar/09/2010

How to Create a Fancy Image Gallery...

Teylor Feliz
Image Effects
Even though CSS3 is still in the development stages, it is the new craze that ...
Mar/09/2010

[Code Snippet] jQuery : Show/Hide...

Hidayat Sagita
MenujQuery
This is a very basic technique to show and hide HTML element, we just need ...
Mar/09/2010

How to Create a Nifty Dynamic Shadow...

Dainis Graveris
jQuery
Learn how to create a very nifty looking dynamic shadow with a few teaspoons of ...
Mar/09/2010

Astounding Ajax/CSS Forms: 30+ Modern...

Dainis Graveris
Forms
This article with the title 30 amazing css ajax form will explain the various techniques, ...
Mar/08/2010

Create A Floating Navigation Using...

Seraph
jQuery
As we were saying, jQuery is a powerful tool to use if you want to ...
Mar/08/2010

38 Cool MooTools Plugins Developers...

jenny
FormsMootools
Mootools are one of the very famous Javascript Framework. With this we can write powerful, ...
Mar/07/2010

Music Blogs Powered By WordPress

wparena
WordPressWordPress Layouts
One of the early dreams for the Web was the same as the early dreams ...
Mar/07/2010

jQuery slider out of contact form

saidyavuz
SlidersjQuery
how to crea jquery slide out of contact form
Mar/04/2010

70+ Fresh and Inspirational Single Page...

Mike P.
Techniques
It’s kind of ironic to see what designers can do with single pages as modern ...
Mar/04/2010

Free Wordpress Theme – Black Sexy...

templates4all
WordPressWordPress Layouts
Wordpress Chocolate Costumes Hall Theme is For Costumes and Man\'s Suite Shop or Store, Sexy ...
More Code Snippets →

Design Community News

  • 16 solutions for designers to sell digital goods

    16 solutions for designers to sell digital goods
  • Advance Level Php Tutorials and Scripts

    Advance Level Php Tutorials and Scripts
  • 40 Superb T Shirt Designs Which Will Make You Look Twice

    40 Superb T Shirt Designs Which Will Make You Look Twice
  • Warm copper Seamless

    Warm copper Seamless
  • 10 Amazing & Fresh Brand Identities

    10 Amazing & Fresh Brand Identities
  • Weekly Design Inspiration #12

    Weekly Design Inspiration #12
  • See Through Glass Tutorial – Glass Transparency

    See Through Glass Tutorial – Glass Transparency
  • Top 30 Free But Very Professional Fonts For Everyday Use In 2010

    Top 30 Free But Very Professional Fonts For Everyday Use In 2010
  • 50 Incredible Logo Designs

    50 Incredible Logo Designs
  • Monospace Premium HTML/CSS/jQuery Theme Released

    Monospace Premium HTML/CSS/jQuery Theme Released
  • 40+ Autodesk 3ds Max Tutorials for Beginners and Advance

    40+ Autodesk 3ds Max Tutorials for Beginners and Advance
  • Latest Amazing Photoshop Layer Styles

    Latest Amazing Photoshop Layer Styles
  • Free painter effect grunge textures

    Free painter effect grunge textures
  • 30 Stunning Graphical Vector Tutorials for Improve your Graphics Skills

    30 Stunning Graphical Vector Tutorials for Improve your Graphics Skills
More News →

Top ↑

Add a Snippet / Design News

Top Submitters

  • Top Submitters

    • dnamic (135)
    • chosen (113)
    • Martin Ivanov (87)
    • ravindra (61)
    • tutorialfeed (55)
    • Spider8411 (46)
    • dicky83 (42)
    • Noura Yehia (41)
    • psdeluxe (35)
    • woork (31)
    • creativenerds (30)
    • ddrive (28)
    • prlamnguyen (26)
    • Oxp (25)
    • tech (23)
    • kailoon (23)
    • Mert TOL (22)
    • Webstandard-Team (21)
    • satbir (21)
    • vladocar (20)
    • templates4all (18)
  • © 2008-2009 DEVSNIPPETS | Made by Noura Yehia | Add Snippet | About| Subscribe
    In partnership with (mt) Media Temple