Creating “product” tables with div's












1















I'm currently working on some web coursework and as you'll notice I lack experience in web development. Basically I'm trying to create tables that hold products for a shop, however I want to use div tree's for the most part and if necessary forms for the text.



Essentially I want each independent table to hold an image, a description and eventually other data implemented with JS (I don't need help with this.. yet ^^). Hopefully you'll see what I'm trying to do from the code;



        <div id="items">
<div id="item1" class="items">
<img src="img/products/robot1.jpg"/>
</div>
<div id="item2" class="items">
<img src="img/products/robot2.jpg"/>
</div>
<div id="item3" class="items">
<img src="img/products/robot3.jpg"/>
</div>
</div>


#content {
width: 600px;
padding-top: 10px;
padding-bottom: 30px;
margin-left: auto;
margin-right: auto;
}

.items{
display:inline;
}

#items {
padding-top:10px;
}

#items img{
border: 1px solid rgba(207, 207, 207, .7);
border-radius:20px;
}


The div's are parented by the 'content' container which is 600px wide, each table would have to be roughly 193px wide to fit three "products" on a row taking margins into consideration.



I drew a quick picture to represent exactly what I'm aiming for (the 'button' represents the 'add to basket' feature).



Unfortunately I can't use any frameworks such as jquery for the task so I'm stuck doing things the hard way. Apologies in advance for my lack of experience but hopefully you can put me in the right direction.



Edit: Using div's is just a preference, if it would be easier to use standalone forms I wouldn't mind.










