Questions: What I want is for the green background not to be 100% of the page width. }, .cls1{ Text color using internal CSS } Start Your Free Software Development Course, Web development, programming languages, Software testing & others. In this snippet, we are going to show you two methods of creating a blurry text. How to move divs to bottom and top of absolute div. width: 122px; In this example, the paragraph text is changed to the color black: margin: 2 auto; } Arun .four{ . Next we can use the css colors with the help of ID in the html web pages same way we used heading tags but the element is provided by giving it in default ID these ids are declared in the heading part of the style code also the ID can be any used any styled the same as used in the html tags but important point is the id value should start with the special character like ‘#’ symbol after that we can used any number of formats like alphabets, numbers etc. Choosing a text-color falls in the same scheme. The default color for text in most browsers is black. background-color: dimgrey; padding: 13px; .colCls{ color: cornflowerblue; background-color:#8b008b ; The text-indent property is used to indent the text of … For this example, we will define the style for the elements within the tags using the style parameter. } How to change the background color of TEXT in css. CSS Tutorial » CSS Text Color The color property is used to set the color of the text. .firstcss{ Apart from that the same classes are declared in the The final html code should look like this: Saving this file and opening through a browser will give the following output: For this example, we will define the style for the elements within the tags using the style parameter. Sam