Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Grid layout - Card within main section #443

Open
MartijnHarmenzon opened this issue Feb 7, 2020 · 0 comments
Open

Grid layout - Card within main section #443

MartijnHarmenzon opened this issue Feb 7, 2020 · 0 comments

Comments

@MartijnHarmenzon
Copy link

MartijnHarmenzon commented Feb 7, 2020

I am trying to insert a card within a grid column. Somehow it is not doing anything with padding. I would like to fit the card nicely within the main section. So looking like a card wthin the main section.
Any suggestions?

image

Code I am using:

  <div class="grid grid-cols-12 grid-rows-3 gap-2 h-64">
    <nav class="row-span-3 col-span-1 bg-gray-600">
      Nav...
    </nav>

    <main class="row-span-3 col-span-8 bg-gray-500">
      <div class="bg-green-100 border border-black rounded shadow text-center uppercase p-4 h-full">
        Card1
      </div>
    </main>

    <aside class="row-span-1 col-span-3 bg-gray-400">
      Aside...
    </aside>

    <aside class="row-span-2 col-span-3 bg-gray-400">
      Aside...
    </aside>
  </div>
@MartijnHarmenzon MartijnHarmenzon changed the title Grid layout - Card within main Grid layout - Card within main section Feb 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant