app/template/default/Block/content_left_img.twig line 1

Open in your IDE?
  1. <style>
  2. /*全てに適用*/    
  3.     .l_items_default{
  4.         margin-bottom: 50px;
  5.     }    
  6. .d_item_name2{
  7.     font-size: 24px;
  8.     padding: 5px 0;
  9.     margin-bottom: 13px;
  10.     color: #2e6faf;
  11.     font-weight: bold;
  12.     }
  13.     .img_left{
  14.         float: left; 
  15.         margin-right: 30px;
  16.         
  17.     }
  18.     .btn_txt{
  19.         background-color: #439acf;
  20.         padding: 10px 10px;
  21.         width: 150px;
  22.         color:#FFFFFF;
  23.         text-align: center;
  24.         margin: 0 25px 0 0;
  25.         float: left;
  26.         line-height: 1.5;
  27.     }        
  28. .l_item_btn {
  29.         display: block;
  30.         /*width: 55%;*/
  31.         text-align: center;
  32.         margin: 10px auto 0;
  33.         padding: 5px 5px;
  34.         -webkit-border-radius: 20px;    /* Safari,Google Chrome */
  35.         -moz-border-radius: 20px;   /* Firefox */
  36.         border-radius: 20px;  
  37.         border: 1px solid #000;
  38.         margin: 10px 10px 0 0;
  39.         position: relative;
  40.         top: 36px;
  41.     }
  42. }
  43.     
  44.     
  45. /*ウィンドウ幅が767px以上の場合に適用*/
  46. @media screen and (min-width: 767px) { 
  47.     .img_left{
  48.         float: left; 
  49.         margin-right: 30px;
  50.     }
  51.         
  52.     
  53.     
  54.     }
  55. /*ウィンドウ幅が最大767pxまでの場合に適用*/
  56. @media screen and (max-width: 767px) { 
  57.     
  58.     .img_left{
  59.         width: 100%;
  60.         float: none; 
  61.         margin-right: 0px;
  62.         padding: 0 10px;
  63.     }
  64.     .img_width{
  65.         width: 100%
  66.     
  67.     }
  68. .d_item_name2{
  69.     font-size: 24px;
  70.     padding: 10px 0 0 10px;
  71.     margin-bottom: 13px;
  72.     color: #2e6faf;
  73.     font-weight: bold;
  74.     }
  75.     .content-text{
  76.         padding: 0 10px;
  77.     }
  78.     
  79.     .btn_txt{
  80.         background-color: #439acf;
  81.         padding: 10px 10px;
  82.         width: 44%;
  83.         color:#FFFFFF;
  84.         text-align: center;
  85.         margin: 0 3%;
  86.         float: left;
  87.         line-height: 1.5;
  88.     }        
  89.     
  90. .l_item_btn {
  91.         display: block;
  92.         width: 95%;
  93.         text-align: center;
  94.         margin: 10px auto 0;
  95.         padding: 15px 0;
  96.         -webkit-border-radius: 20px;    /* Safari,Google Chrome */
  97.         -moz-border-radius: 20px;   /* Firefox */
  98.         border-radius: 20px;  
  99.         border: 1px solid #000;
  100.         margin:10px auto;
  101.         position: relative;
  102.         top: 18px;
  103.     }
  104.     
  105.     }
  106. </style>
  107. <div class="l_items_default">
  108.         <div class="img_left">
  109.           <img src="/html/user_data/img/img1.jpg" alt="" class="img_width">
  110.         </div>
  111.         <h2 class="d_item_name2">Aquaextra EXCT</h2>
  112.         <div class="txt t_flexBox">
  113.           <div class="img_width">
  114.             <p class="content-text">バクテリア・ウイルス除去が可能なマルチピュア最上位モデル。大家族の方にもゆとりのファミリータイプの浄水器です。お料理の下ごしらえから飲料水までたっぷりお使いいただけます。</p>
  115.             
  116.             <div style="margin: 30px 0;">
  117.                 <p class="btn_txt">ご家族4人以上の<br />ファミリータイプ</p>
  118.                 <p class="btn_txt">1日の使用目安<br />46ℓ</p>
  119.                 <br style="clear: both;">
  120.             </div>  
  121.               
  122.             <a href="/products/detail/309" class="l_item_btn">この商品について詳しく</a>
  123.             
  124.             <a href="/items/aquaextra/" class="l_item_btn">Aquaextraシリーズについてはこちら</a>
  125.           </div>
  126.         </div>
  127.           <br style="clear: both;">
  128.       </div>