Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a vertical bar on a panel?

I'm simply trying to add a vertical bar that can go from top to bottom on the right side of my panel. I would prefer to have a class instead of an in-line css style. Can anyone tell me what I'm missing, please? Thanks a lot in advance!

NOTE:

  • I want a div inside my p-panel to make the vertical bar

Here's my code:

PLUNKER

<p-panel>
 <p-header>
    Title
</p-header>

  <textarea [rows]="5" [cols]="30" pInputTextarea autoResize="autoResize"></textarea>
  <div class = "my-class"></div>

</p-panel>

Here's a pic of what I want:

enter image description here

like image 850
Devmix Avatar asked Nov 20 '25 20:11

Devmix


1 Answers

Here you go: https://plnkr.co/edit/K3SQnzRBjuZMRH0P61u3?p=preview

.ui-panel {
  position: relative !important;
}

.my-box {
  position: absolute; 
  right: 3px; 
  top: 3px; 
  bottom: 3px; 
  width: 40px; 
  background: red;
}

enter image description here

like image 176
Tallboy Avatar answered Nov 23 '25 08:11

Tallboy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!