tzapu/WiFiManager

Advanced Example: Impossible to align radio buttons correctly?

Open

#1158 aperta il 5 dic 2020

Vedi su GitHub
 (18 commenti) (0 reazioni) (0 assegnatari)C++ (1854 fork)batch import
:spider_web: HTTPGood First Issueenhancement

Metriche repository

Star
 (6023 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

In the advanced example radio buttons are used with HTML injection. It seems to be impossible to get the labels and the radioboxes well alligned? I've tried in-line css but to no avail, the alignement of the radiobuttons stays central, even with or without the label. Anybody know where to look for in order to get this working properly? Where is the CSS used in this project?

WiFiManager wm;
const char* program_selection_str = "<p>Please select progam mode:</p>"
  "<input style='display: inline-block;' type='radio' id='choice1' name='program_selection' value='1'>"
  "<label for='choice1'>Choice1</label><br>"
  "<input style='display: inline-block;' type='radio' id='choice2' name='program_selection' value='2'>"
  "<label for='choice2'>Choice2</label><br>";
WiFiManagerParameter custom_field(program_selection_str);
wm.addParameter(&custom_field);

If i find more time i will investigate further, but i hope maybe somebody has seen this issue before?

thanks,

Guida contributor