Change the width of the search bar

by markp   Last Updated October 09, 2019 22:09 PM - source

I am a newbie and I am just getting started with all this so I apologize for my lack of education about this in advance. I am trying to change the size of the search bar on Magento 2. I have made a child theme from the parent magento and I just cant seem to change the width of the search bar. I did search the similar articles but I had no luck figuring it out.

Tags : magento2


Answers 1


You can do this with some simple CSS.

/* Size of the search box */
.form-search input.input-text {
    width: 250px; /* Your desired width */
}

Hope it helps..

Akshay Prabhakar
Akshay Prabhakar
October 09, 2019 21:32 PM

Related Questions