100% width sumoselect

Hi

Has anyone used custom select drop down plugin “SUMOSELECT”

SUMO SELECT

I am not able to set its width to 100%.

Its only accepting width values in pixels.

Thanks
Vineet

Got a code sample we can play with?

You’re supposed to be working but the only thing you want to do is play! This youth! :stuck_out_tongue:

Psh - I go into work at 7AM. I sent that aroiund 5:50AM. I just woke up and tried coding for SPF before work.

That being said, now I’m at work, and yes I do wanna play :smiley: .

Hi Ryan

You can download zip file from this link

SUMO SELECT

or from this DEMO PAGE

sumo select demo link

Thanks
Vineet

I am not allowed to download random links. Perhaps get a codepen demo up or an actual webpage?

If that “sumo select demo link” showcases the problem, which selects are you having trouble getting 100% width?

Hi Ryan

In the sumo demo page i want to use the basic

Is that file online somewhere? You can upload external resources.

Hi Ryan

I inserted all js in the JS Window.

Here is the link to codepen i created

Code pen page

In the CSS File, in the start i have given

.SlectBox { width: 100% !important; padding: 5px 8px;}

But If you see the result page , the

Hi Ryan

I think the codepen was not fully save earlier.

Please check it again here

code pen saved again. Please click here again

Its not 100%

Thanks
Vineet

.SumoSelect needs width:100% on it. You have it set as an inline-block element which shrinkwraps and doesn’t extend the full width of hte page by default.

Or better yet - why even have display:inline-block on there?

Hi Ryan

I just changed the width from original 200px to 100%.

Rest all is the default that comes in the zip file package.

Do you want me change display property to block ??

Thanks
Vineet

Hi Ryan

I changed it to display block and it stretched to 100%.

Wow. It worked.

Thanks a lot

Vineet

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.