Text editors

 
 
Picture of José Fonseca
Change color of an hr line
 

 

By pressing the line button, is possible to choose the color of an horizontal line ?
 
Average of ratings: -
moi!!! it is what is is...
Re: Change color of an hr line
Group Documentation writersGroup Particularly helpful Moodlers

AFAIK, there is no colour picker associated with structures like lines in TinyMCE, but it is a simple step to click the HTML button, look for the place of the hr tag and add in something like <hr style="color: #800000;" noshade width="75%" align="left" size="4px" > if you want to do it all manually, but hr tag has been deprecated in HTML4.1 and is not supported in HTML5 like this, but is considered to be a thematic break. (Although what the difference is I don't know, I have always used lines as thematic breaks but only where I cannot create another page  anyway.) However, lines are somewhat problematic in modern browsers when not styled, rather than using HTML properties as demonstrated here. 


Web colour tables you can find on the web...

It is more successful to use the styling attributes though like: 

<hr style="height:8px;border-width:0;color:#800000;background-color:#800000;" width="75%"> which defaults to the centre.
 


 
Average of ratings:Useful (2)
Picture of José Fonseca
Re: Change color of an hr line
 

Hi Colin,

Thank you for your reply, you were very helpfull.

 
Average of ratings: -