ngoctuanai commited on
Commit
ce3c46a
1 Parent(s): 861dde3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -16
app.py CHANGED
@@ -112,26 +112,21 @@ css = """
112
  outline: none;
113
  }
114
 
115
- /* Gallery Styles */
116
- #gallery {
117
- display: flex;
118
- flex-direction: column; /* Stack images vertically */
119
- justify-content: center;
120
- align-items: center;
121
- margin-top: 2rem;
122
- }
123
-
124
- /* Set a fixed size for the image container */
125
  .image-container {
126
- width: 300px; /* Set the desired width for the image container */
127
- height: 200px; /* Set the desired height for the image container */
128
- overflow: hidden; /* Hide overflow if the image is larger */
 
 
 
129
  }
130
 
131
  /* Set a fixed size for the image */
132
- #gallery img {
133
- width: 100%;
134
- height: 100%;
 
135
  border-radius: 10px;
136
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
137
  }
 
112
  outline: none;
113
  }
114
 
115
+ /* Centered Container for the Image */
 
 
 
 
 
 
 
 
 
116
  .image-container {
117
+ max-width: 400px; /* Set the maximum width for the container */
118
+ margin: 0 auto; /* Center the container horizontally */
119
+ text-align: center; /* Center the content inside the container horizontally */
120
+ padding: 20px; /* Add padding for spacing */
121
+ border: 1px solid #ccc; /* Add a subtle border to the container */
122
+ border-radius: 10px;
123
  }
124
 
125
  /* Set a fixed size for the image */
126
+ .image-container img {
127
+ width: 100%; /* Ensure the image fills the container */
128
+ height: auto; /* Maintain aspect ratio */
129
+ max-height: 300px; /* Set a maximum height for the image */
130
  border-radius: 10px;
131
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
132
  }