Is it possible to create a responsive div that is fixed from both sides? It would look something like this:
Screen (big)
+----------------------------------------------------------------+
| |
|....20px.....______________________________________....20px.....|
| | | |
| | div | |
| |______________________________________| |
| |
| |
+----------------------------------------------------------------+
Screen (small)
+--------------------------------------------+
| |
|....20px.....__________________....20px.....|
| | | |
| | div | |
| |__________________| |
| |
| |
+--------------------------------------------+
It should be noted that my focus is just on left
and right
side.
Now, is the implementation of this possible?