Container fluid for mobile

3 replies · opened Aug 1, 2016

SsaloiofunAug 1, 2016

Hi,

I'm having a problem with the navigation bar.
The navigation bar on desktop view looks better inside a <div class="container">. However, on mobile it looks better if I use <div class="container-fluid">

Is it possible to have change the class when user is on mobile, or is there any other solution?

Thank you for your help.

SsaloiofunAug 1, 2016

www.nextbitusa.com/zh/temp.html

I'm using container-fluid now, but it doesn't look good on a large display.
But container-fluid is how I want it to be on mobile.

Thank you

SsaloiofunAug 1, 2016

I think I fixed.

@media (min-width: 1200px) {
.container-fluid {
width: 1170px;
}
}

Thank you

SSemicolon WebSTAFFAug 8, 2016

Hello,

You can also consider using the data-class Feature! You can use the following code to see how the buttons changes the Classes on Different Responsive Devices:

[Button](#)

Make sure that you define all the Responsive Classes attributes for all Devices to make sure that they work uniformly on all Devices.

So consider using the following code for the Containers:


	...

This should surely work fine. Let us know if we can help you with anything else or if you find any other issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard