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...?
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 ^^
+ 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
+ 3
Many mistakes:
+ css: use ':' instead '=', and don't use quotes
+ html: close the <ul> tag
+ 3
@Didi: What's happened? You posted three time ;P
+ 3
Not in the linked code ^^
(it works, if you correct only css)
+ 3
Try with this:
https://code.sololearn.com/WbSw62ZxdOX2/?ref=app
(fixed @Didi code ^^)
+ 3
Did you have other rules in your source file? There should be another one overiding your declaration ^^
+ 3
cancel src= stylesheetcss1
+ 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...
+ 2
Show your code if you expect some answer ^^
+ 2
Follow advice of @Didi then: it's a workaround ;)
+ 2
by what file name have u saved the file?
+ 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..
+ 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 ^^
+ 2
clear that src part
+ 2
when you have a style extern
src = "filename. css"
+ 2
delete that src portion
under the style tag write div instead of ul and I think that those ids and classes are unnecessary
+ 2
can we have a shot screen with file in browser?
+ 1
did u linked your css file to the Html file?
+ 1
@vishp sir i have made those changes