+ 7

Why this code isn't behaving the same in PC as it is working in code Playground?

https://code.sololearn.com/WXQliY1UjeEv/?ref=app

19th Jun 2017, 7:31 PM
Hassan Ashari
Hassan Ashari - avatar
6 Respostas
+ 3
Well these issues you're seeing are probably browser independent so lets start by following some standards and cleaning up your css. First there is a bunch of unneeded redundancies that you can remove from the #head{} section of your css file. Next the all your color names should be all lowercase. Some browsers are fine with all lowercase, uppercase, camelcase etc but lowercase should work 100% of the time. (or at least close to it) Then we can address the issue of the shadow which means you probably need to add some browser prefixes to your shadow setting to work with other browsers. #main, #head { text-align: center; font-size: 26px; background-color: darkgreen; color: white; padding: 30px; margin-top: 20px; -webkit-box-shadow: 8px 8px 8px red; -moz-box-shadow: 8px 8px 8px red; -ms-box-shadow: 8px 8px 8px red; -o-box-shadow: 8px 8px 8px red; box-shadow: 8px 8px 8px red; border-radius: 50px; } #head { font-size: 30px; font-weight: bold; }
20th Jun 2017, 12:45 AM
ChaoticDawg
ChaoticDawg - avatar
+ 8
Thanks @ChaoticDawg I Will Try It And Then I'll Inform U
20th Jun 2017, 12:49 AM
Hassan Ashari
Hassan Ashari - avatar
+ 8
Really Thankful To You @ChaoticDawg That You Helped Me !
20th Jun 2017, 8:24 AM
Hassan Ashari
Hassan Ashari - avatar
+ 7
And Shadow is also not working
20th Jun 2017, 12:18 AM
Hassan Ashari
Hassan Ashari - avatar
+ 6
there are two columns one is head and second is main and in code playground it is showing the table elements in a sequence like in head for example it is written Table of 6 and in the second column mean main column other table elements but in my PC all contents are being shown only in head column and nothing is coming in main column.
20th Jun 2017, 12:18 AM
Hassan Ashari
Hassan Ashari - avatar
+ 1
Just tested by copying to my computer and it ran fine. What is it doing that isn't the same for you? Make sure that your project structure is correct on your PC. index.html // File at root css // folder at root css/styles.css // File in the css folder above
19th Jun 2017, 7:51 PM
ChaoticDawg
ChaoticDawg - avatar