How to horizontally align cell content when some cell of the table contain image?











up vote
0
down vote

favorite












enter image description here



I want to horizontally align the cell content.



documentclass[a4paper,12pt]{article}
usepackage{booktabs,graphicx}
begin{document}
centering
begin{table}
begin{tabular}{llll}
toprule
Image & Name & weight & price\
toprule
hspace*{-.8cm}includegraphics[scale=0.07]{Image/dabbasPk.png} & Dabbas & 400gm & 100tk\
includegraphics[scale=0.15]{Image/dabbasCrownPk.jpg} & Dabbas Crown & 1kg & 270tk\
hspace*{-.15cm}includegraphics[scale=0.08]{Image/neghalCrownPk.jpg} & Neghal Crown & 800gm & 220tk\
includegraphics[scale=0.09]{Image/zahdiPk.jpg} & Zahdi & 500gm & 90tk\
includegraphics[scale=0.27]{Image/zahdiCrownPk.jpeg} & Zahdi Crown & 1kg & 200tk\
includegraphics[scale=0.1]{Image/raisin.jpg} & Raisin(Dried grape) & 100gm & 45tk\
includegraphics[scale=0.2]{Image/raisinBlack.jpg} & Raizin(light Black) & 100gm & 50tk\
includegraphics[scale=0.3]{Image/blackSeed.jpg} & Black Seed & 100gm & 40tk\
includegraphics[scale=0.2]{Image/woodNut.jpg} & Woodnut & 100gm & 100tk\
includegraphics[scale=0.07]{Image/1.jpg} & Black Seed's Oil & 70ml & 160tk\
includegraphics[scale=0.07]{Image/1.jpg} & Sesame's Oil & 70ml & 100tk\
bottomrule
end{tabular}
end{table}
end{document}









share|improve this question


























    up vote
    0
    down vote

    favorite












    enter image description here



    I want to horizontally align the cell content.



    documentclass[a4paper,12pt]{article}
    usepackage{booktabs,graphicx}
    begin{document}
    centering
    begin{table}
    begin{tabular}{llll}
    toprule
    Image & Name & weight & price\
    toprule
    hspace*{-.8cm}includegraphics[scale=0.07]{Image/dabbasPk.png} & Dabbas & 400gm & 100tk\
    includegraphics[scale=0.15]{Image/dabbasCrownPk.jpg} & Dabbas Crown & 1kg & 270tk\
    hspace*{-.15cm}includegraphics[scale=0.08]{Image/neghalCrownPk.jpg} & Neghal Crown & 800gm & 220tk\
    includegraphics[scale=0.09]{Image/zahdiPk.jpg} & Zahdi & 500gm & 90tk\
    includegraphics[scale=0.27]{Image/zahdiCrownPk.jpeg} & Zahdi Crown & 1kg & 200tk\
    includegraphics[scale=0.1]{Image/raisin.jpg} & Raisin(Dried grape) & 100gm & 45tk\
    includegraphics[scale=0.2]{Image/raisinBlack.jpg} & Raizin(light Black) & 100gm & 50tk\
    includegraphics[scale=0.3]{Image/blackSeed.jpg} & Black Seed & 100gm & 40tk\
    includegraphics[scale=0.2]{Image/woodNut.jpg} & Woodnut & 100gm & 100tk\
    includegraphics[scale=0.07]{Image/1.jpg} & Black Seed's Oil & 70ml & 160tk\
    includegraphics[scale=0.07]{Image/1.jpg} & Sesame's Oil & 70ml & 100tk\
    bottomrule
    end{tabular}
    end{table}
    end{document}









    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      enter image description here



      I want to horizontally align the cell content.



      documentclass[a4paper,12pt]{article}
      usepackage{booktabs,graphicx}
      begin{document}
      centering
      begin{table}
      begin{tabular}{llll}
      toprule
      Image & Name & weight & price\
      toprule
      hspace*{-.8cm}includegraphics[scale=0.07]{Image/dabbasPk.png} & Dabbas & 400gm & 100tk\
      includegraphics[scale=0.15]{Image/dabbasCrownPk.jpg} & Dabbas Crown & 1kg & 270tk\
      hspace*{-.15cm}includegraphics[scale=0.08]{Image/neghalCrownPk.jpg} & Neghal Crown & 800gm & 220tk\
      includegraphics[scale=0.09]{Image/zahdiPk.jpg} & Zahdi & 500gm & 90tk\
      includegraphics[scale=0.27]{Image/zahdiCrownPk.jpeg} & Zahdi Crown & 1kg & 200tk\
      includegraphics[scale=0.1]{Image/raisin.jpg} & Raisin(Dried grape) & 100gm & 45tk\
      includegraphics[scale=0.2]{Image/raisinBlack.jpg} & Raizin(light Black) & 100gm & 50tk\
      includegraphics[scale=0.3]{Image/blackSeed.jpg} & Black Seed & 100gm & 40tk\
      includegraphics[scale=0.2]{Image/woodNut.jpg} & Woodnut & 100gm & 100tk\
      includegraphics[scale=0.07]{Image/1.jpg} & Black Seed's Oil & 70ml & 160tk\
      includegraphics[scale=0.07]{Image/1.jpg} & Sesame's Oil & 70ml & 100tk\
      bottomrule
      end{tabular}
      end{table}
      end{document}









      share|improve this question













      enter image description here



      I want to horizontally align the cell content.



      documentclass[a4paper,12pt]{article}
      usepackage{booktabs,graphicx}
      begin{document}
      centering
      begin{table}
      begin{tabular}{llll}
      toprule
      Image & Name & weight & price\
      toprule
      hspace*{-.8cm}includegraphics[scale=0.07]{Image/dabbasPk.png} & Dabbas & 400gm & 100tk\
      includegraphics[scale=0.15]{Image/dabbasCrownPk.jpg} & Dabbas Crown & 1kg & 270tk\
      hspace*{-.15cm}includegraphics[scale=0.08]{Image/neghalCrownPk.jpg} & Neghal Crown & 800gm & 220tk\
      includegraphics[scale=0.09]{Image/zahdiPk.jpg} & Zahdi & 500gm & 90tk\
      includegraphics[scale=0.27]{Image/zahdiCrownPk.jpeg} & Zahdi Crown & 1kg & 200tk\
      includegraphics[scale=0.1]{Image/raisin.jpg} & Raisin(Dried grape) & 100gm & 45tk\
      includegraphics[scale=0.2]{Image/raisinBlack.jpg} & Raizin(light Black) & 100gm & 50tk\
      includegraphics[scale=0.3]{Image/blackSeed.jpg} & Black Seed & 100gm & 40tk\
      includegraphics[scale=0.2]{Image/woodNut.jpg} & Woodnut & 100gm & 100tk\
      includegraphics[scale=0.07]{Image/1.jpg} & Black Seed's Oil & 70ml & 160tk\
      includegraphics[scale=0.07]{Image/1.jpg} & Sesame's Oil & 70ml & 100tk\
      bottomrule
      end{tabular}
      end{table}
      end{document}






      tables graphics






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 13 mins ago









      alhelal

      977119




      977119



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          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',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2ftex.stackexchange.com%2fquestions%2f461925%2fhow-to-horizontally-align-cell-content-when-some-cell-of-the-table-contain-image%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461925%2fhow-to-horizontally-align-cell-content-when-some-cell-of-the-table-contain-image%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