wellcoveted.com wellcoveted.com
   Index >> About Us >> Privacy Policy >> Terms & Conditions >> Add Url >> Add Article
Search:   
Add Url
 

Government & Politics

Health & Hygiene

Employment & Careers

Banking & Finance

Food & Recipe

Automotive

Home & Garden

Children

Society & Issues

Property & Estate

Malls & Shopping

Healthcare & Medicine

Recreation

Travel & Accommodation

Sports & Adventure

Business & Commerce

Self Enhancement

Education & Reference

Art & Culture

Lifestyle & Fashion

Internet & Computers

Online & Board Games

News & Events

Technology & Science

 

Index › Internet & Computers › Web Design & Development
 

HasLayout concept explained - Learn how to exploit IE??s ?layout??

 
Author: Lighe
 

What the hell is layout?
Layout is an Internet Explorer proprietary concept that controls both size and position of elements. IE uses 'layout' to reduce its processing needs. In modern browsers, like FFox, Safari and Opera each element is responsible for it's own size and position. In IE 6 and below this would cause extreme problems related to performance. That's why IE gives 'layout' only to elements that really need it. Anyway, 'layout' really affects CSS designs, so it's important to know how to deal with it.

What elements do have layout?
Elements that have layout include: bodytable, tr, td, input, select, textarea, button, img, marquee, hr, inframe(don't use this, please :) ), object, applet

How to give layout to an element?
Using one of these CSS properties:
float: left/right; position: absolute; display: inline-block; width/height;

Problems caused by 'layout':
Elements with layout incorrectly size themselves:
Let's say you have a div with width:10px; Write some text inside it and set it's size to 30px. Also set border: 1px solid black; In this situation the text should flow out of the div, but in IE the div incorrectly expands. This shows that IE uses width like a min-width.

Absolute positioned elements within a relative container: Let's say that you have some absolutely positioned elements inside a relatively positioned ancestor. In IE, instead of being positioned relative to the ancestor, these elements will get positioned relative to the viewport. This bug is caused by IE's internal "hasLayout" feature. Elements with relative position are not considered to have "layout". A simple solution for this bug would be to set a width or height, to force the element to have layout. Anyway, maybe sometimes you will not know the dimensions of the element, so you can use the following hack:

/* Hide from Mac \*/
* html.element {
heighT: 1px;
}
/* End hide from Mac */

 
 
 

Related Articles

 
Managed Hosting: The Death Knell of Colocation Services
 
How to Make Sure your Computer is Secure
 
Will Baby Boomers Impact Your Website Design?
 
Business Automation Software Solution for Accounting Software Companies
 
Domain Name Web Hosting And Beyond
 
Top 10 SEO Copywriting
 
New Generation Carrier Network
 
How To Express Yourself through Blogs
 
Dual, Tri, or Quad Band GSM Cell Phone for International Traveling
 
The Power Of Giving
 
 
 
 

Advertising Your Website With Pay-Per-Click

A thriving way to help optimize your online image is to consider using the pay-per-click advertising ... - Vincent Murphy
 

What Is Spyware And Why You Should Be Concerned About It

What Is Spyware? Spyware programs are files that hide on your PC's hard drive without your knowledge ... - David Dorrough
 

Ebook Basics For The Infopreneur

A brief summary of potential issues for those new to eBook distribution. - Marisa Giancarla
 
 

How to Test Your Product Ideas

Many new internet marketers rush past this step. They're so sure they've got a winner that they just ... - David Wells
 

5 Big Mistakes That Bloggers Make...

If you've just entered the world of blogging or if you've been blogginh for a short time and find th ... - Rudolf Freidlander
 

Sales Through Strategic PPC & Internet Marketing

The Internet has now become an important medium for product and service advertisements. Almost every ... - Steve Pavis
 

Is the Web Cam a Security Savior or Parents Worst Nightmare?

There have been other stories of web cam remote viewing saving the day for someone. There are severa ... - Owen Walcher
 

Improve Search Engine Rankings by Using Flash in It

Improve search engine rankings by using flash in it - Prabhjot Kaur
 
 
Index >> Privacy Policy >> Terms & Conditions  
© 2006 www.wellcoveted.com - All Rights Reserved