askad

CSS Padding

CSS Padding property is used <em>to define the space between the element content and the element border</e It is different from CSS margin in the way that CSS margin defines the space around elements. CSS padding is affected by the background colors. Top, bottom, left and right padding can be changed independently using separate properties. …

CSS Padding Read More »

CSS Lists

There are various CSS properties that can be used to control lists. Lists can be classified as ordered lists and unordered lists. In ordered lists, marking of the list items is with alphabet and numbers, whereas in unordered lists, the list items are marked using bullets. We can style the lists using CSS. The CSS …

CSS Lists Read More »

CSS Margins

CSS Margin property is used to define the space around elements. It is completely transparent and doesn’t have any background color. It clears an area around the element. Top, bottom, left and right margin can be changed independently using separate properties. You can also change all properties at once by using shorthand margin property. CSS …

CSS Margins Read More »

CSS Borders

The CSS border property allows you to customize the borders of HTML elements.                             In order to add a border to the element, you need to specify the size, style, and color of the border. * border-style * border-color * border-width CSS border-style:                  The default value of border-style is none, which defines no border. …

CSS Borders Read More »

CSS Tables

The look of an HTML table can be greatly improved with CSS. ● border-collapse. ● border-spacing. ● caption-side. ● empty-cells. ● table-layout. border-collapse Property:                             The border-collapse property specifies whether the table borders are collapsed into a single border or separated as default. Example: <html>    <head>       <style type = “text/css”>          table.one {border-collapse:collapse;} …

CSS Tables Read More »

CSS Links

Links can be styled with any CSS property (e.g., color, font-family, background, etc).                                      In addition, links can be styled differently, depending on what state they are in. The following pseudo selectors are available: ● a: link -defines the style for normal unvisited links. ● a: visited -defines the style for visited links. ● a: …

CSS Links Read More »

CSS Images

Images play an important role in any webpage. Though it is not recommended to include a lot of images, but it is still important to use good images wherever required.                          The styling of an image in CSS is similar to the styling of an element by using the borders and margins. There are multiple …

CSS Images Read More »

CSS Text

In this you Learn how to manipulate text using CSS properties. ▪ color: property is used to set the color of a text. ▪ direction: property is used to set the text direction. ▪ letter-spacing: The letter-spacing property specifies the space between characters in a text. ▪ word-spacing: The word-spacing property specifies the space between …

CSS Text Read More »

CSS Fonts

CSS Font property is used to control the look of texts. By the use of CSS font property you can change the text size, color, style and more. You have already studied how to make text bold or underlined. Here, you will also know how to resize your font using percentage. These are some important …

CSS Fonts Read More »

CSS Color

The CSS color property specifies the color of the text. One method of specifying the color of the text is using a color name: like red, green, blue, etc. Here’s an example of changing the color of your font.                    We can define the color of an element by using the following ways: → RGB …

CSS Color Read More »