Use media query to reduce font and img size when width is < 960px

Avoid having horizontal scrollbars.
This commit is contained in:
Louis Bailleul
2015-11-23 12:08:09 +00:00
parent ccfc9450ae
commit 6bd84ee94f
2 changed files with 19 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ else {
}//end if
if($_SESSION['screen_width']) {
if($_SESSION['screen_width'] >= 800) {
$graph_array['width'] = ($_SESSION['screen_width'] - 420 )/count($periods)+1;
if($_SESSION['screen_width'] > 800) {
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
}
else {
$graph_array['width'] = $_SESSION['screen_width'] - 155;