Applying Background Styles In CSS

applying background color to the complete html document } h1 { background-color:#6495ed;// applying background color to an element Advanced background styles: One of the most commonly used style in backgrounds is background-repeat. Code snippet ...

Read More »

Using Text Formatting Styles in CSS

<p class="uppercase">This is some text.</p> <p class="lowercase">This is some text.</p> <p class="capitalize">This is some text.</p> Font styles.font-family:"Times New Roman",Times,serif ...

Read More »

Using Margin, Padding & Border Property In CSS

This text has equal padding on each side. The padding on each side is 2cm. This text has a top and bottom padding of 0.5cm and a left and right padding of .can be written in a single declarations as margin: 100px 50px 100px 50px; i.e.; top right bottom left...

Read More »

Make Rounded Corners & Shadows With CSS

CSS is a language that allows you to change the appearance of elements on the page:border-radius property allows you to add rounded corners to elements border:2px solid #a1a1a1; padding:10px 40px; background:#dddddd; width:300px; border-radius:25px; ...

Read More »