Bootstrap pull-right

I have the following classes on a specific div:

col-md-5 pull-right

That works ok the only thing is that I only want that to happen when the device-width is equal to a tablet in landscape format and higher (laptop, desktop). How do I do this? Thank you in advance

Which tablet?

There are loads of tablets all with different widths for portrait and landscape. New tablets appear daily with dfiiferent sizes so how will you cater for them?

As you can see this is not an approach you can take.

You need to change the layout when the layout needs changing and not based on some arbitrary device that may exist only for now.

I would float the item to the right when the design calls for it by simply opening the window and seeing when is the best time to move it. You can the throw in a media query and add your own rule.

e.g.

@media (min-width: 760px) {
    .my-right-float {
        float: right;
    }
}

That works great Paul. Thx :slight_smile:

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