0

Can we insert javascript coding into an inline element with display:block ?

31st Dec 2017, 7:23 PM
Emmanouil Stafylarakis
Emmanouil Stafylarakis - avatar
4 Antworten
+ 1
Why didn't you try before asking? Anyway you can insert any block element inside another one. Look at this code: https://code.sololearn.com/WMQ32i1Yyr60/?ref=app The difference between inline and block is that the former displays two siblings on the same line, whereas the latter displays them on two different lines.
31st Dec 2017, 7:54 PM
Luca Marseglia
Luca Marseglia - avatar
0
What do you mean? You can insert the script tags anywhere.
31st Dec 2017, 7:27 PM
Luca Marseglia
Luca Marseglia - avatar
0
Because, the theory says that within an inline element in CSS with display property as "block" we cannot instert other block element and I am wondering if a <script></script> coding is considered as a block level element.
31st Dec 2017, 7:50 PM
Emmanouil Stafylarakis
Emmanouil Stafylarakis - avatar
0
Asking is another option. Thank you very much!
31st Dec 2017, 7:59 PM
Emmanouil Stafylarakis
Emmanouil Stafylarakis - avatar