Bootstrap modal not displaying properly - html

I'm facing an issue, where the bootstrap modal is not displayed correctly. The modal can be toggled. If it's toggled, it appears as another DOM element in the flow, instead of a dialog. Here's what I mean:
What I've tried:
I've manually enqueued the jquery and bootstrap javascripts and check their paths. They're valid. For debugging purposes I've taken the sample code from the bootstrap documentation and put it up on a separate page(Go there). Same result. I've tested other websites using modals, so it's definitely not some weird browser issue.
My guess is it either being a dependency problem or a conflict with the wordpress theme I'm using. I've run out on ideas how to fix this, any help is deeply appreciated.
Dependencies:

I think that you didn't import the CSS file. I checked your site. You only included bootstrap layout CSS and didn't include the modal.css. please include the modal.css.And popper.js file has an issue. please upgrade the js file.

Related

CSS: php messing up template css due to css link

My php page styling is done but when I added it to my existing html template ( which has header and left menu ) I noticed that template css menu is messed up.
While debugging what part of styling is causing an issue, I realized its due to bootstrap.min.css which I used while referring to w3schools BootStrap Progress Bar:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
Any pointers on how to avoid this? I thought of adding a wrapping container for code but not sure how to make the change. Any suggestions?
This is a difficult issue to solve as bootstrap has a lot of default styling. The only thing I can recommend is:
Be sure that your styles come after the inclusion of the bootstrap stylesheet. This way your styles will overwrite bootstraps styles where there are conflicts.
If this does not fix the issue you will probably have to use the code inspector to find all instances that you think are incorrect and override them in your own stylesheet. This will be tedius, but if you want to use bootstrap and you have conflicts it may be your only option.
Bootstrap used to have a customizer allowing you to download only what you want, but it seems that in version 4 it is a little more complicated to do this. If you are already using version 3.3 then I would recommend downloading a customized version: https://getbootstrap.com/docs/3.3/customize/

Use different Css files in different part of sing html file

I have some problem with css files, to be more detailed i have linked 2 css stiles in one html file one is style.scc and bootstrap.css I am using bootstrap social button and that's why i need bootstrap. but this movement has changed almost everything in my site...
so is there a way to call bootstrap.css file in single div and in aver divs to have original css file?
PS css Scoped property don't works from me!
No, it is not possible, if you only using bootstrap for social button - just copy styles from bootstrap.css to your stylesheet (style.css).
Scoped CSS works only in Firefox for now.
Never mynde i founde the solution from "here"
you mast set the mos important css file the last and the least important first
:-)
Bootstrap already has a feature in their site to help you doing custom builds, check it using the following link: Customize.
Also, you can always get the source code and working with it by yourself.
For more information, check the following link: Compiling CSS and JavaScript.

css issue with bootstrap menu, even though css matches internet web archive

recently some css was updated via a template that required me to restore a website. Now, the restore doesn't have the same functionality as it used to. specifically, the css / bootstrap dropdown menu now appears to remain static. You can see the issue on this page here: http://bit.ly/1tDKZEq
I have gone through the different css menus to try and edit the code in firebug but can't seem to fix it, and the template developer isn't any help. The site in question is linked here: http://bit.ly/1tDKZEq
I've compared the css files to the webarchive version of the site, and the css is exactly the same, so I don't know what I am missing...thanks for any help!

Bootstrap Offcanvas - do offcanvas css classes really exist?

I recently found out about twitter bootstrap and I have been diving deep into the most recent version, Bootstrap 3. On the website, there is an example for an "Off Canvas" template (here: http://getbootstrap.com/examples/offcanvas/ ) which I have been modifying. But there are several things in the example that do not make sense to me.
In the "Off Canvas" template example, there are div elements that reference classes such as "row-offcanvas", "row-offcanvas-right", and "sidebar-offcanvas". I cannot find these in the bootstrap.css, and neither do I see these in the Chrome DevTools. I also do not see any effect when I remove these classes. Do these classes have any purpose? Or was it a mistake in the example to include those seemingly non-existent classes?
As #mgttlinger mentioned the css is defined at offcanvas.css See http://getbootstrap.com/examples/offcanvas/offcanvas.css
If want to a walk through of how it works see http://www.kendoui.com/blogs/teamblog/posts/13-11-05/creating-a-rwd-off-canvas-layout-with-bootstrap-3.aspx. It uses http://getbootstrap.com/examples/offcanvas/ as the starting point and explains the css used to create off canvas.
http://bradfrost.github.io/this-is-responsive/patterns.html#off-canvas is an excellent resource for more background on off canvas and most other responsive design patterns.
If you look at the page source closely you will find that in the header there is
<!-- Custom styles for this template -->
<link href="offcanvas.css" rel="stylesheet">
These classes are defined in there. And at least for me it does make a clearly visible difference if I remove this.
i did experience the same dunno what i did wrong but js didnt seems to work i just remove all codes and link back all js and css not working. So i try other js on my other folders it work and copy them on my empty offcanvas page it works. Then put back all templates code and it works fine now i guess its my machine some components stop responding maybe just try restart.

Twitter Bootstrap test environment

I'm going to be making changes to Twitter Boostrap to generate my own theme and would like some kind of cheat sheet that shows the results from tweaking the styles and CSS.
Ideally maybe a single web page with all the Twitter Boostrap elements in it would be great instead of the Bootstrap documentation which has them spread out.
Even better would be a page with annotations on the various elements to show the result of your changes to the variables.less file.
Does anyone know of any resources that I should look at? Thanks in advance.
I created Bootply exactly for this purpose. Bootply is a "jsfiddle" style app that lets you edit Bootstrap friendly HTML, JS and CSS. It includes Bootstrap and jQuery for you, and there are also Bootstrap snippets that you can select from the toolbar and paste into the editor. Just click 'Run' to see your results.
Bootply features
Toolbar with all Bootstrap CSS, Components, and Javascript
Name, tag and share working Bootstrap examples
Preview in full screen or mobile/responsive
Include FontAwesome, jQueryUI and other Bootstrap-ready extensions
Test different Bootstrap versions
http://www.bootply.com
Also, this test page is useful for seeing all of the available elements at once.