Pinku

Pinku

  • 1.4k
  • 308
  • 46.7k

Html panel is not responsive in .net

Mar 31 2019 12:30 AM
I have created a panel in Asp.net with html and css.but this is not responsive.If resolution change its broken.How to fix it
  1. <asp:PlaceHolder ID="phFbLearnMore" runat="server" Visible="false" >  
  2. <div class="divFBlearnMore col-lg-12 " id="divFBlearnMoreId">  
  3. <span class="fbTextContent col-lg-6 ">Increase exposure to your job postings by sending them to the Facebook Jobs Marketplace.</span>  
  4. <button id="FbButtonLink" class="fbButtonContent col-lg-3 ">Opt In</button>  
  5. <button id="closeButton"class="CloseButtonContent col-lg-3">X</button>  
  6. </div>  
  7. </asp:PlaceHolder>  
css i have used below
  1. .divFBlearnMore {  
  2. positionabsolute;  
  3. padding-bottom7px;  
  4. colorwhite;  
  5. z-index1;  
  6. width100%;  
  7. height35px;  
  8. floatright;  
  9. border1px solid #0f9fd8;  
  10. background-color#0f9fd8;  
  11. font-size14px;  
  12. margin-top-84px;  
  13. margin-left-190px;  
  14. padding-top18px;  
  15. }  
  16. .fbTextContent {  
  17. margin-left55px;  
  18. }  
  19. .fbButtonContent {  
  20. cursorpointer;  
  21. border1px solid #FFFFFF;  
  22. background-color#0f9fd8;  
  23. color#FFFFFF;  
  24. border-radius: 3px;  
  25. margin-left770px;  
  26. margin-bottom50%;  
  27. padding-left37px;  
  28. padding-right37px;  
  29. padding-top6px;  
  30. padding-bottom5px;  
  31. }  
  32. .CloseButtonContent {  
  33. cursorpointer;  
  34. color#FFFFFF;  
  35. background-color#0f9fd8;  
  36. border1px solid #0f9fd8;  
  37. floatright;  
  38. margin-right40px;  
  39. padding-top7px;  
  40. }  

Answers (1)