-1

My site is hosted at "nateshmbhat.github.io". I have used mdboostrp's row and col for my dom. But its not mobile friendly (shows lot of background space).

Site : https://nateshmbhat.github.io/ . Its a static site.

How do i fix it ?

Site code : https://github.com/nateshmbhat/nateshmbhat.github.io

Natesh bhat
  • 12,274
  • 10
  • 84
  • 125

2 Answers2

2

Add this tag to the head: <meta name="viewport" content="width=device-width, initial-scale=1">

Joe Karam
  • 54
  • 6
  • it still looks like all the cards stick to the right edge of screen and shows only left margin\ – Natesh bhat Jul 23 '18 at 07:56
  • 1
    @Nateshbhat, You have set up a width in the line, ```
    ``` and i think so it was not making the responsive, try to remove the ```width: 22rem``` in mobile devices using media query and so you can get mobile responsive..
    – Maniraj Murugan Jul 23 '18 at 08:26
0

It looks like your cards use the class "m-5".

<div class="card m-5 hoverable projectCard" style="width: 22rem;">

If you want them to be responsive using boostrap the class is "col-md-5".

<div class="card col-md-5 hoverable projectCard">

Does it answer your question ?

Paul92ilm
  • 32
  • 5