Langsung ke konten utama

add element on different size media using bootstrap

Hi blogger, this time i will show you about using css and bootrap responsive attibute to fix some space and make good looking view in various devices. before this, i have some "no space" problem, when my design shown in screen, everything looked good, but it was not in phone, so ... i google about it and found nice attribut css to solve it, by using "display" attribute. here the code.
/* visible div on extra small device or phone */
@media (max-width: 767px) {
/* show div */
 div.extra-div{
  padding:25px 0;
  display:block;
 }
}
@media (min-width: 768px) {
/* hidden div by "display" property will not add a space, if use "visibility" property it will add space*/
 div.extra-div{
  display:none;
 }
}

other way, we can use bootstrap responsive code, here the css code
div.extra-div{
     padding:25px 0;
}

and this is the html

Komentar

Postingan populer dari blog ini

How to insert google map on the web

Hi, i will show you how to add google map in your blog page. STEP-1 Simply add style for googlemap container to your template in head section or html post STEP-2 add html code to your template or post STEP-3 add this javascript code to your theme or post, beware of breakline on post, it will prevent code to work. We can use minify javascript tool to remove breakline over the code.

Fetch blogger Post with google API V3

Hi Blogger, here are lists of blogger api that can be used to customized and get data from blogger as your template need. Here are output example : Output: How to do that? before begin, you could see this googleapis collection. https://www.googleapis.com/blogger/v3/users/userId https://www.googleapis.com/blogger/v3/users/self https://www.googleapis.com/blogger/v3/users/userId/blogs https://www.googleapis.com/blogger/v3/users/self/blogs https://www.googleapis.com/blogger/v3/blogs/blogId https://www.googleapis.com/blogger/v3/blogs/byurl https://www.googleapis.com/blogger/v3/blogs/blogId/posts https://www.googleapis.com/blogger/v3/blogs/blogId/posts/bypath https://www.googleapis.com/blogger/v3/blogs/blogId/posts/search https://www.googleapis.com/blogger/v3/blogs/blogId/posts/postId https://www.googleapis.com/blogger/v3/blogs/blogId/posts/postId/comments https://www.googleapis.com/blogger/v3/blogs/blogId/posts/postId/comments/commentId https://www.googleapis.com/blogger/v3/blogs/blo...