0

I am in trouble, css declare for body is working, but css declare for <div id="logo"></div>; not executing

code is like this... <style> body{some CSS code} #logo{ background-color:black; width:80px; height:80px; } </style> body CSS executing but not of div logo

25th Jun 2017, 2:05 PM
ASHISH PANDEY
ASHISH PANDEY - avatar
4 Respostas
0
you didn't specify div container style. as I can see the second style we declare is for element that have "logo" as id
25th Jun 2017, 2:15 PM
Keshave Jat
Keshave Jat - avatar
0
I didn't understand what u wanna say, but a same declaration I did in my previous created page worked,........ but in this case It doesn't working....
25th Jun 2017, 2:19 PM
ASHISH PANDEY
ASHISH PANDEY - avatar
0
there are some properties in CSS are default inherited like colour and background colour. so maybe they work for you and don't forget that the web browser that you are using also apply it specific styles to the elements if you didn't specified style explicitly.
25th Jun 2017, 2:22 PM
Keshave Jat
Keshave Jat - avatar
0
but in one of my page , the same style worked, but now its not, is there any new changes are made in CSS styling of browser...
25th Jun 2017, 2:26 PM
ASHISH PANDEY
ASHISH PANDEY - avatar