Link to home
Start Free TrialLog in
Avatar of Simon
Simon

asked on

CSS grid none responsive

Hi, I have been learning CSS grid these past few weeks.  I have created a page using CSS grid, but I am missing a trick to make it fully responsive.  Can anyone assist me with this?  Basically when I play with screen sizes the images reduce to keep the aspect ratio but the title and box below stays the same so the image becomes detached from the text box.  I need them to stick together.  Do I need to use nested boxes?  If so how do I do this please?  Urgent help much appreciated.

This can be viewed here on codepen:

https://codepen.io/Sjohnson805/pen/7ceaeb8aefafa9269a63573877b4eeaf

Regards

Simon
Avatar of lenamtl
lenamtl
Flag of Canada image

Hi,

you can simply use Bootstrap that have everything you need already coded for responsive..
https://getbootstrap.com/

Or you can make your own system using mediia queries
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Avatar of Simon
Simon

ASKER

Hi I have used media queries - it works for small mobile devices but not for larger screens such as an iPad.
ASKER CERTIFIED SOLUTION
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Simon

ASKER

Thanks folks much appreciated.