p-panel styleClass not working

UI Components for Angular
Post Reply
omertarakci
Posts: 6
Joined: 16 Jun 2018, 20:16

18 Sep 2018, 20:07

Hi. My .html and .scss file like below. But I can't give any styleClass to p-panel. What is wrong in my code?

.html file

Code: Select all

<p-panel header="Student Info" styleClass="test">
    <div class="ui-g">
      <div class="ui-g-12 ui-md-3">
        <div class="ui-g-12">
          <b>Student</b>
        </div>
       </div>
  </p-panel>
.scss file

Code: Select all

.test {
  margin-top: 50px;
}
Last edited by omertarakci on 19 Sep 2018, 09:44, edited 1 time in total.

omertarakci
Posts: 6
Joined: 16 Jun 2018, 20:16

19 Sep 2018, 09:44

I found the solution. All of the methods working in this post. https://stackoverflow.com/a/52392534/10176050

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests