Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the color of text to white only using Bootstrap no css

I want to change the text color to white without using a single line of css code is it possible to do that using any Bootstrap Class?

like image 734
Shubham Avatar asked Aug 16 '16 05:08

Shubham


People also ask

How do I make my text color white?

Go to Format > Font > Font. + D to open the Font dialog box. Select the arrow next to Font color, and then choose a color.

How do I change text color to white in HTML?

To specify white, for example, use #ffffff. To specify bright blue, use #0000ff. For purple, use #ff00ff.


2 Answers

Use Bootstrap-v4.

class="text-white"

Reference: https://v4-alpha.getbootstrap.com/utilities/colors/

like image 155
Niraj Kumar Avatar answered Oct 05 '22 23:10

Niraj Kumar


The classes for text colors are: .text-muted, .text-primary, .text-success, .text-info, .text-warning, and .text-danger

there is no white text color in default bootstrap classes.

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<p class="text-muted">This text is muted.</p>
<p class="text-primary">This text is important.</p>
<p class="text-success">This text indicates success.</p>
<p class="text-info">This text represents some information.</p>
<p class="text-warning">This text represents a warning.</p>
<p class="text-danger">This text represents danger.</p>
like image 26
pheroMona13 Avatar answered Oct 06 '22 00:10

pheroMona13