0

CSS Problem solved thanks @vishp sir @samikhan @joydas sir @didi

the css code is not running in my page... Browser:chrome... Windows 10... Text editor: Notepad++... Help... What to do...?

5th Jul 2017, 1:26 PM
Anshul Garg
Anshul Garg - avatar
54 Antworten
+ 4
Almost improbable, but even try to add the <!DOCTYPE html> alone at very first line of your code: you doesn't provide any, so who knows if Chrome on Widows 10 may fall-back to very old specification of Html, ignoring the <style> declaration? And anyway, try open your file in IE/Edge, as you have windows, you necessarly have at least one of these other browsers installed ^^
5th Jul 2017, 2:57 PM
visph
visph - avatar
+ 3
Copy/paste your code here (or better in code playground) through the use of your pc browser... This is the link of the thread: https://www.sololearn.com/Discuss/512989/?ref=app
5th Jul 2017, 1:38 PM
visph
visph - avatar
+ 3
Many mistakes: + css: use ':' instead '=', and don't use quotes + html: close the <ul> tag
5th Jul 2017, 1:47 PM
visph
visph - avatar
+ 3
@Didi: What's happened? You posted three time ;P
5th Jul 2017, 1:48 PM
visph
visph - avatar
+ 3
Not in the linked code ^^ (it works, if you correct only css)
5th Jul 2017, 1:50 PM
visph
visph - avatar
+ 3
Try with this: https://code.sololearn.com/WbSw62ZxdOX2/?ref=app (fixed @Didi code ^^)
5th Jul 2017, 1:57 PM
visph
visph - avatar
+ 3
Did you have other rules in your source file? There should be another one overiding your declaration ^^
5th Jul 2017, 2:06 PM
visph
visph - avatar
+ 3
cancel src= stylesheetcss1
5th Jul 2017, 2:20 PM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 3
Try open your file in another browser, to be sure that's related to your config: without seeing your last edited code, we can't say if there's still a typo mistake or anything else somewhere...
5th Jul 2017, 2:30 PM
visph
visph - avatar
+ 2
Show your code if you expect some answer ^^
5th Jul 2017, 1:32 PM
visph
visph - avatar
+ 2
Follow advice of @Didi then: it's a workaround ;)
5th Jul 2017, 1:51 PM
visph
visph - avatar
+ 2
by what file name have u saved the file?
5th Jul 2017, 2:02 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
Listen rel = stylesheet is used when you have an external stylesheet and trying to link your html work to it...delete the rel stylesheet part and try running it again..first of all save it then..
5th Jul 2017, 2:20 PM
Joy Das
Joy Das - avatar
+ 2
You doesn't have applied the fix I've done for the @Didi code: the css rule needs to target the container div of your ul... set a class name (or iid) to it, and modify the css selector ^^
5th Jul 2017, 2:20 PM
visph
visph - avatar
+ 2
clear that src part
5th Jul 2017, 2:21 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
when you have a style extern src = "filename. css"
5th Jul 2017, 2:24 PM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 2
delete that src portion under the style tag write div instead of ul and I think that those ids and classes are unnecessary
5th Jul 2017, 2:29 PM
Joy Das
Joy Das - avatar
+ 2
can we have a shot screen with file in browser?
5th Jul 2017, 2:29 PM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 1
did u linked your css file to the Html file?
5th Jul 2017, 1:29 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
@vishp sir i have made those changes
5th Jul 2017, 1:49 PM
Anshul Garg
Anshul Garg - avatar