Image Overlay with light-box and link icons on card

5 replies · opened Dec 16, 2022

SstookyDec 16, 2022

hi semicolon

I would like to add an overlay to the cards images with link and lightbox

but when I use normal code samples from the canvas-demo, the overlay always spans to the whole card
even if I wram the image and overlay

can you please help?

this is a partial from my typo3-cms extension where I integrated the code
it renders ONE SINGLE CARD


	
		

      

        

		  
			
			
				
					
						
							
								
							
							
								
							
							
								
							
						
					
				
			
			
				
					
						
							
								
							
						
					
				
			
		

          
            
				
					{newsItem.title}
				
			
            
				
					
						
							{newsItem.teaser -> f:format.crop(maxCharacters: '{settings.cropMaxCharacters}', respectWordBoundaries:'1') -> f:format.html()}
						
						
							{newsItem.bodytext -> f:format.crop(maxCharacters: '{settings.cropMaxCharacters}', respectWordBoundaries:'1') -> f:format.html()}
						
					
				
			
			» Details «
          
        
      
SstookyDec 16, 2022

essentially it should be integrated into the if clause

``

SstookyDec 16, 2022

oh and sorry for the mess in custom.css ... all still under development

SstookyDec 17, 2022

never mind ... stupid me, was missing a grid on parent div to make the overlay work
all fine, sorry to bother

case closed

SSemicolon WebSTAFFDec 20, 2022

Hello,

Thanks for your Kind Patience!

Always make sure that your Image Wrapper (The DIV Tag that is the direct parent the `` Tag) has the .position-relative Tag and also the Overlay code is added inside this DIV.

That's it. The Overlay will then be properly positioned.

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