LiveWire Peer Support Network

Printable Version of Topic "HTML code help"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Web Design & Search Engine Optimization (http://www.golivewire.com/forums/forum-200-s-0.html)
---- HTML code help (http://www.golivewire.com/forums/peer-ybbbyia-support-a.html)


-- Posted by King Kong 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?


-- Posted by Darkane 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?


-- Posted by steven7 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


-- Posted by RIVERA1994 at 8:29 pm on June 6, 2009

I need to hide my age on myspace


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

Code:

some text


-- Posted by anonomouse 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:


...

background=something.gif>
My text here!!!

You need to put your text in a

tag ("division") to set it apart from the other elements of the web page. By using pleaseremove's code:
Code:
some text
you change the background of whatever is in that
tag.
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.


www.golivewire.com