SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need to change image color(or show as if it is changed)

    Lets suppose it is transparent gif....(white parts are transparent actually)

    i need to change color of those patterns only
    or show as if it is changed in screen

    is it possible using jquery

    Image can be divided in to 2 color separate images

    if yes,how?

    thanks

  2. #2
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    660
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You could make the center "white" part a div, and apply border color as a background to the pattern color?

    Such as:

    border: 30px solid red;

    30 pixels being the size of the pattern.

    Of course, you could also change it with custom JS and jQuery if you want.

    Hope it helps.

  3. #3
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by USPatriot View Post
    You could make the center "white" part a div, and apply border color as a background to the pattern color?

    Such as:

    border: 30px solid red;

    30 pixels being the size of the pattern.

    Of course, you could also change it with custom JS and jQuery if you want.

    Hope it helps.
    if i do that way i think solid red will be filled over all pattern destroying the pattern....
    there are white parts inside patterns as well
    and this is just one example...
    there are other patterns more complex than this...
    so cannot make solution for this specific problem coding 30px and so on
    any way thanks


Bookmarks

Posting Permissions

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