I am running into an issue where css works locally but not when I upload it to a tomcat server the css does not take effect. The code I have is simple.
CSS Works Locally then Breaks On Upload to Server
Collapse
X
-
Tags: None
-
Code:<head> <script src="jquery-2.1.4.js"></script> <script src="jquery.multiple.select.js"></script> <link href=”multiple-select.css” rel="stylesheet"/> </head> <body> <select multiple="multiple"> <option value="1">January</option> ... <option value="12">December</option> </select> <script> $("select").multipleSelect({ placeholder: "Here is the placeholder" }); </script> </body>
-
-
Posting simpler code
Code:<html> <head> <title>Hello World</title> <link rel=stylesheet type="text/css" href="Helloworld.css"> </head> <body> <h1>testing CSS</h1> </body> </html>
Code:body {background-color:lightgray} h1 {color:blue} p {color:green}
Comment
-
You are linking the stylesheet. Are you also uploading the .css file?
Also, it's proper css practice to put semi-colons after each css value:
Code:body { background-color:lighgray; } h1{ color:blue; } p{ color:green; }
Code:<link href="Helloworld.css" rel="stylesheet" type="text/css"/>
Hope that helps.Comment
Comment