Home › Forums › Other › Alternate website for iPad & Mobile › Re: Alternate website for iPad & Mobile
March 27, 2011 at 5:00 pm
#53471
DogsGhost
Member
you use a media query to check for something like what kind of device the person is using or, as I usually do, check the current width of their browser. You then attach a stylesheet that has the altered styling for that screen size.
The first link is the full stylesheet for desktop browsers. then if the screen width goes to 768 or lower (ipad) the third stylesheet comes into play. Then if the screen goes belows 320px (phone) the 2nd sheet is activated.