Month: February 2010

h

how to change the default text selection color in Browser

One of those cool CSS3 declarations that you can use today is ::selection, which overrides your browser-level or system-level text highlight color with a color of your choosing. The biggest hit is in the fact that only Safari and Firefox are supporting this, and both in slightly different ways. IE totally ignores them. Fortunately, this ...

W

WYSIWYM Editors – Time to bid adieu to WYSIWYG Editors

WYSIWYG (What You See Is What You Get) editors have been booming up in the market lately. Often people get confused,as to use which one. Quite frequently, they end up using expensive third party editors, with cool features and UI. Fair enough to fool your clients. One important thing that we miss out here is ...

S

Some Common Html Validation errors you should keep in mind

Some common standards that i keep in mind while writing an html code: 1. Avoid using html tags inside <script>: It would be good if you avoid using html tags inside script tags on the page. <script type="text/javascript"> <!-- // This is an error! document.write("</P>"); // --> </script> As mentioned in the HTML 4 Recommendation's ...

S

Styling a file upload control or input type = “file”

FileUpload control has weird styles, especially when you view them across browsers. The normal look and feel of the control, would look like something below: The Safari one looks really worth a bug for the testers. This solution to style fileupload controls is a concise and verified version of the solution by Michael McGrady. Step ...

S

Setting screen width for Web sites to be viewed on iPhone

Fixing the width of the page in iPhone to a certain value is not direct. Safari is assuming an 800px width. The best solution to this is just by using the meta tags. Check the snippet below: To set the width to the screen width based on the mode he is in, be it landscape ...

F

FileUpload width property not working

This issue normally comes in Firefox. In IE, setting the css width will take care of the width of the file upload control. In Firefox, you need to use the size property to set the width of the fileupload, as Firefox rendering engine does not set the width on the width property of the control. ...

A

Avoiding CSS Image Flicker issue in IE 6.0

There are two types of flickering when it comes to the background-image CSS attribute and its IE6 support. The first is when the whole image flickers. This one can be solved by the aforementioned workarounds. Here is another nice article: http://www.fivesevensix.com/studies/ie6flicker/ The other one is cursor flickering - when you hover an element with the ...

A

ASP .Net Performance Improvement Tips

I was just going through this site checking for Performance improvement tips in .Net Web Application, for my project. It was pretty good and useful. Check out the link below: Seven Ways To Do Performance Optimization Of An ASPNET3.5Web2.0Portal Some of them are pretty cool and there are possibilities that you might miss out on ...

P

Page refresh leading to larger font size when using popups

Well this was one error i faced during on of my development projects. I have a button click firing a ShowModalDialog window. On close of that window, i want the parent to refresh. But the problem was that, when i close the dialog box or popup, the parent page finishes its loading and shows up ...

L

Learn jQuery: A simple ‘Hello World’ jQuery Code

jQuery - A powerful javascript library capable of doing all your complex javascript actions and functionality in a line or two. How cool is that. Pre-requisites : Notepad, jquery.js file(You can get it here),  some coding background and an open mind Let's Start with a simple Hello World: Open your notepad, create a html file ...