horizontal scrol bar
Larg size image upload Solved
paste this code image-container in sytle just below it's full code closing }.avatar-image-container svg
you can enter the div class according to your requirment with style
HTML
<div class="row"><div class="column"><div class="grid-container"><div class="grid-item"><div class="image-scroll-container"><div class="carousel"><div class="slides"><div class="slides grid-container"><div class="image-scroll-container"><div class="pagination">
HTML
<style>
.scroll-container,
.image-scroll-container {
width: 100%;
overflow-x: scroll;
white-space: nowrap;
background-color: #04ff00; /* Added background color */
}
.scroll-content {
/* Adjust this width according to your content */
width: 120%;
/* Optional: Add padding or margins if needed */
}
.image-scroll-content img,
.column img {
width: auto; /* Adjust as per your preference */
height: auto; /* Adjust the height as needed */
margin-right: 10px; /* Space between images */
}
.column {
display: flex;
flex-direction: column;
max-width: 500px; /* Column ki maximum width set karein */ margin-bottom: 10px;
}
.column img {
width: 100%; /* Images ki width 100% set karenge, takay woh column width ke according adjust ho jaaye */
height: auto; /* Height auto rakhte hain ki width ke hisaab se adjust ho jaaye */
margin-bottom: 10px; /* Images ke beech mein thoda space rakhein */
}
</style>
ye tino code ikk dusre ke niche paste hoge ☝
add this code in your page html
html
<div class="image-scroll-container">
<div class="image-scroll-content">
<img src="image.jpg" alt="Image 1" />
<img src="image.jpg" alt="Image 2" />
<img src="image.jpg" alt="Image 3" />
<!-- Add remaining images similarly -->
</div>
</div>
Solved
2nd line responsive grid
html
you can add grid item according how many image placed in this line
<div class="grid-container">
<div class="grid-item">
<img src="path_to_your_image.jpg" >
</div>
<!-- Add more grid items here -->
</div>
image separator
<img separator="" src="<div class=" style="clear: both;" />
if upper is not suffient use this down code
3rd line
ye appko choti image me slice deta hai
<div class="carousel">
<div class="slides">
<div class="slides grid-container">
<div class="image-scroll-container">
<div class="pagination">
<div class="column">
<img src="image.jpg" alt="Image 1">
<img src="image.jpg" alt="Image 2">
<img src="image.jpg" alt="Image 3">
<img src="image.jpg" alt="Image 1">
<img src="image.jpg" alt="Image 2">
<img src="image.jpg" alt="Image 3">
<img src="image.jpg" alt="Image 1">
<img src="image.jpg" alt="Image 2">
<img src="image.jpg" alt="Image 3">
<img src="image.jpg" alt="Image 1">
</div>
👆 blue clour ka code se appko jaisa class me image chahiye hai bana sakege
Enter in with grid working for small images TESTING{big img}
this will allow you how much is ur page vertically without scroll bar
HTML
add this code in your page html
<div class="grid-container">
<div class="grid-item">
<img src="image1.jpg" alt="Image 1" />
</div>
<div class="grid-item">
<img src="image2.jpg" alt="Image 2" />
</div>
<div class="grid-item">
<img src="image3.jpg" alt="Image 3" />
</div>
<div class="grid-item">
<img src="image4.jpg" alt="Image 4" />
</div>
<div class="grid-item">
<img src="image5.jpg" alt="Image 5" />
</div>
<div class="grid-item">
<img src="image6.jpg" alt="Image 6" />
</div>
</div>
CSS
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 columns */
grid-auto-rows: minmax(100px, auto); /* Minimum row height */
gap: 10px; /* Space between grid items */
}
.grid-item img {
width: 100%; /* Images to take full width of their grid item */
height: auto; /* Maintain aspect ratio */
}
Comments
Post a Comment