Using flickity with bootstrap 4 for horizontal cards scrolling (responsive) - css

Can anyone provide an example of this or at least a successful example of flickity inside bootstrap 4? I am trying to make an horizontal list of cards in a sort of carousel. I want to scroll through them three a time. Using flickity seemed interesting, but I have all sort of problems doing so within bootstrap 4. Cards will not be the same size, or will just disappear. I tried using it with and without row/col classes (the grid), just had different issues.
This is a bit similar to what I want to achieve, except for the scrollbar :
https://www.codeply.com/go/PF4APyGj7F

You can hide scrollbar. Here is the code to hide scrollbar :-
::-webkit-scrollbar {
display: none;
}

After digging into my problem, I asked on the github of Flickity and someone was able to provide me with a working BS4 example. So from there I knew it was possible to use this plugin with BS4. I just had to find what I was doing wrong.
https://github.com/metafizzy/flickity/issues/742

Related

R code in Distill Blog not scrolling horizontally in Desktop

My Distill Blog is not showing the scroll bar for wide codes and outputs.
It is possible to scroll on mobile devices (without the bar appearing), but in the Desktop browser not even that.
Also, I don't know how to set the code cells' width to match the body text's width.
I really couldn't find anything to help me manage the CSS needed to deal with this problem, and I think it's something related to alignment stuff.
Here is the visual problem:
You can add overflow: auto !important; to div with class sourceCode. !important must be there, because you are using it somewhere else and without this you cant overwrite it.
Here is example:

How create a sticky Navbar that is changing the color while scrolling? [with Typescript in Angular]

I want to create a navbar like here: http://www.devoncrawford.io/
I couldn't figure it out how to interact with css elements through my ts code.
Maybe you can give me a tip, where I could research a bit more.
I would also love to get this autoscrollbutoon and just be able to interact with my css stuff.
I found a lot of jQuery stuff, but I am not familiar with it. Is that working in angular and should I learn it?
Thanks for your time. Sorry, it is a little bit general question, but I hope you can give me some advice
Check the below article which explain how to create sticky navbar using angular with good explanation and example
Ref:https://netbasal.com/reactive-sticky-header-in-angular-12dbffb3f1d3
Example:https://stackblitz.com/github/zetsnotdead/ng-reactive-sticky-header
I would use an windows eventListener to look at the scroll movement.
window.addEventListener('scroll', this.scroll);
After the scroll hits a number of vertical pixels, you could change the navbar background-color from 'transparent' to the color you want. (in the examples case '#fff'. You could make two different classes with the different background-colors and append or remove the css class.
Hope this helps.

Disable native scroll in Ionic 1.3

I'm developing an app with Ionic 1.3.3, and I want it to be available on desktop browsers as well. For this reason, I need to disable the automatic Ionic scroll because it is adapted for touchscreens and not intuitive for computers (maintain click + sliding). I know how to add a browser scrollbar by using overflow:auto; on all my ion-content.
So far I have only managed to hide the Ionic scrollbar, using the following solutions:
scrollbar-y="false"
on the ion-content, or
display: none;
on the scrollbar css. However, hiding it is not enough for what I want.
I tried several Ionic 2 solutions (for example How can I disable or hide the scrollbar within an Ionic 2 <ion-content>), but they don't seem to work, and they don't all apply since the files are not all the same.
I also tried
overflow-scroll="false"
on my ion-content, no success.
Thank you for your answers.
I have this in one of my codes, I don't now if this could helps you but it works for me:
<ion-content scroll="false">
You can found some info about this attribute in http://ionicframework.com/docs/api/directive/ionContent/

Trouble making responsive email template

I'm working on a responsive email design and running into some trouble. It partially works but I'm thinking I need fresh set of eyes and help cause I'm not finding the solutions. I think the nav links are what's creating most of the problems but unsure if that's really the problem.
Basically I want the email to be responsive and stack to pretty much a single column with exceptions.
The problems I'm running into are these:
Whole page isn't fully responsive - ( get sidescroll part of the way )
wide ads 565x70 doesn't seem to change size
Top nav with social icons are not stacking properly. I want the left links to not move (maybe center if needed for small screens) but social icons stack below the other links. 3 columns wide preferably just like they are now just want the icons below the menu.
nav menu below the logo - Here I want them to center with smaller screens but also stack in order with 2 columns wide. I've tried fluid text that wraps but it didn't seem to work for some reason.
Any help would be greatly appreciated. I've tested and tried other resource items but seem to be failing with what should work according to the other resources.
Below is the link to template.
http://bit.ly/1u67HDG
thanks.
Well, you will need a responsive css. I am a big fan of Twitter Bootstrap. You will design your entire email as a normal site with your tags and include your CSS.
Here you can look at these awesome CSS's that are responsive:
http://getbootstrap.com/
http://metroui.org.ua/
http://www.99lime.com/
http://purecss.io/
http://gumbyframework.com/
Your are setting inline widths on images and tables. The CSS in the header can't override the inline declarations.
Thanks. It seems that I mostly had each table on their own. So I created wrappers, double checked the widths re-added classes and etc. It seems to be working pretty good now.
Sometimes a fresh pair of eyes helps. Thanks again.
P.S. J.otero - Frameworks are good if you're using it for the web but they will do little to nothing for email.

Scrolling does not work when responsive bootstrap navbar is extended to full size

I just started with ROR and I'm following the One Month Rails tutorial. This includes the Bootstrap responsive navbar. I now added some pins to my pinterest clone. I noticed that the scrolling does not work when the navbar is in full size. when i make the browserwindow smaller so the navigation gets into the small navigation symbol i can scroll the page. You can probably see best on my heroku link: morning-shore-7790.herokuapp.com
It would be great to get a hint on how to solve this.
Thanks a lot
Looks like you've nested the container class inside the navbar, which will always cause this behavior.
If you're using ERB it means you didn't close a div where you should have, if you're using haml or slim it's most likely an indentation oops. If you use chrome, safari or firefox you can see this clearly, just inspect the element and collapse the navbar, if all other content is contained within that, you still haven't fixed it.
If you still have questions post your layout and your index.

Resources