html - Can I 'style' and use a label as a 'normal' element -


I find a way to input and label elements as the Apprian Viewer.

Use the center vertical of your elements as if it was a div, that is, it is giving display: table and it's creating a div inside it so I have Is:

  & lt; Div & gt; & Lt; Input id = 'myid' & gt; & Lt; Label = 'myid' style = 'display table' & gt; & Lt; Div style = 'display: table-cell' & gt; & Lt; Img ....... & gt; Liveexportbackbell & lt; / Div & gt; & Lt; / Labels & gt; & Lt; / Div & gt;  

OK, it works fine.

My question is: Am I doing something 'forbiden'? Can I use label tags as a container?

I know that it can not be conservative .. but it works for me ...

Your code is invalid.

The problem is that the elements are only used

where expected.

However,

of elements, but there is no descendant unless this element is there, and there is no offspring.

Anyway, this will probably work, because the end tag of label elements can not be omitted (as opposed to elements):

Neither tag is possible

However, I'm not sure of the benefits of having a table element with a cell. Instead, consider using the following:

  & lt; Div & gt; & Lt; Input id = 'myid' & gt; & Lt; Label = 'myid' style = 'display: block' & gt; & Lt; Img ....... & gt; Thetextforthelabel & lt; / Labels & gt; & Lt; / Div & gt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -