Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 10-06-2011, 10:18 AM gradient on text
flexdesigns's Avatar
Extreme Talker

Posts: 187
Name: Nathaniel
Location: United Kingdom
Trades: 0
hi im trying to put a gradient overlay on some text but the gradient just goes over the text :/

how would i restrict the gradient to the text

heres my code:

Code:
.pheader p{
	
	font-family:"Arial Black", Gadget, sans-serif;
	font-size:32px;
	margin:0;
	color:#87c733;
	position:absolute;

	/* gradient */
	
	background: -moz-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.2) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.2)), color-stop(100%,rgba(0,0,0,0.2))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(0,0,0,0.2) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(0,0,0,0.2) 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(0,0,0,0.2) 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33ffffff', endColorstr='#33000000',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(0,0,0,0.2) 100%); /* W3C */

}
//* Next Question is Fixed but still need to restrict the gradient to text*//

also how would i put a border on the text

heres an image of how it looks



Uploaded with ImageShack.us

for the border i just added :

Code:
border: 1px solid rgba(0, 0, 0, .39);
//* update*//

i have managed to get a text stroke i was being stupid -_-

just incase your curious the code it

Code:
-webkit-text-stroke: 1px rgba(0, 0, 0, .39);
thanks

Last edited by flexdesigns; 10-06-2011 at 10:46 AM..
flexdesigns is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-07-2011, 05:40 AM Re: gradient on text
Skilled Talker

Posts: 50
Trades: 0
These may help.

http://cssglobe.com/lab/textgradient/
http://css-tricks.com/snippets/css/gradient-text/
HullBorn is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to gradient on text
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71637 seconds with 12 queries