5 Replies - 335 Views - Last Post: 21 December 2018 - 08:06 AM Rate Topic: -----

#1 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 108
  • Joined: 16-January 13

How to setup font color of text for js output?

Posted 19 December 2018 - 08:22 AM

I used CSS to setup panel as below.
font-family, size, stype are all working.
How to setup font color of text for bs.js output?

 .PanelStyle {
            z-index: 1;
            left: 45px;
            top: 190px;
            position: absolute;
            height: 500px;
            width: 1000px;
            font-family: Calibri;
            font-size: 8px;
            font-style:italic;
   }
   
   <asp:Panel ID="pnlAll" runat="server" class="PanelStyle">
           <script type="text/jscript" src="https://theapplicantmanager.com/bs.js"></script>
   </asp:Panel> 


Is This A Good Question/Topic? 0
  • +

Replies To: How to setup font color of text for js output?

#2 TechnoBear   User is offline

  • Lady A
  • member icon

Reputation: 328
  • View blog
  • Posts: 1,203
  • Joined: 02-November 11

Re: How to setup font color of text for js output?

Posted 19 December 2018 - 01:53 PM

Font color should just be:
color: #ff0000;

Obviously, make the color what ever color it is you need it to be.

https://www.w3school...ss/css_text.asp

This post has been edited by TechnoBear: 19 December 2018 - 01:54 PM

Was This Post Helpful? 0
  • +
  • -

#3 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 108
  • Joined: 16-January 13

Re: How to setup font color of text for js output?

Posted 20 December 2018 - 05:56 AM

View PostTechnoBear, on 19 December 2018 - 01:53 PM, said:

Font color should just be:
color: #ff0000;

Obviously, make the color what ever color it is you need it to be.

https://www.w3school...ss/css_text.asp


Color not working.

CSS code below is working.

.PanelStyle {
z-index: 1;
left: 45px;
top: 190px;
position: absolute;
height: 500px;
width: 1000px;
font-family: Calibri;
font-size: 8px;
font-style: italic;
text-align: center;
text-decoration: underline;
} 


But color never work.

text-decoration-color: red;

This post has been edited by aspfun: 20 December 2018 - 05:56 AM

Was This Post Helpful? 0
  • +
  • -

#4 TechnoBear   User is offline

  • Lady A
  • member icon

Reputation: 328
  • View blog
  • Posts: 1,203
  • Joined: 02-November 11

Re: How to setup font color of text for js output?

Posted 20 December 2018 - 07:03 AM

View Postaspfun, on 20 December 2018 - 06:56 AM, said:

text-decoration-color: red;


I'm assuming this is your edit and this is what worked?
Was This Post Helpful? 0
  • +
  • -

#5 kalindiberad   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 19-December 18

Re: How to setup font color of text for js output?

Posted 20 December 2018 - 10:47 PM

You please follow https://stackoverflo...tput-font-color here you get detailed information about your question.
Was This Post Helpful? 0
  • +
  • -

#6 TechnoBear   User is offline

  • Lady A
  • member icon

Reputation: 328
  • View blog
  • Posts: 1,203
  • Joined: 02-November 11

Re: How to setup font color of text for js output?

Posted 21 December 2018 - 08:06 AM

View Postkalindiberad, on 20 December 2018 - 11:47 PM, said:

You please follow https://stackoverflo...tput-font-color here you get detailed information about your question.


Not only does this link not answer the question here as it is to do with dynamic changing of font color, it also states to use color: [color code] which I already presented as an option and was indicated to be ineffectual.

Please refrain from posting erroneous, unhelpful responses to questions.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1