Skip to content

Tag: css

Vuejs loading CSS and JS files giving MIME type error

I have created a new vue-webpack project. when I want to add CSS and js files through link and script it gives me this error The stylesheet http://localhost:8080/src/assets/styles.css was not loaded because its MIME type, “text/html”, is not “text/css”. and for js files, it gives this error Uncaught SyntaxErr…

how to prevent force dark mode by system?

Dark/Light mode toggle settings on websites and app are tredning and there is a some system default theme mode also available like chrome dev-tools provide force dark-mode, but I want my website to be view in the way it has been built. So, How do I prevent the force dark-mode, applied by chrome? I have tried …

how to hide/show element according to url parameter

i have 4 url parameters like so and 4 divs like html and css how do i unhide elements when a url param is searched, for example if i search for the div with id=’like should be now visible what i have tried i have tried to unhide the elements on button click, and I am successful using classList.toggle(&#…

How to align Material-UI Menu items?

I use the menu and menu item of material-ui to build a select dropdown menu, but I found one thing strange: the dropdown menu always expand to the left side of the box, as the image shown below: I’ve tried to use the alignItems property inside my <MenuItem> but it didn’t work. My code is sho…

How to export Styled Components in one file?

If I have Styled Component JS files like this: LoginLogo.js FooterDiv.js … and more. How would I export them all at once in one file so I could refer to them in one file? For example App.js When I export all of the code from both LoginLogo.js and FooterDiv.js in one file, it gives me an error saying the…