answersLogoWhite

0


Best Answer

Assuming the text you're trying to add a background color to text within a div: # divname { height: 100; width: 100; } function onchange(divname) { document.getElementById(divname).style.backgroundColor = "blue"; } link Or do you just want a static color behind your text? # bluebg { background-color: blue; }

OR look at my text!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you add to change the background color of a text?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you change the color of the background on a paragraph add this to the text background is?

shading


How do you change the background color on WordPress for my blog?

From your main dashboard click design on the blog you want to change, then click template designer. then click into the tab in that that lets you change your background image. ask if you have any questions.


How do you change the background color of your Facebook account using greasemonkey?

You can add a couple of firefox add ons to either add a skin or change the color of the facebook page borders. one is called greasemonkey and the other is called stylish.


What attibute you use in the body tag to give the background a solid color?

You use the style attribute to add any presentation to your BODY element, including background-color. This is the code to make an HTML document with a red background. <body style="background-color: red"> You can also add a stylesheet to the head of the document (or an external file, if you're going to have the same rules on more than 1 page.) <style type="text/css"> body { background-color: #f00; } /* Short of ff0000 which is hex for "red" */ </style>


How do you put a color background on websites?

You can only change a website if it belongs to you. for instance i have a website of my own. i created it using webeden. when i log in, i can edit anything i want, including the color background. you try!


Change gaiaonline text?

you cant really do that yet. as far as i know now you can only change the color and add underlines. try tektek.org


How do i change my layout on Twitter?

With Twitter you can add a Twitter background and you can change the colors of the background, the text, and a few other items.First you need to find a background made for Twitter at PROFILErehab.com, their twitter section is here: http://profilerehab.com/twitter_homeWhen you find the background you like, save it to your desktop.Then you need to login to twitter, click settings and then design. Here you choose Change Background and pick the background you found from your desktop. Then hit Save Changes and the background should show up. You can also change your design colors by clicking on Design colors and you can find the correct codes for each color on the PROFILErehab site next to where the background was that you picked. Here is a link to really detailed directions if you get confused: http://profilerehab.com/twitter-help/instructions (linked below)


How can create webpage?

First you have to start with the basic layout of a webpage: from this you can do most things such as change the background colour or add text to the webpage. <html> <body bgcolor="blue"> <font face="Arial" color="white" size="8"> <p>This is a piece of example text</P></font> </body> </html>


How do you add a background color for all h1 elements?

h1 { color: #f00; } Yields red H1 headers in shorthand for #ff0000 that is used in HTML. This will work in all cases unless an ID or a class overrides it.


How do you put words in a picture in windows move maker?

You can add title/text to various places in your movie: at the beginning or end, before or after a clip, or overlaying a clip. The title plays for the specified amount of time, either on the screen by itself or overlaying the video as it plays, and then the title/text disappears and the video clip or picture continues.To add a title/text or credit:If you know where you want the title/text or credit to appear in your movie, click that location on the storyboard/time-line.> Click Tools, and then click Titles and Credits.> Click the link that corresponds to where you want to add the title or credit.> In the Enter text for title box, type the text that you want to appear as the title/text or credit.> After you type the text, the monitor displays the default animation and format for the title or credit you want to add.> To change the title/text animation, click Change the title animation, and select a title animation from the list.> To change the font and color for your title, click Change the text font and color, and then choose the font, font color, formatting, background color, transparency, font size, and position of the title to your liking.> Click Add Title.To edit an existing title:> On the storyboard/time-line, click the title/text you want to edit.> Click Edit, and then click Edit Title.> Make the changes you want to make, and then click Add Title.:)


Why do people change the text color?

Some people get really bored with the same thing over and over so they change the color just to add some excitement. Or sometimes people do it just to have their words stand out.


How do you type HTML color font?

For the entire page, in the body tag you can use the text attribute. So if you wanted the colour to be gold, you would have:For individual elements of the page, you can use the font tag like this:That will continue having the text as gold until the font tag is closed. You can also change colours within tags using the style attribute.This text is red in colour.