Size of text inside a slider is too big in mobile phones. In a laptop is OK.

2 replies · opened May 4, 2017

NnaliagaMay 4, 2017

Hi, First of all congratulations for the template is awesome. I am contacting you because when I look the website in a mobile phone, the text inside the slider is too big for the size of the window, so only I can see some of the text. How can I resize the text of the slider for small windows? Some part of the text use the class class="text-rotater. Thank you in advance.

This is the code:

	<section id="slider" class="slider-parallax" style="background: url('_img/bg_slider.jpg'); background-size: cover;" data-height-lg="670" data-height-md="500" data-height-sm="400" data-height-xs="250" data-height-xxs="200">
		<div class="slider-parallax-inner">

			<div class="container clearfix">
				<div class="vertical-middle center">

					<div class="heading-block nobottomborder center">
						<h1>
							<div class="text-rotater nocolor" data-separator="|" data-rotate="flipInX" data-speed="3500">
								<span class="t-rotate">English Language Programs in USA|Business Programs|Undergraduate Programs|Master and PHD Programs| Certificate Programs & Diplomas|Programs for adults and young students|Graduate Preparation and More</span>
							</div>
						</h1>
						<h4 style="color: #FF6100; ">Study Abroad at prestigious Universities & Institutes</h4>
					</div>

					[Check the Programs](#main)
					
                    <br>
                    <br>
                    <br>
                    [](#main)

				</div>
			</div>
		</div>
        
	</section>
SSemicolon WebSTAFFMay 10, 2017

Hello,

Consider using the Responsive Classes for this Purpose. Add the following CSS Code using which you can control the Margin on different devices sizes:

.device-sm .heading-block h1 { font-size: 24px; }

.device-xs .heading-block h1 { font-size: 22px; }

.device-xxs .heading-block h1 { font-size: 20px; }

This will Definitely work fine. The Responsive Classes are as follows:

.device-lg – Class for Large Devices >=1200px

.device-md – Class for Medium Devices >=992px to 1199px

.device-sm – Class for Tablets

.device-xs – Class for Landscape Mobiles or Phablets.

.device-xxs – Class for Portrait Mobiles

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard