Weblink India.Net – Blogs

Ideas & Inspiration for web design and web development

Archive for the ‘Internet Browser’ Category

Internet Explorer and CSS Compatibility Issues

Posted by weblinkindia on July 15, 2010

Cascading Style Sheets, more commonly known as CSS, is used to denote the look as well as the formatting of a document, written in markup languages like HTML and others. However the most commonly used browser, i.e. Internet Explorer hasn’t been all that happy about CSS properties and has constantly faced compatibility problems with it. Microsoft, the father of Internet Explorer has often been criticized for ignoring some of the most useful and important CSS properties, which could have made the web experience on IE very unique and special. Some of the common compatibility issues between IE and CSS are listed below.

Outline
The ‘outline’ property offered by CSS, has been very useful in determining the source of the problem or error in the web coding program. This property enables one to put border around the block level elements, which are at fault. However neither Internet Explorer 6 nor 7 supports the CSS Outline property.

Empty-Cells
One of the most common CSS properties like Empty Cells is also not supported on the Internet Explorer. The Empty Cell Property applies to those elements that have their display in table-cell format. In such cases, while undertaking the dynamic repopulating of a table, if you don’t want to display the borders, background color, or background image on the empty cell, you can remove them by using ‘Use empty-cells: hide’.

Clip Property
Another simple and commonly known CSS property is the ‘Clip’. The Clip Property, allows the programmer to point out the invisible areas in an element. The common syntax of Clip looks like:

div.clipped  {

padding: 20px;

width: 400px;

height: 400px;

clip: rect(20px, 300px, 200px, 100px);

position: absolute;

}

However, neither Internet Explorer 6 nor its upgraded version7 supports this property.

Display
Thanks to the compatibility issues between IE and CSS, only one of the three values i.e. ‘Inline’, ‘Block’ and ‘None’ is used by programmers in designing a webpage. Apart from the usual properties, Display can also be modified with values like ‘inline-block’, ‘table’, ‘inline-table’, and ‘table-cell’, which can be pretty handy in resolving the specific layout issues.

Caption-Side
The Caption Side Property of the CSS enables the programmer to determine on what side of a table, the table’s caption would appear. The commonly accepted values for this property are listed as top, bottom, left and right. However, neither IE 6 nor 7 accept this property, and therefore the caption will always appear on the top of the table.

The ones listed above are some of the most common compatibility issues between IE and CSS, an in-depth analysis can reveal many other issues. Web Design India

Posted in CSS, Internet Explorer | Tagged: , | 1 Comment »

Inline-Block – A tool to fix margin bugs in style-sheet

Posted by weblinkindia on July 5, 2010

Before the year 2004 when Internet Explorer 6 was dominating browser market share, netizens used to face severe problems of Float Margins in the said version of explorer. During this period, tech experts were unable to fix the problem in an altogether manner, which had lead netizens to work along with the unfixable bug. The bug was entailing great variations in the ‘setting of margin’, further playing havoc with the display of any object on the web page.

But, with the onset of CSS’s Inline-Block property in later 2004, the setting of margin in IE6 had seen great transformation, as the developers could now display certain HTML elements, on a web page, as per a visitor’s convenience.

The blog is purported to make you aware of the basics of Inline Block as well as its functioning.

What exactly is Inline-Block?

Inline-Block has become popular amid a host of developers as a display property that enables them to define how certain HTML elements would be exhibited on any web page. It allows CSS developers to define IE6′s margins to behave in the desired manner.

Know how the property works: -

In IE6, where floating an element and giving it a desired margin was an impossible task for the developers, Inline Block property/value has facilitated them to fix this bug with an IE6 hack. The value enable developers to set the margin, which is half the value of the original or else could also be adjusted by giving the element’s display property a value of inline-block, in IE6. The property Inline-Block has significantly helped developers to resolve the issue in the most of cases.

The above description of facts about Inline block property will enable you to get hold over its nitty-gritties and somehow empower you to utilize the property to fix margin bugs in your style-sheet.
Web Design India

Posted in Internet Browser | Tagged: , | Leave a Comment »

CSS differences in Internet Explorer

Posted by weblinkindia on November 28, 2009

With the coming of CSS, the world of web was refreshed and was breathed with a new life. Color, stylized fonts, borders, margins, etc. were used in order to make a web page or site attractive. There are several browsers on which web sites or pages are opened. The web developers had to test their work in different browsers so that everyone has access to their work. Internet Explorer or IE is the most accessed browsers but there are various differences in its 3 versions especially in their support of CSS.

Why designers should have knowledge of CSS differences?

Every site designed for promotion, aims to receive higher search engine rankings. For achieving it they need to apply numerous CSS tips. Here you are provided with some useful points or differences that are present in different versions of IE.

The major differences that are to be found in different versions of Explorer are:
>> Selectors & Inheritance
>> Property Support
>> Significant Bugs and Incompatibilities
>> Other Miscellaneous Techniques

Selectors & Inheritance:  Selectors are part of CSS techniques that help in optimization and saves on a lot of time. There are numerous kinds of selectors like Child Selectors, Chained Classes, Attribute Selectors, Adjacent Sibling Selectors and General Sibling Selectors. These selectors are supported by one browser and not supported by the other. All these selectors are supported by the latest versions of IE7 and 1E8 and not by IE6.

Property Support:  Different properties of CSS like Fixed-Position Elements, Transparent Border Color, Max-Height & Max-Width, Min-Height & Min-Width, Property Value “inherit”, Border Spacing on Table Cells, Rendering of Empty Cells in Tables, Vertical Position of a Table Caption, Clipping Regions Orphaned and Widowed Text in Printed Pages, Page Breaks Inside Boxes, Outline Properties, Alternative Values for the Display Property and Virtual Dimensions Determined by Position are not supported by all browsers. These properties are responsible for giving a webpage or website a new and appealing appearance. All these are supported by IE7 and IE8 and not by the older version, IE6.

Significant Bugs and Incompatibilities: There are various incompatibilities and bugs in IE6 and IE7 that a web designer must know in order to create a well-designed and optimized site.

Bugs in IE6:

  • It Doesn’t support styling of the element
  • Doesn’t support IDs and classes that begin with an underscore or hyphen.
  • It Offers only fractional support for @font-face
  • Dotted borders appear almost identical to dashed borders, etc.
  • Bugs in IE7:

  • List items for a list that is ordered, its layout will not increment their numbers
  • Offers only fractional support for @font-face.
  • List items don’t support all possible values for list-style-type
  • List items that have a specified list-style-image will not be able to display the floated image.
  • Apart from these many other bugs occur in different situations.

    Other Miscellaneous Techniques: The advanced techniques like Media Types for @import, Incrementing of Counter Values and Quote Characters for Generated Content are only supported by IE8.

    Knowledge of these differences will help a web site developer in framing a browser friendly site that will be supported by all three versions of Internet Explorer. Our CSS guideline will help your site acquire higher search engine rankings.

    Posted in CSS, Internet Browser | Tagged: , , | Leave a Comment »