Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2010
    Posts
    430
    Thanks
    56
    Thanked 1 Time in 1 Post

    Question Can you create your own text-color?

    Hello,

    A thought just occurred after adding, what looks like a graphite logo for Facebook.

    I was wondering if it was possible to somehow add a texture of graphite, no font colour and....

    I'm not too sure how to explain myself here, basically, could I get graphite coloured text on my website?

    Best Regards,
    Tim

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,798
    Thanks
    6
    Thanked 1,023 Times in 996 Posts
    You mean a texture? No, that’s currently not possible with CSS.

  • #3
    New Coder
    Join Date
    Aug 2012
    Location
    Kalamazoo, MI
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You cannot use textures as text colors using CSS. The only way to achieve this would be to create a transparent image in photoshop, write the text you wish to have then overlay the text with the pattern.

  • #4
    Regular Coder
    Join Date
    Nov 2010
    Posts
    430
    Thanks
    56
    Thanked 1 Time in 1 Post
    Quote Originally Posted by VIPStephan View Post
    You mean a texture? No, that’s currently not possible with CSS.
    Correct me if I'm wrong, but it sounds like this is possible, just not with css?

  • #5
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,249
    Thanks
    15
    Thanked 254 Times in 254 Posts
    You can do this dynamically with .svg files, at least I think you could, I dont know what all the options are.

    http://www.w3schools.com/svg/svg_examples.asp

    You can probably convert an .svg with photoshop, I know for a fact that you can with Imagemagick, so that it's a .png or such.

    PS: Yes you can, use linear gradient for it, along with fill for color.
    Last edited by DrDOS; 08-01-2012 at 08:20 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •