+ 1

<div style="background-color:red"; color="white"; padding="20px";> ABCDEFGH</div>. WHAT IS WRONG IN THIS CODE

24th Oct 2018, 11:43 AM
Aditya Raj
Aditya Raj - avatar
3 Respuestas
+ 1
You closed the style string prematurely, color and padding value were assigned using "=" instead of "=". <div style="background-color:red;color:white;padding:20px;"> ABCDEFGH</div>
24th Oct 2018, 12:06 PM
Ipang
+ 1
thanks for your help.
24th Oct 2018, 12:46 PM
Aditya Raj
Aditya Raj - avatar
+ 1
You're welcome : )
24th Oct 2018, 1:29 PM
Ipang