Css And Cross Browser Compatibility

By:


Web designers London have found CSS very effective but they want to inform and give some effective tips to those who are new to CSS. There are browsers which still interpret CSS standards in various ways, and there are old browsers that not at all read CSS. So being a professional designer and coder one should make sure that your CSS code should be cross browser compatible and your HTML pages should look good satisfactory even exclusive of CSS.



In this article we will discuss about properties related to positioning in CSS 2 specification. Off-course in scarcity of word I find that I will be unable to complete the entire properties but still with examples and after consulting experts like London web developers. The very first properties start with Viewport



The Viewport: It is the area on the screen where web page is exhibited in. And it is very different from initial containing block.



The Initial Containing Block: It is the entire space allocated to any document. Here entire space means any section or bit of page that is scrolled in order to see the Viewport. Here I would like to make the point very clear that the size of the initial containing blocks can be fixed by setting the height and width of the root element.



The Root Element: It is the html element. CSS rule is applied to root element just to convince the browser according to the own will. However, it is suggested that it should be applied to both html and body element.



Containing Blocks: The element in any document has containing block in it. Anything in is considered as block element.



Box Types: There are many types of boxes, though we will discuss only block boxes and inline boxes.



Block Boxes: These boxes are generated by elements like or. This facilitates any element to start below instead of next to them.



Inline Boxes: Inline elements are showed next to each other like a element within a paragraph. In this case it is noted that the flow doesnt break.



Positioning Schemes: Now after talking about positioning system, now I would like to focus on styles of positioning in CSS 2. It starts with Normal flow.



Normal Flow: In this case positioning is set according to normal rule that is going on around decades. No innovation no new things.



Relative Positioning: The elements are positioned according to the regular flow and then later moved. The element seems as if it is in normal flow and they occupy the same screen space.



Float Positioning: The boxes are first positioned according to the normal flow and then later moved left or right as per the extent they can proceed. This positioning further lead to the flow of presiding boxes but are designed and set in such a way that it doesnt occupy the same space.



Absolute Positioning: These positioning are not affected by normal flow and positioned according to the values of their corners and distances from containing block.



Fixed Positioning: These work with absolute positioning with the only different that these are relative to viewport.


About the Author:
Methew Gilcrist is working with http://ukwebsitedesigncompany.co.uk. He advises consumers through his articles on Web Design London related issues as He is an expert web design advisor. To know more about web designers London, London web designers, UK web design, web design UK.



Article Originally Published On: http://www.articlesnatch.com


|

Loading...
Related....
Videos...

Recent Web-Design Articles

Comments

Still can't find what you are looking for? Search for it!

Loading

Copyright 2005-2011 ArticleSnatch, LLC - All Rights Reserved.
Privacy Policy | Terms of Service.