0

How to used CSS with Javascript

Am confused when I see some code where they are calling tag that are not in the HTML code please can someone help me. This happens in some drop down menu code

3rd Jul 2017, 2:49 PM
Akeji Joshua
Akeji Joshua - avatar
5 Réponses
+ 2
can you show some example codes?
3rd Jul 2017, 2:50 PM
JULIAN ANTHONY
JULIAN ANTHONY - avatar
+ 1
You can apply CSS to general elements. For example,if I wanted to apply CSS to ALL divs on the page, I could do something like: div { // my css code } The same can be done for the other elements, so it isn't solely based upon ID/class. input { // do this } Best bet - read through this: https://www.sololearn.com/Course/CSS/ CSS is very useful to know and understand. Sure, you can put on your boots without socks, but things work out a lot better if you learn to use your socks with your boots. :D
3rd Jul 2017, 3:00 PM
AgentSmith
+ 1
@Akrji The drop-down menu comprises of html css and JavaScript. So you need to go though all of these 3 to understand the tags of drop-down
6th Jul 2017, 4:33 AM
JULIAN ANTHONY
JULIAN ANTHONY - avatar
0
@JULIAN ANTHONY this is one of the Example am talking about. some css tag there I don't know where they are in the code. Please i need help https://code.sololearn.com/WyclgcBLIQLV/?ref=app
3rd Jul 2017, 3:08 PM
Akeji Joshua
Akeji Joshua - avatar
0
Thanks @Netkos but what I mean is that in some code there are some css selector that are not in the code to see
3rd Jul 2017, 3:13 PM
Akeji Joshua
Akeji Joshua - avatar