Showing posts with label THE :LANG PSEUDO-CLASS. Show all posts
Showing posts with label THE :LANG PSEUDO-CLASS. Show all posts

Wednesday 4 December 2013

CSS : LEFT and RIGHT ALINGNING BY FLOAT PROPERTY


Left and Right Aligning Using the float Property

One method of aligning elements is to use the float property:


Example

.right
{
float:right;
width:300px;
background-color:#b0e0e6;
}













CSS : CROSS BROWSER COMPATIBILITY


Crossbrowser Compatibility Issues

When aligning elements like this, it is always a good idea to predefine margin and padding for the <body> element. This is to avoid visual differences in different browsers.
There is a problem with IE8 and earlier when using the float property. If the !DOCTYPE declaration is missing, IE8 and earlier versions will add a 17px margin on the right side. This seems to be space reserved for a scrollbar. Always set the !DOCTYPE declaration when using the float property:


Example

Physics basic inventions and inventors

1.Which instrument is used to measure altitudes in aircraft's ? Audiometer Ammeter Altimeter Anemometer Explanation : ...