6 Column Masonary

1 reply · opened Jun 19, 2019

SsakregJun 19, 2019

Hi,

Rather than specifying a small and a full image, are there any templates with the required .CSS that would AUTO resize the image within each of the container? I have hundreds of image, I do not want to resize each of that image.

What I have a stand alone is something like below style

	<style> 
		.gfg { 
			width:auto; 
			text-align:center; 
			padding:20px; 
		} 
		img { 
			max-width:100%; 
					height:auto; 
		} 
	</style>

which when used as below

	<div class = "gfg"> 
		<p id="my-image"><img src="images/portfolio/full/1.jpg" /< 
		</p> 
	</div> 

will auto resize accordingly.

With your template which can be adopted to multiple uses, I am struggling to figure out the right one that helps me with what I need.

Thank you,
Sak

SSemicolon WebSTAFFJun 20, 2019

Hello,

While this is not recommended and will affect your Page Load times considerably, you can consider using the Bootstrap Grid: https://getbootstrap.com/docs/4.3/layout/grid/ to create your own grid. You can try using the following code:


	
		
			
![attachment](images/portfolio/full/1.jpg)

		
	
	
		
			
![attachment](images/portfolio/full/1.jpg)

		
	
	
		
			
![attachment](images/portfolio/full/1.jpg)

		
	
	
		
			
![attachment](images/portfolio/full/1.jpg)

		
	
	
		
			
![attachment](images/portfolio/full/1.jpg)

		
	
	
		
			
![attachment](images/portfolio/full/1.jpg)

		
	

	...

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard