CSS Height and Width

The height and width of the elements can be set by the respective namesake properties. The values can be set as any of the following three: auto : The default value calculated by the browser itself Length: Can be given in px, pt, cm etc. Percentage: As per the percentage of the containing block Here’s … Read more

CSS Margins: Definition properties and examples

CSS Margins specify the space and position of the element on the web page. There are basically 4 properties that can be used to specify the margins for the elements:

CSS margin example This div has a margin of 50px.

Run margin-top margin-bottom margin-right margin-left

Run The value for the margin properties … Read more

CSS Colors

Colors are the quintessential part of styling in general. Web page designers also need to be very specific about their color choices to provide the right feel to the user. Thus, web-page styling language CSS, also has colors as one of its important features. Almost all the popular browsers in their latest versions, allow 120+ … Read more