Home > OS >  React material ui responsive drawer - I want to remove the padding from the Toolbar
React material ui responsive drawer - I want to remove the padding from the Toolbar

Time:06-12

Let's say I have the code from here:

enter image description here

CodePudding user response:

You can do the following :

img {
    position: relative;
    left: 3.5em;
    bottom: 1em;
}

/** Also Use a Class Selector if you don't want to alter all <img> elements on page.**/

Add this to your CSS File. This should work although you might need to play around with some media queries in order to make it responsive.

It also centers the logo, looks better IMO.

  • Related