I have a rather specific issue. I am using the Chart.js library to create some charts within some div .carousel-item elements. I am also using a Bootstrap 4 template that comes with its own css and some js.
In this specific case I am creating the div .carousel-item and canvas elements dynamically. In the past these were not created dynamically and worked perfectly with the provided css. Now that I am creating these dynamically, the css is not able to properly render the canvas elements. I have attempted to isolate the cause but have been unsuccessful in doing so.
Here is a link to the JSFiddle that demonstrates the issue. If you delete the css the charts will appear how they should without the carousel.
This took me a bit longer to figure out than I am proud to admit but here it is.
The first div .carousel-item in a carousel needs to also have the active class. Otherwise the carousel has nowhere to start from.
Related
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
I am trying to implement bootstrap carousel to rotate or slide one image at a time among the multiple images in carousel.
The answer here works perfectly fine for a single carousel placed in a page. Bootstrap: Slide only one image among the multiple images in an item of the carousel
But I'm using multiple carousel inside single page. So, I modified the existing to target only the certain carousel. Right after changing css, the carousel behaved weird and now slides with a annoying animation like thing. Demo here: http://www.bootply.com/hL5UY8Jnaw
Any suggestion would be highly appreciated.
I was somehow able to correct that CSS bug using some classes and bit more css. You can check the working version here http://bootsnipp.com/user/snippets/vvl6r
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.
Have a look at this page -
http://bilalh.github.com/projects/
The titles of the projects are aligned(vertically) together in both the columns. The positioning is done on based on div and the height of div is variable.
I am trying to do something similar in my site, but the titles do not align vertically.
Can anyone tell me which CSS style is doing the magic ?
It's not so much a style as a complete css framework helping out - it is using the Blueprint CSS framework. Among other things, it makes some very nice, simple grids. Have a look at http://blueprintcss.org/
I have a small gallery of thumbnails. When I place my mouse pointer over a thumbnail image I'd like to have a full size image pop up in a div in the top right of the screen. I've seen this done using just CSS and I'd like to go down that route rather than use javascript if possible.
Pure CSS Popups2, from the same site that brings us Complexspiral. Note that this example is using actual navigational links as the rolled-over element. If you don't want that, it may cause some stickiness regarding versions of IE.
The basic technique is to stick each image inside a link tag with an actual href (Otherwise some IE versions will neglect :hover)
Text <img class="popup" src="pic.gif" />
and position it cleverly using absolute position. Hide the image initially
a img.popup { display: none }
and then on the link rollover, set it up to appear.
a:hover img.popup { display: block }
That's the basic technique, but there are always going to be major positioning limitations since the image tag dwells inside the link tag. See the link for details; he uses something a little more tricky than display: none to hide the image.
CSS Playground uses pure CSS for this type of thing, one of the demos is surely to help you and as it's all CSS just view source to learn - you probably want to use the :hover pseudo class but there are limitations to it depending on your browser targeting.
Eric Meyer's Pure CSS Popups 2 demo sounds similar enough to what you want.
Here are a few examples:
CSS Image gallery
Cross Browser Multi-Page Photograph Gallery
A CSS-only Image Gallery: Explained
A CSS-only Image Gallery: Example
This last one acts upon click. Just to be complete in behaviours.