Skip to content

Instantly share code, notes, and snippets.

@yutaide
yutaide / footer_place.js
Created June 19, 2019 15:16
フッターをブラウザ最下部に固定配置する方法
@yutaide
yutaide / navbar3.php
Created May 19, 2019 15:29
完成形コード
<!--
******************************
@初期設定
HTMLテンプレート
HTMLバージョン:HTML5
文字コード:UTF-8
Bootstrap
******************************
-->
<!DOCTYPE html>
@yutaide
yutaide / categorylink.php
Created May 19, 2019 15:18
カテゴリーページへのリンク
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
@yutaide
yutaide / navbar.html
Created May 19, 2019 13:53
Bootstrap公式サイトのNavbarサンプルコピペ
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
@yutaide
yutaide / index.html
Last active May 19, 2019 14:01
Bootstrap導入済みのHTML雛形(コピペしてからコーディングしてください)
<!--
******************************
@初期設定
HTMLテンプレート
HTMLバージョン:HTML5
文字コード:UTF-8
Bootstrap
******************************
-->
<!DOCTYPE html>
@yutaide
yutaide / index.html
Created April 18, 2019 09:59
bs隙間系5
<div class="container" style="padding: 10px; background-image: url(./images/star.gif)"> <!-- .containerに背景画像を設定 -->
<div class="row" style="background-color: green; margin-left: 0; margin-right: 0;">
<div class="col-sm-4" style="background-color: blue; padding: 0;">
<img src="./images/img1.jpg">
</div>
<div class="col-sm-4" style="background-color: yellow; padding: 0;">
<img src="./images/img4.jpg">
</div>
<div class="col-sm-4" style="background-color: purple; padding: 0;">
<img src="./images/img5.jpg">
@yutaide
yutaide / index.html
Created April 18, 2019 09:52
bs隙間系4
<div class="container" style="background-color: red; padding: 10px;">
<div class="row" style="background-color: green; margin-left: 0; margin-right: 0;">
<div class="col-sm-4" style="background-color: blue; padding: 0;"> <!-- padding:0指定-->
<img src="./images/img1.jpg">
</div>
<div class="col-sm-4" style="background-color: yellow; padding: 0;"> <!-- padding:0指定-->
<img src="./images/img4.jpg">
</div>
<div class="col-sm-4" style="background-color: purple; padding: 0;"> <!-- padding:0指定-->
<img src="./images/img5.jpg">
@yutaide
yutaide / index.html
Created April 18, 2019 09:44
bs隙間系3
<div class="container" style="background-color: red; padding: 10px;"> <!-- padding:10px指定 -->
<div class="row" style="background-color: green; margin-left: 0; margin-right: 0;"> <!-- .rowのネガティブマージンを削除 -->
<div class="col-sm-4" style="background-color: blue;">
<img src="./images/img1.jpg">
</div>
<div class="col-sm-4" style="background-color: yellow;">
<img src="./images/img4.jpg">
</div>
<div class="col-sm-4" style="background-color: purple;">
<img src="./images/img5.jpg">
@yutaide
yutaide / index.html
Created April 18, 2019 09:42
bs隙間系2
<div class="container" style="background-color: red; padding: 10px;"> <!-- 単にpadding:10pxと指定 -->
<div class="row" style="background-color: green;">
<div class="col-sm-4" style="background-color: blue;">
<img src="./images/img1.jpg">
</div>
<div class="col-sm-4" style="background-color: yellow;">
<img src="./images/img4.jpg">
</div>
<div class="col-sm-4" style="background-color: purple;">
<img src="./images/img5.jpg">