share|improve this question





























    1















    I'm currently working on some web coursework and as you'll notice I lack experience in web development. Basically I'm trying to create tables that hold products for a shop, however I want to use div tree's for the most part and if necessary forms for the text.



    Essentially I want each independent table to hold an image, a description and eventually other data implemented with JS (I don't need help with this.. yet ^^). Hopefully you'll see what I'm trying to do from the code;



            <div id="items">
    <div id="item1" class="items">
    <img src="img/products/robot1.jpg"/>
    </div>
    <div id="item2" class="items">
    <img src="img/products/robot2.jpg"/>
    </div>
    <div id="item3" class="items">
    <img src="img/products/robot3.jpg"/>
    </div>
    </div>


    #content {
    width: 600px;
    padding-top: 10px;
    padding-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    }

    .items{
    display:inline;
    }

    #items {
    padding-top:10px;
    }

    #items img{
    border: 1px solid rgba(207, 207, 207, .7);
    border-radius:20px;
    }


    The div's are parented by the 'content' container which is 600px wide, each table would have to be roughly 193px wide to fit three "products" on a row taking margins into consideration.



    I drew a quick picture to represent exactly what I'm aiming for (the 'button' represents the 'add to basket' feature).



    Unfortunately I can't use any frameworks such as jquery for the task so I'm stuck doing things the hard way. Apologies in advance for my lack of experience but hopefully you can put me in the right direction.



    Edit: Using div's is just a preference, if it would be easier to use standalone forms I wouldn't mind.










    share|improve this question



























      1












      1








      1








      I'm currently working on some web coursework and as you'll notice I lack experience in web development. Basically I'm trying to create tables that hold products for a shop, however I want to use div tree's for the most part and if necessary forms for the text.



      Essentially I want each independent table to hold an image, a description and eventually other data implemented with JS (I don't need help with this.. yet ^^). Hopefully you'll see what I'm trying to do from the code;



              <div id="items">
      <div id="item1" class="items">
      <img src="img/products/robot1.jpg"/>
      </div>
      <div id="item2" class="items">
      <img src="img/products/robot2.jpg"/>
      </div>
      <div id="item3" class="items">
      <img src="img/products/robot3.jpg"/>
      </div>
      </div>


      #content {
      width: 600px;
      padding-top: 10px;
      padding-bottom: 30px;
      margin-left: auto;
      margin-right: auto;
      }

      .items{
      display:inline;
      }

      #items {
      padding-top:10px;
      }

      #items img{
      border: 1px solid rgba(207, 207, 207, .7);
      border-radius:20px;
      }


      The div's are parented by the 'content' container which is 600px wide, each table would have to be roughly 193px wide to fit three "products" on a row taking margins into consideration.



      I drew a quick picture to represent exactly what I'm aiming for (the 'button' represents the 'add to basket' feature).



      Unfortunately I can't use any frameworks such as jquery for the task so I'm stuck doing things the hard way. Apologies in advance for my lack of experience but hopefully you can put me in the right direction.



      Edit: Using div's is just a preference, if it would be easier to use standalone forms I wouldn't mind.










      share|improve this question
















      I'm currently working on some web coursework and as you'll notice I lack experience in web development. Basically I'm trying to create tables that hold products for a shop, however I want to use div tree's for the most part and if necessary forms for the text.



      Essentially I want each independent table to hold an image, a description and eventually other data implemented with JS (I don't need help with this.. yet ^^). Hopefully you'll see what I'm trying to do from the code;



              <div id="items">
      <div id="item1" class="items">
      <img src="img/products/robot1.jpg"/>
      </div>
      <div id="item2" class="items">
      <img src="img/products/robot2.jpg"/>
      </div>
      <div id="item3" class="items">
      <img src="img/products/robot3.jpg"/>
      </div>
      </div>


      #content {
      width: 600px;
      padding-top: 10px;
      padding-bottom: 30px;
      margin-left: auto;
      margin-right: auto;
      }

      .items{
      display:inline;
      }

      #items {
      padding-top:10px;
      }

      #items img{
      border: 1px solid rgba(207, 207, 207, .7);
      border-radius:20px;
      }


      The div's are parented by the 'content' container which is 600px wide, each table would have to be roughly 193px wide to fit three "products" on a row taking margins into consideration.



      I drew a quick picture to represent exactly what I'm aiming for (the 'button' represents the 'add to basket' feature).



      Unfortunately I can't use any frameworks such as jquery for the task so I'm stuck doing things the hard way. Apologies in advance for my lack of experience but hopefully you can put me in the right direction.



      Edit: Using div's is just a preference, if it would be easier to use standalone forms I wouldn't mind.







      html css css-tables






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 14:13









      Brian Tompsett - 汤莱恩

      4,2321338102




      4,2321338102










      asked Dec 8 '13 at 21:00









      Chris DoddChris Dodd

      125




      125
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Maybe this will point you in the right direction.



          HTML:



          <div id="content" class="clearfix">
          <div id="items">
          <div id="item1" class="items">
          <img src="img/products/robot1.jpg"/>
          <a href="" class="add-basket">Add</a>
          </div>
          <div id="item2" class="items">
          <img src="img/products/robot2.jpg"/>
          <a href="" class="add-basket">Add</a>
          </div>
          <div id="item3" class="items">
          <img src="img/products/robot3.jpg"/>
          <a href="" class="add-basket">Add</a>
          </div>
          </div>
          </div>


          CSS:



          .clearfix { *zoom: 1; }
          .clearfix:before, .clearfix:after { content: ""; display: table; }
          .clearfix:after { clear: both; }

          #content {
          width: 600px;
          padding-top: 10px;
          padding-bottom: 30px;
          margin-left: auto;
          margin-right: auto;
          background:red;
          }

          .items{
          float:left;
          width:193px;
          min-height:100px;
          border:1px solid black;
          position:relative;
          }

          .items a.add-basket {
          position:absolute;
          bottom:0;
          right:0;
          background:black;
          color:#fff;
          }

          #item1 { margin-right:7px; }
          #item2 { margin-right:7px; }

          #items {
          padding-top:10px;
          }

          #items img {
          border: 1px solid rgba(207, 207, 207, .7);
          border-radius:20px;
          }


          http://jsfiddle.net/DNS8P/1/






          share|improve this answer
























          • Thanks a bunch, I'll have a go.

            – Chris Dodd
            Dec 8 '13 at 21:14



















          0














          Here's a FIDDLE by the image you provide.



          <div id="content">
          <h1>Products</h1>
          <div id="items">
          <div id="item1" class="items">
          <img src="img/products/robot1.jpg"/>
          <span class="desc">Description</span>
          <span class="price">$100</span>
          <span class="other">Other</span>
          <button>BUY</button>
          </div>
          <div id="item2" class="items">
          <img src="img/products/robot2.jpg"/>
          <span class="desc">Description</span>
          <span class="price">$100</span>
          <span class="other">Other</span>
          <button>BUY</button>
          </div>
          <div id="item3" class="items">
          <img src="img/products/robot3.jpg"/>
          <span class="desc">Description</span>
          <span class="price">$100</span>
          <span class="other">Other</span>
          <button>BUY</button>
          </div>
          </div>
          </div>


          #content {
          width: 600px;
          padding: 10px 10px 30px 10px;
          margin: 30px auto;
          text-align: center;
          border: 1px solid #999;
          }

          #items {
          padding-top:10px;
          }

          .items{
          display: inline-block;
          text-align: center;
          width: 180px;
          margin: 0 7px 0 7px;
          padding-top: 10px;
          border: 1px solid #999;
          border-radius: 20px;
          }

          .items img {
          width: 160px;
          height: 140px;
          border: 1px solid rgba(207, 207, 207, .7);
          }

          .items button {
          background: #666;
          width: 80px;
          height: 26px;
          float: right;
          border-top: 1px solid #999;
          border-left: 1px solid #999;
          border-right: none;
          border-bottom: none;
          outline: none;
          cursor: pointer;
          border-bottom-right-radius: 20px;
          transition: background 0.2s ease-in;
          }

          .items button:hover {
          background: #888;

          }

          .desc,
          .price,
          .other {
          display: block;
          margin-bottom: 10px;
          }





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f20459016%2fcreating-product-tables-with-divs%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Maybe this will point you in the right direction.



            HTML:



            <div id="content" class="clearfix">
            <div id="items">
            <div id="item1" class="items">
            <img src="img/products/robot1.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item2" class="items">
            <img src="img/products/robot2.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item3" class="items">
            <img src="img/products/robot3.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            </div>
            </div>


            CSS:



            .clearfix { *zoom: 1; }
            .clearfix:before, .clearfix:after { content: ""; display: table; }
            .clearfix:after { clear: both; }

            #content {
            width: 600px;
            padding-top: 10px;
            padding-bottom: 30px;
            margin-left: auto;
            margin-right: auto;
            background:red;
            }

            .items{
            float:left;
            width:193px;
            min-height:100px;
            border:1px solid black;
            position:relative;
            }

            .items a.add-basket {
            position:absolute;
            bottom:0;
            right:0;
            background:black;
            color:#fff;
            }

            #item1 { margin-right:7px; }
            #item2 { margin-right:7px; }

            #items {
            padding-top:10px;
            }

            #items img {
            border: 1px solid rgba(207, 207, 207, .7);
            border-radius:20px;
            }


            http://jsfiddle.net/DNS8P/1/






            share|improve this answer
























            • Thanks a bunch, I'll have a go.

              – Chris Dodd
              Dec 8 '13 at 21:14
















            0














            Maybe this will point you in the right direction.



            HTML:



            <div id="content" class="clearfix">
            <div id="items">
            <div id="item1" class="items">
            <img src="img/products/robot1.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item2" class="items">
            <img src="img/products/robot2.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item3" class="items">
            <img src="img/products/robot3.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            </div>
            </div>


            CSS:



            .clearfix { *zoom: 1; }
            .clearfix:before, .clearfix:after { content: ""; display: table; }
            .clearfix:after { clear: both; }

            #content {
            width: 600px;
            padding-top: 10px;
            padding-bottom: 30px;
            margin-left: auto;
            margin-right: auto;
            background:red;
            }

            .items{
            float:left;
            width:193px;
            min-height:100px;
            border:1px solid black;
            position:relative;
            }

            .items a.add-basket {
            position:absolute;
            bottom:0;
            right:0;
            background:black;
            color:#fff;
            }

            #item1 { margin-right:7px; }
            #item2 { margin-right:7px; }

            #items {
            padding-top:10px;
            }

            #items img {
            border: 1px solid rgba(207, 207, 207, .7);
            border-radius:20px;
            }


            http://jsfiddle.net/DNS8P/1/






            share|improve this answer
























            • Thanks a bunch, I'll have a go.

              – Chris Dodd
              Dec 8 '13 at 21:14














            0












            0








            0







            Maybe this will point you in the right direction.



            HTML:



            <div id="content" class="clearfix">
            <div id="items">
            <div id="item1" class="items">
            <img src="img/products/robot1.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item2" class="items">
            <img src="img/products/robot2.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item3" class="items">
            <img src="img/products/robot3.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            </div>
            </div>


            CSS:



            .clearfix { *zoom: 1; }
            .clearfix:before, .clearfix:after { content: ""; display: table; }
            .clearfix:after { clear: both; }

            #content {
            width: 600px;
            padding-top: 10px;
            padding-bottom: 30px;
            margin-left: auto;
            margin-right: auto;
            background:red;
            }

            .items{
            float:left;
            width:193px;
            min-height:100px;
            border:1px solid black;
            position:relative;
            }

            .items a.add-basket {
            position:absolute;
            bottom:0;
            right:0;
            background:black;
            color:#fff;
            }

            #item1 { margin-right:7px; }
            #item2 { margin-right:7px; }

            #items {
            padding-top:10px;
            }

            #items img {
            border: 1px solid rgba(207, 207, 207, .7);
            border-radius:20px;
            }


            http://jsfiddle.net/DNS8P/1/






            share|improve this answer













            Maybe this will point you in the right direction.



            HTML:



            <div id="content" class="clearfix">
            <div id="items">
            <div id="item1" class="items">
            <img src="img/products/robot1.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item2" class="items">
            <img src="img/products/robot2.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            <div id="item3" class="items">
            <img src="img/products/robot3.jpg"/>
            <a href="" class="add-basket">Add</a>
            </div>
            </div>
            </div>


            CSS:



            .clearfix { *zoom: 1; }
            .clearfix:before, .clearfix:after { content: ""; display: table; }
            .clearfix:after { clear: both; }

            #content {
            width: 600px;
            padding-top: 10px;
            padding-bottom: 30px;
            margin-left: auto;
            margin-right: auto;
            background:red;
            }

            .items{
            float:left;
            width:193px;
            min-height:100px;
            border:1px solid black;
            position:relative;
            }

            .items a.add-basket {
            position:absolute;
            bottom:0;
            right:0;
            background:black;
            color:#fff;
            }

            #item1 { margin-right:7px; }
            #item2 { margin-right:7px; }

            #items {
            padding-top:10px;
            }

            #items img {
            border: 1px solid rgba(207, 207, 207, .7);
            border-radius:20px;
            }


            http://jsfiddle.net/DNS8P/1/







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 8 '13 at 21:12









            HaukurHafHaukurHaf

            10k52945




            10k52945













            • Thanks a bunch, I'll have a go.

              – Chris Dodd
              Dec 8 '13 at 21:14



















            • Thanks a bunch, I'll have a go.

              – Chris Dodd
              Dec 8 '13 at 21:14

















            Thanks a bunch, I'll have a go.

            – Chris Dodd
            Dec 8 '13 at 21:14





            Thanks a bunch, I'll have a go.

            – Chris Dodd
            Dec 8 '13 at 21:14













            0














            Here's a FIDDLE by the image you provide.



            <div id="content">
            <h1>Products</h1>
            <div id="items">
            <div id="item1" class="items">
            <img src="img/products/robot1.jpg"/>
            <span class="desc">Description</span>
            <span class="price">$100</span>
            <span class="other">Other</span>
            <button>BUY</button>
            </div>
            <div id="item2" class="items">
            <img src="img/products/robot2.jpg"/>
            <span class="desc">Description</span>
            <span class="price">$100</span>
            <span class="other">Other</span>
            <button>BUY</button>
            </div>
            <div id="item3" class="items">
            <img src="img/products/robot3.jpg"/>
            <span class="desc">Description</span>
            <span class="price">$100</span>
            <span class="other">Other</span>
            <button>BUY</button>
            </div>
            </div>
            </div>


            #content {
            width: 600px;
            padding: 10px 10px 30px 10px;
            margin: 30px auto;
            text-align: center;
            border: 1px solid #999;
            }

            #items {
            padding-top:10px;
            }

            .items{
            display: inline-block;
            text-align: center;
            width: 180px;
            margin: 0 7px 0 7px;
            padding-top: 10px;
            border: 1px solid #999;
            border-radius: 20px;
            }

            .items img {
            width: 160px;
            height: 140px;
            border: 1px solid rgba(207, 207, 207, .7);
            }

            .items button {
            background: #666;
            width: 80px;
            height: 26px;
            float: right;
            border-top: 1px solid #999;
            border-left: 1px solid #999;
            border-right: none;
            border-bottom: none;
            outline: none;
            cursor: pointer;
            border-bottom-right-radius: 20px;
            transition: background 0.2s ease-in;
            }

            .items button:hover {
            background: #888;

            }

            .desc,
            .price,
            .other {
            display: block;
            margin-bottom: 10px;
            }





            share|improve this answer




























              0














              Here's a FIDDLE by the image you provide.



              <div id="content">
              <h1>Products</h1>
              <div id="items">
              <div id="item1" class="items">
              <img src="img/products/robot1.jpg"/>
              <span class="desc">Description</span>
              <span class="price">$100</span>
              <span class="other">Other</span>
              <button>BUY</button>
              </div>
              <div id="item2" class="items">
              <img src="img/products/robot2.jpg"/>
              <span class="desc">Description</span>
              <span class="price">$100</span>
              <span class="other">Other</span>
              <button>BUY</button>
              </div>
              <div id="item3" class="items">
              <img src="img/products/robot3.jpg"/>
              <span class="desc">Description</span>
              <span class="price">$100</span>
              <span class="other">Other</span>
              <button>BUY</button>
              </div>
              </div>
              </div>


              #content {
              width: 600px;
              padding: 10px 10px 30px 10px;
              margin: 30px auto;
              text-align: center;
              border: 1px solid #999;
              }

              #items {
              padding-top:10px;
              }

              .items{
              display: inline-block;
              text-align: center;
              width: 180px;
              margin: 0 7px 0 7px;
              padding-top: 10px;
              border: 1px solid #999;
              border-radius: 20px;
              }

              .items img {
              width: 160px;
              height: 140px;
              border: 1px solid rgba(207, 207, 207, .7);
              }

              .items button {
              background: #666;
              width: 80px;
              height: 26px;
              float: right;
              border-top: 1px solid #999;
              border-left: 1px solid #999;
              border-right: none;
              border-bottom: none;
              outline: none;
              cursor: pointer;
              border-bottom-right-radius: 20px;
              transition: background 0.2s ease-in;
              }

              .items button:hover {
              background: #888;

              }

              .desc,
              .price,
              .other {
              display: block;
              margin-bottom: 10px;
              }





              share|improve this answer


























                0












                0








                0







                Here's a FIDDLE by the image you provide.



                <div id="content">
                <h1>Products</h1>
                <div id="items">
                <div id="item1" class="items">
                <img src="img/products/robot1.jpg"/>
                <span class="desc">Description</span>
                <span class="price">$100</span>
                <span class="other">Other</span>
                <button>BUY</button>
                </div>
                <div id="item2" class="items">
                <img src="img/products/robot2.jpg"/>
                <span class="desc">Description</span>
                <span class="price">$100</span>
                <span class="other">Other</span>
                <button>BUY</button>
                </div>
                <div id="item3" class="items">
                <img src="img/products/robot3.jpg"/>
                <span class="desc">Description</span>
                <span class="price">$100</span>
                <span class="other">Other</span>
                <button>BUY</button>
                </div>
                </div>
                </div>


                #content {
                width: 600px;
                padding: 10px 10px 30px 10px;
                margin: 30px auto;
                text-align: center;
                border: 1px solid #999;
                }

                #items {
                padding-top:10px;
                }

                .items{
                display: inline-block;
                text-align: center;
                width: 180px;
                margin: 0 7px 0 7px;
                padding-top: 10px;
                border: 1px solid #999;
                border-radius: 20px;
                }

                .items img {
                width: 160px;
                height: 140px;
                border: 1px solid rgba(207, 207, 207, .7);
                }

                .items button {
                background: #666;
                width: 80px;
                height: 26px;
                float: right;
                border-top: 1px solid #999;
                border-left: 1px solid #999;
                border-right: none;
                border-bottom: none;
                outline: none;
                cursor: pointer;
                border-bottom-right-radius: 20px;
                transition: background 0.2s ease-in;
                }

                .items button:hover {
                background: #888;

                }

                .desc,
                .price,
                .other {
                display: block;
                margin-bottom: 10px;
                }





                share|improve this answer













                Here's a FIDDLE by the image you provide.



                <div id="content">
                <h1>Products</h1>
                <div id="items">
                <div id="item1" class="items">
                <img src="img/products/robot1.jpg"/>
                <span class="desc">Description</span>
                <span class="price">$100</span>
                <span class="other">Other</span>
                <button>BUY</button>
                </div>
                <div id="item2" class="items">
                <img src="img/products/robot2.jpg"/>
                <span class="desc">Description</span>
                <span class="price">$100</span>
                <span class="other">Other</span>
                <button>BUY</button>
                </div>
                <div id="item3" class="items">
                <img src="img/products/robot3.jpg"/>
                <span class="desc">Description</span>
                <span class="price">$100</span>
                <span class="other">Other</span>
                <button>BUY</button>
                </div>
                </div>
                </div>


                #content {
                width: 600px;
                padding: 10px 10px 30px 10px;
                margin: 30px auto;
                text-align: center;
                border: 1px solid #999;
                }

                #items {
                padding-top:10px;
                }

                .items{
                display: inline-block;
                text-align: center;
                width: 180px;
                margin: 0 7px 0 7px;
                padding-top: 10px;
                border: 1px solid #999;
                border-radius: 20px;
                }

                .items img {
                width: 160px;
                height: 140px;
                border: 1px solid rgba(207, 207, 207, .7);
                }

                .items button {
                background: #666;
                width: 80px;
                height: 26px;
                float: right;
                border-top: 1px solid #999;
                border-left: 1px solid #999;
                border-right: none;
                border-bottom: none;
                outline: none;
                cursor: pointer;
                border-bottom-right-radius: 20px;
                transition: background 0.2s ease-in;
                }

                .items button:hover {
                background: #888;

                }

                .desc,
                .price,
                .other {
                display: block;
                margin-bottom: 10px;
                }






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 8 '13 at 21:44









                mdesdevmdesdev

                5,09011328




                5,09011328






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f20459016%2fcreating-product-tables-with-divs%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Bressuire

                    Vorschmack

                    Quarantine