Answer
There are three positioning schemes that allow you to control layout of a page: normal , float , and absolute positioning.
Normal Flow
The block-level elements within a page will flow from top to bottom, and inline elements will flow from left to right.
Float
Allows you to specify how you want to control the position for a box with values like static, relative, absolute and fixed.
Absolute
Takes an element out of normal flow, allowing you to fix its position by giving it the position property with a value of absolute
Answer
@import imports another style sheet into the current style sheet. It should appear right at the start of the style sheet before any of the rules, and its value is a URL
!important indicates that some rules should take precedence over others.
Answer
The display property force an element to be either a block-level or inline box. Use the value none to indicate that the box should not be displayed, it is treated as if it were not in the markup at all.
While the visibility property allows us to hide a box from view with a value of hidden you do not see the content of the element.
Answer
The :before and :after pseudo-elements are added to the selector and then the content property is used to specify what should be inserted into the document. These pseudo-classes enable us to add text before or after each instance of an element defined in a selector
for example:
p.abstract:after {content: “You need to register to read the full article.”; color:#ff0000;}
By default, the element created using these pseudo-classes will be inline unless you use the display property with a value of block
Answer
Five properties that can only be used with tables are:
Answer
We can set it using the list-style-type property which can be assign any of the values from "none, disc(default) a filled-in circle, circle, square a filled-in square".
Answer
By using the background-repeat property with any of the following value:
Answer
Answer
The default behavior of most browsers show links in blue with an underline and change the color of links you have already visited.
The following are properties often used with links:
Answer
Sometime the content you want to fit in the box might require more space than you have allowed for it. The overflow property was designed to deal with these situations and provide us the following values to set it:
Answer
The following CSS properties gives us control to control the dimensions of a box:
Answer
CSS provides the following properties through which we can control the border of a box:
Answer
.divsettings {
color:#000000;
background-color:#ffffff;
font-family:arial, verdana, sans-serif;
font-size:12px;
line-height:24px;
}
Answer
Every box has three properties