LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 426 users online 221836 members 123 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
majorwolf
Music: mcr,3 days grace,franz ferdinand,gnarls...
Mood: Tired
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
2 online / 32 MPM
Fresh Topics
  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic

HTML code help
Replies: 5Last Post June 29 1:29am by anonomouse
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( King Kong )


Ghostbuster

Patron
Reply
whats the code to get the background behind the text a different one to the main background?

-------
Pandora didn't think outside the box

8:43 am on April 26, 2009 | Joined: Feb. 2006 | Days Active: 1,079
Join to learn more about King Kong Wales | Straight Male | Posts: 26,246 | Points: 38,097
LiveWire Humor
Darkane


Guru

Patron
Tech Support Leader
Reply
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?

-------
last.fm

8:48 am on April 26, 2009 | Joined: Aug. 2007 | Days Active: 725
Join to learn more about Darkane Ireland | Straight Male | Posts: 10,735 | Points: 21,927
steven7


Connoisseur
Reply
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

-------
I have no signature.

8:48 am on April 26, 2009 | Joined: June 2003 | Days Active: 390
Join to learn more about steven7 Alabama, United States | Straight Male | Posts: 3,353 | Points: 7,185
RIVERA1994


Novice
Reply
I need to hide my age on myspace

8:29 pm on June 6, 2009 | Joined: June 2009 | Days Active: 1
Join to learn more about RIVERA1994 United States | Posts: 1 | Points: 11
pleaseremove


meh

Patron
Tech Support Leader
Reply
Code:

<div style="background-image:url('someimage.gif');">some text</div>


-------
Anyone who isn't confused really doesn't understand the situation
http://craigk.org/pictures/
Can you work out the code?

3:39 am on June 7, 2009 | Joined: Feb. 2005 | Days Active: 1,299
Join to learn more about pleaseremove England, United Kingdom | Straight Male | Posts: 5,945 | Points: 37,468
anonomouse


Dairy Product Addict
Reply
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.

-------
I once heard the voice of God.
It said "Vrrrrmmmmm." Unless it was just a lawn mower.


1:29 am on June 29, 2009 | Joined: April 2007 | Days Active: 81
Join to learn more about anonomouse California, United States | Straight Male | Posts: 605 | Points: 1,572
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic