Posts

Showing posts with the label CSS

CSS Colors

Image
CSS Colors Setting Color Property : The shading property normally characterizes the shade of the content substance of a component. For example: The shading property indicated in the body selector characterizes the default content shading (closer view shading all in all) for the entire page. body {     color: #000000; } Hues in CSS regularly indicated by the accompanying techniques: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red" Take a gander at CSS Color Names for a total rundown of conceivable shading names. Influence of Color Property on Borders and Outlines  The shading property isn't only for content substance, yet for anything in the frontal area that takes a shading esteem. For example, if fringe shading or blueprint shading worth hasn't been characterized unequivocally for the component, the shading worth will be utilized. p.one {     color: #0000ff;     borde...

CSS Syntax

Image
CSS Syntax A CSS rule consists of a set of style rules that are interpreted by the browser and then applied to the corresponding elements in the document. Syntax CSS rules have two main parts, a selector and one or more declarations: CSS Selector Syntax Illustration Selectors are used to declare which of the markup elements a style applies to. The declarations that appear in the block that follows the selector may be applied to all elements of a specific type, or only those elements that match a certain attribute. You will learn more about selectors in next chapter. Each declaration consists of a property and a value. The property is the style attribute you want to change; they could be color or border etc. Each property has a value, for example color property can have value either blue or #0000FF etc. h1 {color:blue; text-align:center;} To make the CSS more readable, you can put one declaration on each line, like this: Example : h1 {     color:...