Jump to content

If Test for Phone or Tablet


BN_IT_Support

Recommended Posts

Posted

I have a cms database setup so that the categories view shows all of the entries on a google map:

map.thumb.jpg.37058b0f2c4b1d3ae84d1668df

However in order to get the map to display I have had to set a 700px height for its container.  I've used ipsColumns_collapsePhone to collapse the sidebar on the phone view but does anyone know how I can also detect the phone view to reduce the height of the map container for small screens please:

<div class='ipsColumns ipsColumns_collapsePhone'>
	<div class='ipsColumn ipsColumn_fluid'>
          <div id="map" style="height:700px;"></div>
  	</div>
	<div class='ipsColumn ipsColumn_wide ipsAreaBackground ipsPad_top ipsPad_bottom'>
		<div class='ipsLayout_container'>
			<p class='ipsType_sectionHead ipsPad_bottom'>Categories</p>
			<ul class='ipsForm'>
				<li class='ipsFieldRow ipsFieldRow_checkbox'>
					<span class='ipsCustomInput'>
						<input type='checkbox' id="Clubsbox" onclick="boxclick(this,'Clubs')"> 
						<span></span>
					</span>
					<div class='ipsFieldRow_content'>
						<label for='Clubsbox'>Clubs</label>
					</div>
				</li>
              	<li class='ipsFieldRow ipsFieldRow_checkbox'>
					<span class='ipsCustomInput'>
						<input type='checkbox' id="Beachesbox" onclick="boxclick(this,'Beaches')"> 
						<span></span>
					</span>
					<div class='ipsFieldRow_content'>
						<label for='Beachesbox'>Beaches</label>
					</div>
				</li>
              	<li class='ipsFieldRow ipsFieldRow_checkbox'>
					<span class='ipsCustomInput'>
						<input type='checkbox' id="Swimsbox" onclick="boxclick(this,'Swims')"> 
						<span></span>
					</span>
					<div class='ipsFieldRow_content'>
						<label for='Swimsbox'>Swims</label>
					</div>
				</li>
              	<li class='ipsFieldRow ipsFieldRow_checkbox'>
					<span class='ipsCustomInput'>
						<input type='checkbox' id="Otherbox" onclick="boxclick(this,'Other')"> 
						<span></span>
					</span>
					<div class='ipsFieldRow_content'>
						<label for='Otherbox'>Other</label>
					</div>
				</li>
              </ul>
      	</div>
		<div class='ipsLayout_container ipsPad_top'>
			<p class='ipsType_sectionHead'>A to Z</p>
			<div id="side_bar" style=" height:490px; text-decoration: none; line-height: 25px; overflow:auto;"></div>
		</div>
  	</div>
</div>

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...