Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Portrait mode on tablet
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Portrait mode on tablet

Portrait mode on tablet 10 years, 4 months ago #15659

  • tomroguk
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
I would like to display all the modules and component area in full across the screen, but only in portrait mode on a tablet. So more like a phone display for easier scrolling.

I'm using the main-right.xml for the layout, and this works fine with the tablet in landscape. However, for portrait mode on a tablet I would like it to be more like a phone with the modules spanning the full width and stacking.

Do I need to work with the media queries or the responsive.css/bootsrap.css?

Many thanks, the support on the forum has been top notch so far.
My source code for the main-right.xml:

<?xml version="1.0" encoding="utf-8"?>
<layout type="mr">	
	<head>
	</head>
	<groups>
		<group class="span4" data-tablet="span12" >right</group>
		<group 
			   class="span8" 
			   data-tablet="span12"
			   
			   noright-class="span12"
			   noright-data-tablet="span12">main</group>
	</groups>
	<blocks>			
		<header html5tag="header" order="1" id="yt_header" autosize="0">
			<positions>
				<position class="span6" data-tablet="span12"  type="feature">@logo</position>
				<position class="span6" data-tablet="hidden"  data-mobile="hidden"  style="none" type="modules">contact</position>	
			</positions>
		</header>
		
		<menu html5tag="section" order="2" id="yt_menuwrap">
			<positions>
				<position class="span12"  type="feature">@menu</position>
			</positions>
		</menu>
		
		<slideshow html5tag="section" order="3" id="yt_slideshow">
			<positions>
				<position class="span12" style="ytmod" type="modules">slideshow</position>
			</positions>
		</slideshow>
		
		<spotlight1 html5tag="section" order="4" id="yt_spotlight1">
			<positions>
				<position class="span8" data-tablet="span12"  style="ytmod" type="modules">top1</position>
				<position class="span4" data-tablet="span12"  style="ytmod" type="modules">top2</position>
			</positions>
		</spotlight1>	
		
		<content html5tag="section" order="5" id="content" showDivTop="0" showDivBottom="0">
			<positions>
				<position class="span12 no-minheight" group="main" type="message"></position>
				<position class="span12" style="ytmod" group="main" type="modules">breadcrumb</position>
				<position 
					class="span12" 
					data-normal="" 
					
					noleft-class="span12" 
					noleft-data-normal="" 
					
					noright-class="span12" 
					noright-data-normal="" 
					
					noleftright-class="span12" 
					noleftright-data-normal="" 
					 
					group="main" type="component">component</position>
				<position class="span12" data-normal="span12" data-tablet="span12" group="right" style="ytmod" type="modules">right</position>
			</positions>
		</content>
		
		<spotlight2 html5tag="section" order="8" id="yt_spotlight2">
			<positions>
				<position class="span3" data-normal="" data-tablet="span3" style="ytmod" type="modules">bottom1</position>
				<position class="span3" data-normal="" data-tablet="span3" style="ytmod" type="modules">bottom2</position>
				<position class="span3" data-normal="" data-tablet="span3" style="ytmod" type="modules">bottom3</position>
				<position class="span3" data-normal="" data-tablet="span3" style="ytmod" type="modules">bottom4</position>
				
			</positions>
		</spotlight2>
		
		<spotlight3 html5tag="section" order="7" id="yt_spotlight3">
			<positions>
				<position class="span8" data-normal="" data-tablet="span6" style="ytmod" type="modules">bottom5</position>
				<position class="span4" data-normal="" data-tablet="span6" style="ytmod" type="modules">bottom6</position>
			</positions>
		</spotlight3>
		
		<footer html5tag="footer" order="11" id="yt_footer">
			<positions>
				<position class="span8" type="feature">@copyright</position>
				<position class="span4" type="modules">footer</position>					
			</positions>
		</footer>
		
	</blocks>
</layout>		

Re: Portrait mode on tablet 10 years, 3 months ago #16762

  • tomroguk
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
Can anyone help with this?
Thanks
Tom

Re: Portrait mode on tablet 10 years, 3 months ago #16810

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
Dear Tom R,

Could you provide your site access information so that we could check directly.

Thanks!

Re: Portrait mode on tablet 10 years, 3 months ago #16889

  • tomroguk
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
Hi there,
Sent log in details. Thanks for taking a look!
  • Page:
  • 1
Time to create page: 0.20 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes