lepture / github-cards

The unofficial GitHub Cards. Card for your GitHub profile, card for your GitHub repositories.
https://lab.lepture.com/github-cards/
BSD 3-Clause "New" or "Revised" License
2.12k stars 146 forks source link

Difficult to style the card #37

Open BGR360 opened 8 years ago

BGR360 commented 8 years ago

Hi lepture, I'm very new to web development and I am trying to include your style of github card on my website. I've been using a lot of the Flexible Box Model, but your card doesn't seem to be doing very well with centering vertically in my horizontal layout. Here is a screenshot:

screen shot 2016-01-25 at 1 06 05 am

Please let me know if you have any suggestions, I could be missing something obvious.

Here is the code I'm using.

lepture commented 8 years ago

The card is an iframe. You can wrap it with a div and style this div yourself.

BGR360 commented 8 years ago

I have tried wrapping it in a div and it still snaps from the center to the top once the page finishes loading

BGR360 commented 8 years ago

The iframe appears to be making itself much bigger than it needs to be. Here is a screenshot from Chrome (the card is on the very left being cut off by the screen):

screen shot 2016-01-25 at 9 25 39 am

As it is, the iframe has a size of 400 x 296 px, and as a result the surrounding div has a size of 400 x 300. However, looking at it, it shouldn't be anywhere near as tall as 300 px, it should be well less than 200px tall given its shape.

isacikgoz commented 7 years ago

It is not mobile friendly too, can you please fix the fixed width issue?

maotora commented 6 years ago

I'm also facing issues with mobile friendilyness of this app.

I came here to report it.

Quick screenshots of what happens when I switch from desktop view (shows great) to mobile view.

On Desktop / Tablet view.

screen shot 2018-01-06 at 06 17 42

On mobile view

screen shot 2018-01-06 at 06 17 13