LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 378 users online 224068 members 396 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Magneto
Favs: Spiderman dies when hit by semitruck.
Mood: Relaxed
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
1 online / 65 MPM
Fresh Topics
  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Adding Reply

Adding Reply
Topic HTML code help
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
King Kong Posted at 8:43 am on April 26, 2009
whats the code to get the background behind the text a different one to the main background?

Replies
anonomouse Posted at 1:29 am on June 29, 2009
Do not *twitch* use *twitch* tables *twitch* for layout... *twitch*. Tables kill little kittens.

Anyway, to your question:
pleaseremove is right. You need to have put the text in a div tag. Your website is probably like this:

Code:
<html>
<head>
...
</head>
<body background=something.gif>
My text here!!!
</body>
</html>

You need to put your text in a <div> tag ("division") to set it apart from the other elements of the web page. By using pleaseremove's code:
Code:
<div style="background-image:url('someimage.gif');">some text</div>
you change the background of whatever is in that <div> tag. <div> tags also have very precise control over what they do. If you want to get into web page design, I would recommend you go through this tutorial to learn CSS.

pleaseremove Posted at 3:39 am on June 7, 2009
Code:

<div style="background-image:url('someimage.gif');">some text</div>
RIVERA1994 Posted at 8:29 pm on June 6, 2009
I need to hide my age on myspace
steven7 Posted at 8:48 am on April 26, 2009
go to w3schools.com, you probably nee to set the txt inside a table, and change the table background the same way you would the body
Darkane Posted at 8:48 am on April 26, 2009
I'm not too good at this, but couldn't you just make a table as a textbox and give that a background for the same effect?
All 5 previous replies displayed.