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

What Are The Best Universities In The World?

Hard vs. Soft Water: What's The Difference?

Why People Get Naked Before Freezing To Death