I am begginer to asp.net mvc. My mvc application have 3 Tables.if dropdown selected value is 1 then "tblsolid" will be visible & "tblgas" will be hide & If selected value is 2 then "tblgas will be show & "tblsolid" will be hide." tblsolid" have  3 rows &"tblGas" 13 rows.In case of when "tblgas" will show then there is no problem."tblcomm" is show immediately below "tblgas".BUT in case of whenever "tblsolid" will show then there is space between "tblsolid" & "tblcomm" because "tblsolid" contain minimum rows than "tblgas"..What is solution to this problem ??? Below are the my three table structure.

 
                           
                               
                               
                           
                           
                               
                               
                           
                           
                               
                               
                           
                            

                       
                                    Carbon
                               
                                    @Html.TextBox("TbC", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC)
                               
                                    Hydrogen:
                               
                                    @Html.TextBox("TbH", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbH)
                               
                                    Nitrogen :
                               
                                    @Html.TextBox("TbN", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbN)
                               


                       
                           
                               
                               
                           

                           
                               
                               
                           

                           
                               
                               
                           


                           
                               
                               
                           
                           
                               
                               
                           


                           
                               
                               
                           

                           
                               
                               
                           


                           
                               
                               
                           


                           
                               
                               
                           

                           
                               
                               
                           

                           
                               
                               
                           

                           
                               
                               
                           

                           
                               
                               

                     
                       
                                    CH4
                               
                                    @Html.TextBox("TbCH4", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbCH4)
                               
                                    C2H4:
                               
                                    @Html.TextBox("TbC2H4", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC2H4)
                               
                                    C2H6 :
                               
                                    @Html.TextBox("TbC2H6", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC2H6)
                               
                                    C3H6 :
                               
                                    @Html.TextBox("TbC3H6", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC3H6)
                               
                                    C3H8 :
                               
                                    @Html.TextBox("TbC3H8", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC3H8)
                               
                                    C4H10 :
                               
                                    @Html.TextBox("TbC4H10", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC4H10)
                               
                                    C5H12 :
                               
                                    @Html.TextBox("TbC5H12", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC5H12)
                               
                                    C6H6:
                               
                                    @Html.TextBox("TbC6H6", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbC6H6)
                               
                                    H2
                               
                                    @Html.TextBox("TbH2", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbH2)
                               
                                    CO:
                               
                                    @Html.TextBox("TbCO", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbCO)
                               
                                    H2S :
                               
                                    @Html.TextBox("TbH2S", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbH2S)
                               
                                    H2OGAS :
                               
                                    @Html.TextBox("TbH2OGAS", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbH2OGAS)
                               
                                    SO2:
                               
                                    @Html.TextBox("TbSO2", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbSO2)
                               

                       
                           
                               
                               
                           
                       
                                    Excess Air:
                               
                                    @Html.TextBox("TbExcessAir", 0, new { style = "width:50px" })
                                    @Html.ValidationMessageFor(m => m.TbExcessAir)