Nella pagina di sotto utilizzo due Fieldset.
Il primo è messo dentro una tabella per evitare che si espanda in larghezza al 100%, come fa invece il secondo.
La domanda è:
1) è possibile eliminare la tabella e usare uno stile appropriato?
2) con IE8 non funziona il padding-top (lo ignora proprio). Cosa sbaglio?
Ciao![]()
codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> fieldset { padding:15px; } </style> </head> <body> <div> <table> <tr> <td> <fieldset> <legend>Legend</legend> <input id="Text1" type="text" /><input id="Button1" type="button" value="button" /> <input id="Text2" type="text" /><input id="Button2" type="button" value="button" /> <input id="Text3" type="text" /><input id="Button3" type="button" value="button" /> <input id="Text4" type="text" /><input id="Button4" type="button" value="button" /> <input id="Text5" type="text" /><input id="Button5" type="button" value="button" /> </fieldset> </td> </tr> </table> </div> <div> <fieldset> <legend>Legend</legend> <input id="Text6" type="text" /><input id="Button6" type="button" value="button" /> <input id="Text7" type="text" /><input id="Button7" type="button" value="button" /> <input id="Text8" type="text" /><input id="Button8" type="button" value="button" /> <input id="Text9" type="text" /><input id="Button9" type="button" value="button" /> <input id="Text10" type="text" /><input id="Button10" type="button" value="button" /> </fieldset> </div> </body> </html>

Rispondi quotando