The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "SVG" Oct 14 - 6:30 PM Eastern
Get a free trial // Grow your CSS skills // Land your dream job

dynamicly create borders???

  • ags
    # February 17, 2009 at 4:04 am

    I built this site ( some time ago and now they (the client) wants to change the colors of the borders.
    I tried to find a way to do it without images- no luck.
    It’s vary important that the borders style (dots, etc) and the rounded corners stay the same and must work in IE and FF.
    Any suggestions?

    I want to do this dynamicly (in the code without images) because the client has decided to change the color every year.

    THANKS :)

    # February 17, 2009 at 11:14 am

    Until CSS3 is standard across all browsers, you’ll need to do it with images.

    # February 17, 2009 at 2:31 pm
    "TheDoc" wrote:
    Until CSS3 is standard across all browsers, you’ll need to do it with images.

    same as doc says….. but:

    you could take the images and change the colour of them in an image editor, and throw them back up as the same file. very quick and no change of code.

    if you are just needing to change what is already there and working…..

    in the gimp you can select a colour and change it very easily, thats what I would do, if the client only wants a colour change but keep the same look

    plus you could save the new images as something different and make another css file, in fact you could do this any number of times, and make a script that will load something new in the CSS.

    I have a random script that randomly changes some text on a page, there is no reason why you can’t amend it for the CSS decleration

    # February 17, 2009 at 2:46 pm

    Yes, as Iky said, very easy stuff.

    If it’s something that the client wants to be able to do in the future, you can create several different colored borders now, label the couple areas they need to change in the CSS (change green.jpg to red.jpg, etc etc), and bam! Wash your hands of it.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed