- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to set viewport height and width in CSS
To set viewport height in CSS:
h1 { font-size: 4.0vh; }
To set viewport width in CSS:
h1 { font-size: 5.5vw; }
- Related Articles
- How to set cell width and height in HTML?
- How to set height equal to the dynamic width (CSS fluid layout) in JavaScript?
- How to set Viewport?
- The width and height properties in CSS
- Width and Height of Elements in CSS
- Set the height and width of an image using percent with CSS
- How to set width and height of an element using jQuery?
- How do I set browser width and height in Selenium WebDriver?
- Change the width and height of element using CSS
- How to set the height/width of a Label widget in Tkinter?
- Set min-width and max-width of an element using CSS
- How to set the min and max height or width of a Frame in Tkinter?
- Set border width with CSS
- How to use height and width attributes in HTML?
- How can I set an ImageView's width and height programmatically in Android?

Advertisements