+ 59
How can I improve width height in .html ?Like as need not big or small.
About html.
10 Antworten
+ 16
I thinks use should you CSS
Their are numerous properties which can give you the desirable effects.
+ 13
Use % or vw/vh instead of px or pt.
width: 50% always sets the width half of the container and so on.
+ 10
Use % or vw/vh instead of px or pt.
width: 50% always sets the width half of the container and so on.
Right 👍
+ 5
Px is used to declare the height and width
+ 4
For example
Width: 70% or 70px;
Same goes with height
+ 3
Using Relative units Over absolute may help you
Try to use Relative units like vw,vh,% etc... instead of Absolute units like px,pt etc
+ 3
width: 75%
using % is more recommended
+ 3
Use % in your code
+ 3
if it is not fixed that how many px you need.. suppose you want to set the image/text half of the px of our page..then you have 2 choices 1) one by one check the px width,hight
2) set the width and height to 50%
if you know the exact pixel then I prefer you to use px instead of %
:) hope it will help you.
+ 1
use % in html
For example if want to use full width then use 100%
Same thing for 100% for height
You can use 100vh for height (vh = vertical height)
Same things for width as well