ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Program to change a horizontal line color

<< < (2/2)

shagger1:
Yey mouser that is correct-I use colorcop though....

Lets say I have a page or create one with a horizontal rule(line) - I can edit the size with NVU or a few other applications but none allow you to change the color-you need to view the source and add #f00000 or whatever-some program that would open an html document and see the <hr> then give you a dropdown menu that would have some predefined colors the just click on and then the line color would be whatever you chose,you see??

allen:
A simple regex find/replace would do it.
Go here:
http://tinyurl.com/gyjqz

Alternately, to just replace <hr and not the closing tag (so you can just insert the color while preserving any following values) you could use this one:
http://tinyurl.com/e7dsz

Open your html file, edit the color code, hit preview to preview it or replace to get the modified source.

If the hr already has a defined color, it gets a bit more complicated, but is doable . . .

mouser:
it also sounds like not a coding snack but a feature that would be useful in a visual html editor - della is doing a review of html editors for dc, maybe she can keep her eye open for such features.

taichimaster:
Perhaps I am missing something, but why not just add a CSS rule for the HR tag in the header or something?

shagger1:
Thanks for the tips but I am trying to make my life easier<grin>I can open the html and add all that stuff but I mostly use NVU and it can change the size but  not the color....I like the easy way-I guess I am a wimp as I love WYSIWYG editors!! Allen-you have a cig in your ear!!

Navigation

[0] Message Index

[*] Previous page

Go to full version