6
I’m doubtful how to align a text within span as an example:
This is my HTML
I need to leave it like this, left text aligned on the right and left text aligned on the right, as an example:
HTML:
<div className="viewInstrument-output">
<div className="outputs">
<div>
<span className="viewInstrument-output-title viewInstrument-font">PROG. DEGELOS</span>
</div>
<div>
<label className="viewInstrument-output-status-activated viewInstrument-output-status">Ativo</label>
</div>
</div>
<div className="outputs">
<div>
<span className="viewInstrument-output-title viewInstrument-font">SAÍDAS</span>
</div>
<div>
<label className="viewInstrument-output-status-activated viewInstrument-output-status">Refrigeração</label>
<label className="viewInstrument-output-status-activated viewInstrument-output-status">Defrost</label>
<label className="viewInstrument-output-status-deactivated viewInstrument-output-status">Fans</label>
</div>
</div>
<div className="outputs">
<div>
<span className="viewInstrument-output-title viewInstrument-font">TEMP. DE CONTROLE</span>
</div>
<div>
<label>-5.0<sup>°c</sup></label>
</div>
</div>
<div className="outputs">
<div>
<span className="viewInstrument-output-title viewInstrument-font">DIFERENCIAL</span>
</div>
<div>
<label>3.0<sup>°c</sup></label>
</div>
</div>
</div>
Can you post the CSS code that formats this excerpt as well? And what would be the attribute
className
elements in HTML? This attribute does not exist by default in HTML. It would not just beclass
?– Woss
It’s because I’m using reactJS.
– Marquin Ferreira