Guest User

weird image sizing

a guest
Aug 19th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. #PanelContainer {
  2. display: flex;
  3. flex-direction: row;
  4. justify-content: space-around;
  5. align-items: flex-start;
  6. flex-wrap: wrap;
  7. }
  8. #VirticalStacker {
  9. display: flex;
  10. flex-direction: column;
  11. justify-content: space-around;
  12. }
  13. .horizontalStacker {
  14. display:flex;
  15. flex-direction: row;
  16. justify-content: center;
  17. align-items: center;
  18. width: 100%;
  19. }
  20. .TypeImage {
  21. width: 48%;
  22. height:auto;
  23. }
  24. .Panel {
  25. border: 1px solid;
  26. border-radius: 30px;
  27. padding: 20px;
  28. background-color: #20204a;
  29. width: 30%;
  30. align-items: center;
  31. text-align:center;
  32. }
  33. .InnerPanel {
  34. background-color: #2c2c63;
  35. border: 2px solid #39398f;
  36. text-align: center;
  37. color: white;
  38. font-weight: bold;
  39. letter-spacing: 1.5px;
  40. border-radius: 20px;
  41. flex-direction: column;
  42. align-items: center;
  43. display: flex;
  44.  
  45. }
  46. #HeightMetricPanel{
  47. width: 60%;
  48. }
  49. #WeightMetricPanel {
  50. width: 60%;
  51. }
  52. #bannerImage {
  53. width: 100%;
  54. height: auto;
  55. }
  56. #PokemonName{
  57. font-size: 50px;
  58. font-weight: bold;
  59. text-align: center;
  60. color: white;
  61. width: auto;
  62. }
  63. .TitleText {
  64. font-size: 30px;
  65. font-weight: bold;
  66. text-align: center;
  67. color: white;
  68. width: auto;
  69. }
  70. .text {
  71. font-size: 20px;
  72. font-weight: bold;
  73. text-align: center;
  74. color: white;
  75. width: auto;
  76. }
  77. #PokemonPortrait {
  78. width: 100%;
  79. margin: 0 auto;
  80. }
  81.  
  82.  
  83.  
  84. <body style="background-color: #0f0f26">
  85. <img id="bannerImage" />
  86. <div id="PanelContainer">
  87. <div class="Panel">
  88. <div class="InnerPanel">
  89. <span id="PokemonName">MissingNo</span>
  90. <span id="PokemonGenus">MissingNo</span>
  91. </div>
  92. <img id="PokemonPortrait" />
  93. </div>
  94. <div class="Panel" id="VirticalStacker">
  95. <span class="TitleText">PokΓ©dex Data</span>
  96. <span class="text" id="typeText">Types</span>
  97. <div id="TypeParent" class="HorizontalStacker">
  98. <img id="TypeImg1" class="TypeImage" />
  99. <img id="TypeImg2" class="TypeImage" />
  100. </div>
  101. <span class="text">Height</span>
  102. <div class="InnerPanel" id="HeightMetricPanel">MissingNo</div>
  103. <span class="text">Weight</span>
  104. <div class="InnerPanel" id="WeightMetricPanel">MissingNo</div>
  105.  
  106. </div>
  107. </div>
  108.  
  109. </body>
Advertisement
Add Comment
Please, Sign In to add comment