Web development , php , ajax , symfony, framework, zend
In: web resources
10 Jan 2010We 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.
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.
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.
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.
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.
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.
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.
A jQuery plugin for the page peel ad effect used on quite a few sites now.
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.
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.
Helps ease the pain when having to deal with IE z-index 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:
(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.
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.
Say goodbye to boring ‘Read More…’ links by turning your entire content block into a clickable target!
In this video tutorial, you will learn how you can vertically center an image in your browser by combining CSS with jQuery’s power
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});
});
subscribe to our RSS-Feed and visit my twitter page : nourayehia to get notified when our next post is here.
This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.
10 Responses to 15 jQuery Plugins to Fix and Beautify Browser Issues
nurse_kiddy
January 30th, 2010 at 3:28 pm
idk i could be completey wrong on this but, i think they are the same child. let me explain..i think that the twin in your dream is the child you thought you were going to have. the healthy 'whole' child you thought you were carrying. that is why she is with someone else because you were not able to have that baby. when you are pregnate then find out something is wrong you need to greive the lose of the perfect ideas that you have for your child.
i speak from experiance, my son was born 5 months ago perfect and healthy as far as we knew. the next day the dr. heard a murmur in his heart, next thing i know they are telling me he has a very rare congenital heart defect that requires 3 surgerys to survive, and the first one needs to be done asap. wow my world was shattered, i seriously grieved as though i had lost a child, because in a way i did. my healthy perfect child was gone. i now had this child that had to have open heart surgerys, daily meds, 3-4 doctors appts a week. thats alot for mother to deal with.
so like i was saying is maybe you didnt let yourself feel the lose of the 'baby you should have had'. dont feel guilty these are normal feelings. that is why i think this twin is haunting you and why she is not yours, you can not have her, because you need to deal with these feelings and let that child go. or realize that they are one in the same child.
like i said i could be way off, if i am just ignore my ramblings. if you see some thing that clicks or seems right, explore your feelings more. you can also contact me my email is my name at yahoo.com. also there are likely support groups you could look into. good luck hope i could help.
Raj K
March 18th, 2010 at 10:58 pm
Let d be the average diameter of the trunk and h be your height.
V = h * pi * d^2 / 4
Katy
March 19th, 2010 at 1:33 am
page 161.
Excellent book choice, by the way
rme
March 19th, 2010 at 2:51 pm
These are called B-grades.. not FAKE but they are authentic and just have some defects on them just like yours. Alot of B-grade shoes are sold at Nike Factory outlets for a cheaper price than normal retail because of the defect
Stevey
March 20th, 2010 at 7:11 pm
im an intermediate programmer and has set up a few websites, you should go on it helped me a lot, just from a normal person who does not no anything to a guy who is now learning other programming languages, such as c++ and python.
^_^ Ferroci
March 21st, 2010 at 3:40 am
the radius of the hemissphere in this case is its height
Vcone = (1/3) pi r^2 h ==> h = 3V/(pi r^2)
Vhemisphere = (2/3) pi r^2 * r ===> r = 3V/(2 pi r^2)
so
cone/hemesphere = 3V/(pi r^2) / (3V/(2 pi r^2) = 2/1
R.F.
March 23rd, 2010 at 1:05 am
Don't use tables for layout. It's bad web design.
To create a box, you just format the border around the content with this CSS:
border: solid 1px blue;
Use the "border" property: <line style> <line size> <line color>;
This can be applied to anything, from an image to header, to a table cell, etc.
If you want to group content together, use a div as a container and style the div border around the content.
Mr. X
March 23rd, 2010 at 4:59 pm
that second one sounds like cary grant to me.
Kirill K
March 25th, 2010 at 9:48 am
Has he had a physical lately? Many health problems, including those as common as high blood pressure, "lurk" in the shadows and appear as ED. If this is something thats new for him, as embarassing as it is, it warrants medical investigation. That being said, he's not a super young man, and occasional ED could be expected. Handjobs and BJs stimulate in a very different way, and his erection does not need to be as full.. so its easier for him to get pleasure that way..
I think your resentment is getting through. Men need sex to be loved, and if he knows that you're upset… well.. things aren't going to go like clockwork. What may have been an occasional problem is now a mountain. Don't make him feel guilty for his "undoings". Relax. Explore ways he can pleasure you without intercourse, so the pressure is off and he doesn't have to get stage fright. He is a new husband.. and it's probably just as upsetting for him that he's not pleasing you – so every time he goes to bat, he's nervous.
I would encourage you to get him to the doc and maybe consider a period where you can explore both of your sexuality and intimacy without the emphasis being on intercourse. You may be amazed about what you find.. or where it could lead in the end.
mercury
March 28th, 2010 at 4:47 pm
add to your bookmarks, its going to be a very helpful website for you in few days…very easy language for beginners..