Why my browser generated CSS works differently in Laravel? [closed] - css

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 months ago.
Improve this question
I am converting a html template into Laravel
The problem is the same CSS file works differently in Laravel version and when I check I came across that my browser is generating different CSS in Laravel version in compare to HTML version
I know it would sound weird or confusing but below is the comparison CSS screenshot
HTML version
https://prnt.sc/-BPkQvskBp61
Laravel version
https://prnt.sc/-Pa9QPjvkWrW
Why is this happing? How can I resolve it?
Is it my fault or something else.

I found the issue. The <!DOCTYPE html> is missing from the HTML.
For more detail query kindly refer to Laracast discussion mentioned below
https://laracasts.com/discuss/channels/laravel/why-my-browser-generated-css-works-differently-in-laravel

Related

Multiple CSS loading in a single page after I added a Router [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
So... My pages were all done. Everything and every CSS running smoothly... And then I added my routes. Apparently my main route "/" managed to load every css file from my routes and now Im not sure what to do?
I looked it up and found some people talking about absolute pathing my styles. Didn't really work thou... Also tried to inspect and make sure nothing was overwriting my styles... I'm using reactjs. You guys have some tip for me?

Is it possible to use a local, selfmade CSS document in Twig templates? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I try to program a website and use Symfony and Twig for that. I had a CSS document on my computer that I wanted to use, but the base template won't load the CSS, only the HTML so it looks pretty bad.
What can I do?
the easiest(most brutal) way is
put style.css in public folder and connect it in twig
<link href="/style.css" rel="stylesheet">
but you should read
https://symfony.com/doc/6.0/templates.html
to see how it should be done "in the right way "

Why there is no change on my web when I edit css? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a weird question. I dont know what is happening but I am working on my web. I am using Filezilla. Css stopped working - no change in code is displaying. I tried to delete all files from Filezilla and upload it again and it was working. After a while it happened again and few times more as I tried the same. I know that the css file I am using is the right one but I dont know why there is no change visible? When I change html it is working but no css. Thanks for your help.
(I am also using subdirectory if there might be some problem?)
As panther answered, it is probably because the old css file is loaded from cache instead of the new file. You can bypass this by pressing the ctrl key and f5.
It can be css path mismatch.You can see website console error where explain everything.

Prevent copying Site Templates [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can Prevent copying my Site templates such as CSS & Javascript code or anyone fails to copy my website.
please help me.
I tried many ways but it was inconclusive.I'm sorry that asked this question.There is no way for this problem.I realized my mistake.
Sorry to say but all client-side code can be copied.
Your best bet is to stop publishing your site online.
Obfuscate
However, there are tools that help you obfuscate code. Here's one.
http://www.javascriptobfuscator.com/
http://htmlobfuscator.com/
Minify
On the other hand, most techniques employ that minify your code.
Here's two links:
http://cssminifier.com/
http://www.willpeavy.com/minifier/

CSS? Page header/colours show up in safari but not in firefox or chrome [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have been trying to sort this issue for over a week with no joy. I think it must be a css issue but just can't fathom out what I have got wrong. I'm self-taught so would be grateful for any help.
My website is www.infantsleepresources.com
The CSS is here
Thank you
Websafe image file types are: jpg, gif, png. You should not use tif.
Change the image to one of the others, and you should find it works fine.

Resources