Ask Experts Questions for FREE Help !
    Gretsch6120's Avatar
    Gretsch6120 Posts: 4, Reputation: 1
    New Member

    Feb 8, 2006, 08:46 AM
    How To Add Text Background In Dreamweaver?

    I created a website which has a very colourful background image so when I put text on it you cannot read the text properly. I used to use a program called Namo Web Builder and in this there was a function which put a background around the text you was typing. Check out so that you know what Iím talking about.

    I am now using Macromedia Dreamweaver to create a website as I had many problems with Namo. I am using exactly the same background image so I need the text background function again but I cannot find it anywhere in Dreamweaver. Is it possible to do this in Dreamweaver?

    I have found that the bit of code which gives the text its coloured background is: background-color:red;">. When I try to paste this code into Dreamweaver it often just messes up the page and doesnít work.

    Is there not just a function in Dreamweaver which you can turn on to enable you to do this?

    Thanks for reading this. I look forward to some replies.

    Best Regards,
    LTheobald's Avatar
    LTheobald Posts: 1,051, Reputation: 127
    Ultra Member

    Feb 8, 2006, 09:18 AM
    The problem is that you are just pasting that text into the design tab on Dreamweaver. That text is some HTML so it needs to go into the Code tab. I don't know if there is a button etc. to allow this in DreamWeaver but here's how to do it using the HTML code.

    • Switch form the design view to the Code view.
    • You are know looking at the HTML of your web page. Find the text you want to put a background round (try CTRL+F and then searching for it). It will hopefully be surrounded by some tags like below:

      <p>Give me a red background</p>
      If it doesn't have any tags round it - add some span tags. E.g.

      <span>Give me a red background</span>
      Now what you want to do is to set a style on this tag, in this case giving it a red background. So change the tag to look like the following:

      <p style="background: red;">Give me a red background</p>
      <span style="background: red;">Give me a red background</span>
    • Switch back to the design view and it should show you the red text.

    Of course there are more choices of colour than just "red". You can try other colour names or you can also enter a hex code which is a hash (#) followed by 6 characters from 0-9 or A-Z. E.g. White in hex is #FFFFFF, black is #000000. Some examples of hex colours here.
    ahcould's Avatar
    ahcould Posts: 3, Reputation: 1
    New Member

    Feb 20, 2009, 08:12 PM

    If you are eager tlearn something try learning how to style a webpage using CSS.

Not your question? Ask your question View similar questions


Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.

Check out some similar questions!

Dreamweaver and auto resizing [ 5 Answers ]

I am working on a website in Dreamweaver and I am running into a small problem. I am working on a large screen laptop with screen settings of 1440 x 900 pixels. Of course everything looks fine. However, when I go to a different computer with 800 x 600 settings or something different than...

Dreamweaver MX: ASP.NET creating art gallery [ 4 Answers ]

I am creating a web art gallery. The problem I am having at the moment is that I want to link members on the site to their gallery page. I have a page with members name on them. I want to link those names to a single gallery page. Depedning on what name I pressed on, I want the gallery page to...

Background mode? [ 2 Answers ]

What is background mode?A program in background mode has any feature?How to make a program run in background mode?Please explain to me.Thanks in advance.

View more questions Search