Marthee commited on
Commit
6ceaf9b
·
verified ·
1 Parent(s): 4cbd751

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +28 -7
static/style.css CHANGED
@@ -130,16 +130,36 @@ body{
130
  position: absolute;
131
  }
132
 
133
- #imgContainer {
134
- display: inline-block; /* Makes each imgContainer inline and block level */
135
- margin-bottom: 20px; /* Adds spacing below each container */
136
- flex-basis: calc(100% - 40px); /* Ensures each container has a minimum width */
137
- flex-shrink: 0; /* Prevents the container from shrinking */
138
- z-index: 90;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
140
 
141
  #backgroundimg {
142
- margin-top: 10px;
143
  display: flex; /* Use flexbox to align items horizontally */
144
  /* flex-wrap: wrap; Allows items to wrap to the next line if they exceed container width */
145
  background-color: lightgrey;
@@ -147,6 +167,7 @@ body{
147
  overflow: auto;
148
  white-space: nowrap;
149
  padding: 20px;
 
150
  }
151
 
152
  #underimgbuttons, #imgs {
 
130
  position: absolute;
131
  }
132
 
133
+ .imgContainer {
134
+ display: flex;
135
+ flex-direction: column; /* images on top, buttons below */
136
+ gap: 15px;
137
+ margin-bottom: 1px;
138
+ padding: 2px;
139
+ border: 1px solid #ccc;
140
+ border-radius: 10px;
141
+ width: fit-content; /* only as wide as needed */
142
+ /* max-width: 100%; /* don’t overflow parent */ */
143
+ }
144
+
145
+ .imgsWrapperContainer {
146
+ display: flex;
147
+ gap: 15px;
148
+ overflow-x: auto; /* enable horizontal scroll */
149
+ max-width: 850px; /* only as wide as one image (adjust to taste) */
150
+ /* or try width: 100%; if you want it responsive */
151
+ white-space: nowrap; /* keep items in one row */
152
+ }
153
+
154
+ .imgsWrapperContainer img {
155
+ flex-shrink: 0; /* don’t shrink images */
156
+ border-radius: 8px;
157
+ cursor: pointer;
158
+ height: 600px;
159
  }
160
 
161
  #backgroundimg {
162
+ margin-top: 1px;
163
  display: flex; /* Use flexbox to align items horizontally */
164
  /* flex-wrap: wrap; Allows items to wrap to the next line if they exceed container width */
165
  background-color: lightgrey;
 
167
  overflow: auto;
168
  white-space: nowrap;
169
  padding: 20px;
170
+ margin-left:120px;
171
  }
172
 
173
  #underimgbuttons, #imgs {