Touch rem

Developer
Size
2,979 Kb
Views
10,120

How do I make an touch rem?

What is a touch rem? How do you make a touch rem? This script and codes were developed by Daniel Grant on 28 December 2022, Wednesday.

Touch rem Previews

Touch rem - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Touch rem</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="header"> <button class="btn-previous">Previous</button> <button class="btn-next">Next</button>
</div>
<div class="wrapper"> <table> <tr> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </table> <button id="toggleTouch">Toggle Touch Mode</button>
</div>
<div class="footer"> <ul> <li><a>Home</a></li> <li><a>Categories</a></li> <li><a>People</a></li> <li><a>Settings</a></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Touch rem - Script Codes CSS Codes

* { box-sizing: border-box;
}
html { height: 100%; font-size: 68.5%;
}
html.touch { font-size: 80%;
}
body { font-size: 14px; font-size: 1.4rem; padding-top: 4.0rem; padding-bottom: 4.0rem; height: 100%;
}
.header { position: fixed; top: 0; width: 100%; height: 4.0rem; background: #a300a3; padding: 1rem 1.2rem;
}
.header button { background: #700870; border-radius: 2px; -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15); color: #ddd; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7); cursor: pointer; border: 1px solid #5b065b; border-bottom-color: #2b032b;
}
.btn-previous { float: left;
}
.btn-next { float: right;
}
.footer { position: fixed; left: 0; bottom: 0; width: 100%; height: 4.0rem;
}
.footer ul { margin: 0; padding: 0;
}
.footer li { float: left; display: block; list-style: none; width: 25%; height: 100%; padding: 1.2rem 0; background: #333; color: #eee; text-align: center; border-left: 1px solid #666;
}
.footer li:first-child { border-left: 0;
}
.wrapper { height: 100%; background: #eee; padding: 2rem 1.2rem;
}
table { width: 100%; margin-bottom: 20px;
}
td { height: 5.0rem; border: 1px solid #ccc;
}

Touch rem - Script Codes JS Codes

$('#toggleTouch').click(function() { $('html').toggleClass('touch');
});
Touch rem - Script Codes
Touch rem - Script Codes
Home Page Home
Developer Daniel Grant
Username djgrant
Uploaded December 28, 2022
Rating 3
Size 2,979 Kb
Views 10,120
Do you need developer help for Touch rem?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Daniel Grant (djgrant) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!