You are here:  » Viewport scale


Viewport scale

Submitted by wesse249 on Sun, 2015-12-27 21:10 in

Hello David,

This is in my header.php:

<br><div id="box">
  <?php $merchant trim(file_get_contents("merchant.txt")); ?>
  <a href="/index.php" target="_self"><font color="#12622d"><?php print $config_subdomains[$merchant]; ?>.example</font><font color="#72b62b">example.com</font></a>
</div><br><br>

The problem is that the text is not scaling. Can you tell me how i can make this possible?

Submitted by support on Mon, 2015-12-28 11:23

Hello Jan,

Make sure your text is inside a standard text containing element e.g. <p> and it should then scale according to the Foundation media selectors, e.g.

<br><div id="box"><p>
  <?php $merchant trim(file_get_contents("merchant.txt")); ?>
  <a href="/index.php" target="_self"><font color="#12622d"><?php print $config_subdomains[$merchant]; ?>.example</font><font color="#72b62b">example.com</font></a>
</p></div><br><br>

The only change from your code to the above is to add <p> immediately after the opening div and </p> immediately before the closing div.

Hope this helps!

Cheers,
David.
--
PriceTapestry.com