jellyfishhh

ichigosando all

Jul 5th, 2026
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.22 KB | None | 0 0
  1. <html>
  2. <head>
  3. <style>
  4.     body {
  5.         font-size: 10px;
  6. font-family: tahoma;
  7. letter-spacing: 1px;
  8. line-height: 11px;
  9. color:#f58e8e;
  10. background: linear-gradient(90deg, transparent 24%,#FFFFFF 25%, #FFFFFF 30%, transparent 31%, transparent 39%,#FFFFFF 40%, #FFFFFF 45%, transparent 45%),linear-gradient(180deg, transparent 24%,#FFFFFF 25%, #FFFFFF 30%, transparent 31%, transparent 39%,#FFFFFF 40%, #FFFFFF 45%, transparent 45%);
  11. background-size: 6em 6em;
  12. background-color: #fcecf6;
  13. opacity: 1;
  14.   background-repeat:repeat;
  15.     display: flex;
  16.     flex-direction: column;
  17.     justify-content: center;
  18.     align-items: center;
  19.   min-height: 100vh;
  20.     }
  21.  
  22. .header{
  23. position: fixed;
  24. margin-top: -525px;
  25. margin-left: 16.5%;
  26. z-index: 4;
  27. }
  28.  
  29. h1{
  30.   font-size: 40px;
  31.   color:#f84a4a;
  32. text-shadow: 4px 3px 0px rgba(255, 250, 240, 0.548);
  33. font-family: MS 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  34.   background-color: rgb(255, 228, 197);
  35.   padding: 20px;
  36.   border: 1px solid #fc4f94;
  37. }
  38.  
  39. .sandwich{
  40. background-image: url("images/strawsando-export.png");
  41. background-color: rgb(248, 242, 242);
  42. background-repeat: no-repeat;
  43. background-size:contain;
  44. border: 2px dotted rgb(255, 192, 75);
  45. height: 450px;
  46. width: 600px;
  47. position: absolute;
  48. z-index: 5;
  49. }
  50.  
  51. .textcontainer{
  52.     width: 180px;
  53.     height: 400px;
  54.     position: absolute;
  55.     top: 50%;
  56.     left: 50%;
  57.     right: 50%;
  58.     transform: translate(-50%, -50%);
  59.     text-align: center;
  60.     word-wrap: break-word;
  61.     overflow-x: hidden;
  62. overflow-y: scroll;
  63. scrollbar-width: thin;
  64. scrollbar-color: #fb7185 #fff9f100;
  65.    
  66. }
  67. .navbar {
  68.     position:absolute;
  69.     display: flex;
  70.     justify-content: center;
  71.     margin-top: 28%;
  72.     padding: 14px;
  73.     column-gap: 6px;
  74. }
  75. .nav-btn {
  76. position: relative;
  77. padding: 0 17px;
  78. border-radius: 4px;
  79. color: #f16767;
  80. font-size: 12px;
  81.  font-weight: bold;
  82.   text-decoration: none;
  83. letter-spacing: 1px;
  84.  font-family: Verdana, Geneva, Tahoma, sans-serif;
  85. box-shadow: 1px 1px 3px rgba(223, 141, 141, 0.712);
  86. transition: all 0.2s;
  87. cursor: pointer;
  88. background-color: rgb(255, 228, 197);
  89. background-size: 20px 20px;
  90. background-position: center;
  91. display: inline-flex;
  92. align-items: center;
  93. justify-content: center;
  94. height: 32px;
  95.  }
  96.  
  97. </style>
  98.  <script>
  99.     function showSection(sectionId, event) {
  100.       event.preventDefault();
  101.       document.querySelectorAll('.page-section').forEach(function(section) {
  102.         section.style.display = 'none';
  103.       });
  104.       var target = document.getElementById(sectionId);
  105.       if (target) target.style.display = 'block';
  106.     }
  107.   </script>
  108.  
  109. </head>
  110. <body>
  111. <div class="header">
  112. <h1>いちごサンド</h1>
  113. </div>
  114.  
  115.  
  116. <div class= "sandwich">
  117. <div class="textcontainer">
  118.   <!--- the main section is here. New pages can be added by making section IDs much like the about and more-->
  119.    <section id="home" class="page-section" style="display: block;">
  120. <h2>HI!</h2>
  121. <img src="https://dl.glitter-graphics.com/pub/989/989327l93at20bl8.gif"><br><br>
  122. This is my strawberry sando pixel style layout!<br>
  123. This is a super small site but would be cute for a basic blog/someone who feels overwhelmed with bigger pages.<br>
  124. Here are some styling examples:<br>
  125. <h3>Title three</h3>
  126. <h3>Title four</h3>
  127. Whipped cream divider<br><br>
  128. <img src="images/whipp.png" width="160px">
  129. </section>
  130. <!-- These sections are empty! Add new pages by copy and pasting this with new IDS-->
  131.  
  132.    <section id="about" class="page-section" style="display: none;">
  133.  
  134.    </section>
  135.  <section id="more" class="page-section" style="display: none;">
  136.    
  137.    </section>
  138.  
  139. </div>
  140.  
  141. </div>
  142. <div class="navbar">
  143.  
  144. <!-- This part you would change the links to whatever page you like-->
  145.  
  146.       <a href="#home" class="nav-btn button-home" onclick="showSection('home', event)">Home</a>
  147.       <a href="#about" class="nav-btn button-about" onclick="showSection('about', event)">About</a>
  148.       <a href="#more" class="nav-btn button-more" onclick="showSection('more', event)">Fruit</a>
  149.       <a href="#more1" class="nav-btn button-more1" onclick="showSection('more1', event)">Sandwich</a>
  150.       <a href="#more2" class="nav-btn button-more2" onclick="showSection('more2', event)">Friends</a>
  151. </div>
  152.  
  153. </body>
  154. </html>
Advertisement
Add Comment
Please, Sign In to add comment