This teaches you how to set backgrounds of various HTML elements. You can set the following background properties of an element − The background-color property is used to set the background color of an element. The background-image property is used to set the background Continue reading CSS :: Backgrounds
There are four ways to associate styles with your HTML document. Most commonly used methods are inline CSS and External CSS. Embedded CSS – The <style> Element You can put your CSS rules into an HTML document using the <style> Continue reading CSS :: Inclusion
This chapter teaches you how to set different properties of a hyper link using CSS. You can set following properties of a hyper link − We will revisit the same properties when we will discuss Pseudo-Classes of CSS. The :link signifies unvisited Continue reading CSS :: Links
The General Sibling Selector ~ selects all elements that are siblings of a specified element. The following example selects all <p> elements that are siblings of <div> elements: The Adjacent Sibling Selector + selects all elements that are the adjacent siblings of a specified element. The following example Continue reading s What is the difference between ‘+’ and ‘~’ sibling selectors?
Both em and rem units are based on the font-size CSS property. The only difference is where they inherit their values from. em units inherit their value from the font-size of the parent element rem units inherit their value from the font-size of the root element (html) In most browsers, the font-size of the Continue reading What is the difference between em and rem units?