Subscribe:

Monday

Width and Height


When I first presented platforms, I described preparing out the dimension your platforms beforehand. This is particularly essential if the desk you are developing needs to fit within a established quantity of area on your web page. In “the old times,” we used top and dimension features in the desk tag to specify the preferred measurements for platforms. While that exercise is looked down upon by the W3C now, you can still obtain the same outcomes by including the top and dimension qualities to your design piece. If you never specify them in your value, the technique selects the dimension depending on the quantity of articles within each cellular and the quantity of available area in the screen.
Let’s say I want to involve that tic-tac-toe activity in my website, but I only had an available area on my web page that calculated 200 p large by 200 p high. Because platforms often “grow” according to the quantity of articles in them, I might want to control the top and dimension my desk, to prevent it increasing out of that 200 × 200–pixel area I specific for it. I could do so by specifying the measurements in my design piece. Offered there was only one desk tag on my web page, I could even use desk as my selector.
table {width: 200px; height: 200px; border: 3px solid black;}

In this case, I would specify an overall dimension for my desk, one that must not change if the technique screen were bigger or lesser.
                                    

0 comments:

Post a Comment