These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:12 pm Advanced search

gradient element

If you are stuck or have questions regarding HTML or other Web technologies, ask your questions here. No question too dumb!

gradient element

Postby neeep » Mon Apr 23, 2012 12:16 pm

Hi I want to layer text over the gradient element in my banner. I know it's easier to just add an image as a background to a div with text in it, but the purpose of this exercise is to utilise html5. I've put the element in a div, and tried various ways to layer text over. Is it just not possible to layer something over a html5 canvas?
neeep
<h6>
 
Posts: 1
Joined: Mon Apr 23, 2012 12:11 pm

Re: gradient element

Postby silentimp » Fri Sep 07, 2012 12:22 pm

Why do you decide to use canvas?
http://jsfiddle.net/wG8E2/

And you may also draw text in canvas element.
silentimp
<h6>
 
Posts: 4
Joined: Fri Sep 07, 2012 11:58 am


Return to Help & Advice

Who is online

Users browsing this forum: No registered users and 1 guest