Question

How to format text tiles in dashboards-next similar to old dashboards?

  • 28 September 2021
  • 2 replies
  • 47 views

Userlevel 3
Badge

Anyone has any idea how to achieve the same look from the old dashboards with dashboards-next for text tiles?

 

I am using the code that @izzy posted in this link:

 

Code:

**Another colored card**

<hr>

<div class="alert alert-warning" >

<div class="card-header">

⚠️ Featured

</div>

<div class="card-body">

<h5 class="card-title">Special title treatment</h5>

<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>

<a href="www.google.com" class="btn btn-primary">Go somewhere</a>

</div>

</div>

 

 

View in the old dashboards

 

View in dashboards-next

 


2 replies

Userlevel 3
Badge

took some tweaking, but figured it out… 

 

here the code in case it helps someone:

<div style="background-color:#fceed2;  padding: 20px; border-radius: 12px;">

<font color="#f77e2c" size="6">
⚠️ Warning
</font>

<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="www.google.com" class="btn btn-primary">Go somewhere</a>
</div>

</div>

 

Hey @David_P ,

Dashboards-Next also supports the <button> tag and so taking your code one step further with a styled button:

<div style="background-color:#fceed2;  padding: 20px; border-radius: 12px;">

<font color="#f77e2c" size="6">
⚠️ Warning
</font>

<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="http://www.google.com" class="btn btn-primary">
<button style="color:white; background:blue">Go somewhere</button>
</a>
</div>

</div>

 

Reply