How to get bootstrap to work in Eclipse? - html

I am trying to get bootstrap to work with eclipse Dynamic Web Project (Helios). However when I run (Tomcat v7) on the server I get regular html. I think there must be an error with the link. I downloaded bootstrap and imported the file system in WebContent, there is a bootstrap folder (with css, img, js) inside WebContent.
I have tried:
"href="boostrap/css/bootstrap.css". "href="WebContent/boostrap/css/bootstrap.css". "href="css/bootstrap.css". "href=bootstrap.css".
I also copied the bootstrap folder outside of WebContent and tried all of the above. What's wrong?
The code I used is exactly (copied and pasted) the source from http://getbootstrap.com/examples/starter-template/#
with the href modified. I did not put it here because I'm getting weird formatting from StackOverflow.

Could it be that you spelled boostrap instead of bootstrap when using "href...?

I am getting the same problem. When I am using eclipse server to run webpage(using bootstrap) then it doesn't work.
But if i go to the webroot or webcontent folder and open the webpage then bootstrap works fine.
I hope you have downloaded jquery.min.js.

Related

HTML file can't find bootstrap CSS File

I'm currently following a tutorial word for word but for some reason my css files aren't being detected by my html. I also tried using the full file path and that didn't effect the styling either.
This is my encounter with spring boot and bootstrap.
Have you tried using ./css/*.min.css? This should work if you have a the "css" folder on the same level as your .html file.
If you have installed node_modules your link should define like this to access bootstrap CSS file
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
or you can refer this site for more info "https://getbootstrap.com/docs/5.0/getting-started/introduction/"
Turns out it was a bug in my IDE and I just switched over to IntelliJ.

Referring Css and Bootstrap files

I have just started learning django and need some help. I have attached settings file with HTML code and its output. My HTML code is linking my css file. Am I linking it correctly or do I need to change something in settings.py file. Also I wasn't able to use bootstrap so I copied navbar example for W3school website and it ran fine. but when I replace the bootstrap link from the W3school to the one from bootstrap wesbite, it again doesn't work. And of course when I try to link downloaded bootstrap link, it doesn't work as well.
Please help me with this. I'm using django 3.1.enter image description here
Settings.py

Style sheet and Images missing on a html project

I have a weird issue. I have a website project that I am currently working and I am am using node sass. While in the IDE, I am using VS Code, everything is fine and the styles are there. If I open the html file outside of the VS Code the css disappears for some reason. The css gets compiled fine and the .css file is there. The link tag points to it just fine, but no styles and no images either. Have I missed something in the setup of my project that would cause these issues when opening the html file externally?

Bootstrap CSS & JSP

hope you're doing fine.
I am currently stuck with my Web App project. This is the context: I would like to code a Web App using J2E. There's a free template that I liked and thus I decided to download it. When starting to use it I notice the CSS isn't applied.
Instead of having this, I have this:
However I do not see where the error is. The CSS & Bootstrap files should be visible in the JSP file and IntelliJ recognizes them. However I can't display these files (whether css or even pictures) that are referenced in "href".
Here's the project structure and code, maybe something's wrong there.
I'm used to HTML and to my understanding JSP isn't too different. Are the referencings different though?
Thanks in advance for any help you'll give,
Fares
YES.
Found the answer. Put resources in different folder than WEB-INF.
I believe that, your HTML file is inside the WEB-INF folder, for the to work either remove the WEB-INF path
<link href='style/stylesheet.css'>
or move your HTML one folder up.

Codepen: Project - CSS not working

Currently, I am trying to use Codepen Project's environment to build a website and later deploy it. I am using a template that I want to start building from. It has its own HTML pages as well as CSS and JS that is linked. However, when I am working in the project environment I cannot seem to get the CSS to apply to the html code (in other words, the live preview keeps showing naked HTML). I have tried uploading the files into the project's root, tried copying them in newly created css files, and tried using them as external sources (href to an external url in the head tag).
It is really to bad because I feel the Project environment can really offer a lot, though I just can't get it to work.
Thanks in advance, and take care!
LINK TO CODEPEN PROJECT:
https://codepen.io/Thumpertje/project/editor/DxxkqM/
<div class="code">
</div>