Showing posts with label bootstrap. Show all posts
Showing posts with label bootstrap. Show all posts

Sunday, February 2, 2014

Image Background

html,body {
      background:url('file:///C:/Documents and Settings/sk/Desktop/AJ/img/back.jpg') repeat;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }

Tuesday, January 7, 2014

Codeigniter Pagination Style di Bootstrap

Buat file pagination.php di folder application/config
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 // change default output to work with twitter bootstrap styling

 $config['full_tag_open'] = '<div ><ul class="pagination">';
 $config['full_tag_close'] = '</ul></div><!--pagination-->';
 $config['first_link'] = '&laquo; First';
 $config['first_tag_open'] = '<li class="prev page">';
 $config['first_tag_close'] = '</li>';

 $config['last_link'] = 'Last &raquo;';
 $config['last_tag_open'] = '<li class="next page">';
 $config['last_tag_close'] = '</li>';

 $config['next_link'] = 'Next &rarr;';
 $config['next_tag_open'] = '<li class="next page">';
 $config['next_tag_close'] = '</li>';

 $config['prev_link'] = '&larr; Previous';
 $config['prev_tag_open'] = '<li class="prev page">';
 $config['prev_tag_close'] = '</li>';

 $config['cur_tag_open'] = '<li class="active"><a href="">';
 $config['cur_tag_close'] = '</a></li>';

 $config['num_tag_open'] = '<li class="page">';
 $config['num_tag_close'] = '</li>';

 $config['anchor_class'] = 'class="follow_link"';

 ?>

Thursday, November 14, 2013

Mengubah ukuran Modal Dialog Box pada Bootstrap

Buat di file css (misalkan mystyle.css)
 
body #mymodal {
    /* new custom width */
    width: 560px;
    /* must be half of the width, minus scrollbar on the left (30px) */
    margin-left: -280px;
}
 
nb: mymodal -> id pada modal dialog box