How to put css code in php request id? -


i add css code (display:none) against class (rows) in php request id when request id called. can me on this?

in particular id no. 434, want add css code against class named "rows". when 434 id called, class named "rows" hidden css code (ex. display:none). how going it. right have done this:

<?php if($_request['id']=='434'){ ?>  <?php } ?> 

need kind on this.

the page structure going put code following:

<?php defined('_jexec') or die; jhtml::_('formbehavior.chosen', 'select'); ?>  <div class="search<?php echo $this->pageclass_sfx; ?>">  </div> 

you can add css definition in html file in case request id equal 434.

use !important keyword override css definition in main css file.

<html>   <head>     <link rel="stylesheet" href="yourmainstylesheet.css"/>     <?php       if($_request['id']=='434'){     ?>     <style>       .rows {         display: none !important;       }     </style>       <?php       }     ?> 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -