Wednesday, July 19, 2023

CSS case

 1. If you make one block element style margin: 100%; that will take the full width. But if we add any border or any other spacing that will make a horizontal scrolling.


Output:

2. if we make that block element width: auto; that type of scroll will not come and that is the default value of the block element width.

see no horizontal scroll bar.




0 comments:

Post a Comment