The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Dynamically derive CSS colours from image

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #29422

    Hi all, first post here so be gentle!

    I’m working on a site with a ‘featured’ post atop the home page. My page has a thin border at the top, and I’d love to be able to define the colour value of that border dynamically, from the dominant colour of the image in that featured post.

    Anyone know if that’s possible?




    I would suggest to find the dominant color on the serverside ( php, ruby, asp, whatever ), and set the border color as inline css in this case. AND i would suggest the color-calculation to be done when image gets uploaded.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.