The table stores the text <p>ТЕКСТ</p> . I deduce it in Accardion:

 echo ("<p>{$rezult['anot']}<br><br> .......</p>"); 

But it is prescribed for me on exit.

 <p style="display: none; ">чмчм</p> 

Those. There is a registration, but what the hell is it and where does the style get registered from ( style="display: none; ) Ie not to show it? After all, in the styles I have nothing like that and it wasn’t. I quote a piece of styles with the p tag

 .accordion p { background: #f7f7f7; margin: 0; padding: 100px 15px 20px; border-left: solid 1px #c4c4c4; border-right: solid 1px #c4c4c4; } 
  • Most likely after downloading it is written by the accordion script - Sh4dow
  • but this is impossible. He can, by himself, write what he pleases? - new_russian_man
  • Where to look? If you looked from firefox ("source code of the selected fragment"), then it will show the same if the style is established by javascript. - Sh4dow
  • 100% of the vehicle is in debager <br> (more than one firebug can do it;)) - Zowie
  • 3
    write adequate topic names - LackOfKnowledge

1 answer 1

Because if you want to bring this style, you need to prescribe as follows:

 <p class="accordion">{$rezult['anot']}<br><br> .......</p> 

or stuff in a div with a class of accordion style p. Pulls not that? Because you simply specified styles to p.

Or the option is possible simply to reassign styles to p

 p { background: #f7f7f7; margin: 0; padding: 100px 15px 20px; border-left: solid 1px #c4c4c4; border-right: solid 1px #c4c4c4; } 
  • I tried both ways - did not help (((((((( - new_russian_man