1.

Solve : Can you make a fading background in HTML??

Answer»

Is there any way I can make 2 colors fade in to each other with HTML as a background?
I've tried creating an gradient with Photoshop but it just repeats the im over and over.
I just want one transition.

Is that possible with HTML?
I've tried googling but I always end up on a CSS file.

Thanks in advance

Jonas HTML can't but JavaScript can.

www.javascriptkit.com/script/cut4.shtml
www.permadi.com/tutorial/jsbgfade/index.html
www.crowderassoc.com/javascript/bgfade.htmlYeah, I've also found some of that stuff, but that's not what I want.
I would like to have something like this:


But when I add this picture to the body as background, it keeps repeating it. But I want it to keep red for the rest of the page.
Any idea how I can do that?

Jonas Is is across or down the page you want?

If it's across you want, just use this:
<body style="background: url(bg.jpg) #000000 repeat-x;">

"repeat-x" repeats the IMAGE across the page.

Repeating the image down the page isn't possible, as far as I'm aware of. You'd need to just make the image larger.I want it down the page xD
I've tried making the image 9000xp of height but it just resises it
Can't I do it with javascript? (I don't know much about javascript)

Jonas Are you putting it in a table? Or is it the background?

You might find something at one of these links:
http://www.w3schools.com/css/css_background.asp
http://www.dotnetspider.com/resources/20752-Repeat-image-using-CSS.aspx

I'm not sure about either though. It mightn't look like you want it to.Yeah I've also already found that, but I can only use HTML cause my nephew uses a program to add tekst and that prog can only read htlm

I've started a topic in programming to ask if it is possible with javascript This is it

Jonas JavaScript isn't really programming though...

Also, JavaScript ends up modifying HTML code, so if you were able to do it with JavaScript, then you would be able to do it with HTML or CSS.oh xD didn't know both of that xD
then my post in prog is kinda worthless (can some admin please remove it then?)
Srry about that

An other MISTAKE I made was thinking that CSS was a total different LANGUAGE then HTML I can use you links, I think that will help me out, I'm gona give it a try.
I'll let you know

Thanks for all the help (although I was reacting in a KIND of wrong way because I had totally wrong knowledge about javascript and CSS)

Jonas Actually wait.

WordPress (the blog) has the ability to do this. Not sure what language it uses though. Give me a while and I'll dig through it.Dno wordpress I'll give the CSS a try, dno if it will give the result I want.

Jonas I've found something that is pretty close to what I wanted:
<body style="background: url(http://i202.photobucket.com/albums/aa33/Jonasty009/achtergrond.jpg) #7a0305 repeat-x;">
It would be nice if it would fade throughout the whole page but it's close ENOUGH,

THANKS FOR ALL THE HELP!!!
I'm really sorry I misunderstood you earlier on

1 more question, can I take different images and put them under each other?
that would be even nicer

Jonas Good.

Putting two images as your backgound I'd say is definitely not possible though. Ok oh well I have a result that's very close, thanks

I'll be back with other questions xD
Cause I want to learn a lot and give the site a professional look.

I'm thinking, should I create different topics on each question that I will have or should I make one topic?

Jonas
Well, different topics would probably be easier to follow.

Just once they're not too closing related.



Discussion

No Comment Found