Créer un compte ou loggez-vous pour pouvoir ajouter, commenter et noter les snippets.

Navigation

Tags relatifs

my Symfony Plugins

Plugins demos


My bookmarks

Vous pouvez commenter/noter en utilisant le compte anonymous (mot de passe: anonymous)
You can comment/rate using the anonymous account (password: anonymous).

Snippets taggés : "div" Snippets taggés : "div"

[CSS] Centrer une image dans un div - 242 view(s)

Pour un comportement identique dans IE et FF.

div.alaune_box {
    text-align: center;
    margin-right: 5px;
}
 
div.alaune_box a img {
  margin: 0 auto;
}
 
div.alaune_box p {
    text-align: center;
}
 
div.alaune_box a img {
    margin-bottom: 2px;
}
 
div.alaune_box p a img {
    margin-top: 4px;
}
 
par COil le 2008-09-29, taggé : center  css  div  image 
(1 commentaire)

[symfony] Rafraîchissement de div en remote call avec des slots - 250 view(s)

<?php slot('search-nb-results'); ?>
  Element.update('search-nb-results', '<?php echo $pager->getNbResults(); ?>');
  Element.update('search-nb-results-offers', '<?php echo $count_offers; ?>');
<?php end_slot(); ?> 
<?php echo javascript_tag(get_slot('search-nb-results')); ?>
 

Avec echappage du js:

    <?php // Maj javascript par slot  ?>
    <?php $slot_name = 'old_match_bar_'. $old_bar_match_id; ?>
    <?php slot($slot_name); ?>
 
      <?php $html = escape_javascript(get_component('member_match', 'barSummaryLeft', array(
        'match_bar_id' => $old_bar_match_id,
      ))); ?>
 
      Element.update('membres-going-matchbar<?php echo $old_bar_match_id; ?>', '<?php echo $html; ?>');
 
    <?php echo javascript_tag(get_slot($slot_name)); ?>
 
par COil le 2008-09-29, taggé : ajax  div  remote  slot  symfony  update 
(1 commentaire)
Debug toolbar