All of a sudden if you put your css after the W3 one it might work because of the css priority. IT MIGHT BE and not necessarily BE.
"priority shall be given to those declared last"
Priority of Styles (cascade)
In some cases you can specify different styles for the same page by combining a "file. css" referenced in link or with the insertion of a style tag, and also with inline style attributes. If these different specifications conflict with each other, the browser has to decide which of the values to use. This choice is made based on a priority order (Cascading style Sheets - "cascading style sheets").
This order of priority follows::
- default
- browser
- External CSS (file ". css")
- Internal CSS (within tag )
- Inline styles (inside the HTML element )
So, an inline style has the highest priority within the "cascade", which means that it will override over any style declared within the tag in an external file ". css", and in a browser (default value).
SOURCE
Ideally you would incorporate into your style sheet only the parts of css you want to use in your form as well said our friend Alan in the comment and that will bring you only benefits.
When a person enters the site for the first time, the first few seconds are critical to capture the attention and convince them to stay a little longer or to return in the future. If your site takes too long to load, most people give up and leave it, even before you have had the opportunity to show them the value of your service. "A one-second delay can result in 7% fewer conversions, 11% fewer page views, or even a 16 percent decrease in customer satisfaction" BRYAN EISENBERG.
Clean code means faster loading and happy visitors.
It is important to keep load time down by writing semantically appropriate code, using performance optimization best practices and routinely cleaning CSS, HTML and images.
Generally, the loading time of the site will increase with its evolution and this, in a way, is something expected. That’s why it’s important to make this HTML, CSS, and image cleaning routine a natural part of the workflow to ensure a positive user experience.
This link is the entire W3 css library. when you put it in the head tag it is normal to change. One thing you can do is create a form! page without needing html, body, head.. Just form. And yes on the body page pass the CSS of W3
– Bsalvo
I did, but go on altering things like the menu. I wanted to put this css only on tag
form
, How do I do it? @Brunocastro– Junior Vilas Boas
Why not create your own CSS and style the
form
as you wish?– Woss
how to show your code? And the W3 page that uses this css
– user60252
@Andersoncarloswoss because I found the beautiful CSS of W3 Schools, and wanted to do something simple because it’s an example page.
– Junior Vilas Boas
Just open the link and copy the parts of css you want to use in your form. For example: button formatting, input, select, textarea, etc.
– alan
there is no way to put this css only in the form tag. It is the complete W3 css. If you choose to use this link, you will have to use all styles applied by W3. Now, one way to maintain your own style using W3’s css is to add the ! Important within your own style. example: . element1{background-color: #f0f ! Mportant}
– Bsalvo
All of a sudden if you put your css after the W3 one it might work because of the css priority. CAN BE AND WON’T BE.
– user60252
@Leocaracciolo worked man! Thank you
– Junior Vilas Boas
It’ll be an answer then
– user60252
See the answer I published and learn a little about css priority and read this post https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079
– user60252