Why is my popup styling messed up?

纵然是瞬间 提交于 2019-12-06 13:56:13

They have applied a custom CSS for the form.If you go to their demo site and click on the Open Form under Popup with form and inspect, you will see .white-popup-block has styles which is not included in the default CSS. You need to apply those styles to the container.

.white-popup-block {
  background: #FFF;
  padding: 20px 30px;
  text-align: left;
  max-width: 650px;
  margin: 40px auto;
  position: relative;
}

Fiddle

The two js and CSS you have included regarding magnific-popup dont contain any CSS styling for the FORM so its our responsibility to style the form as we wish

  1. I have addached the fiddle link without any css for form so it show's plain

Plain Form

2, Now i have added Jquery mobile to the below JsFiddle now look how the form looks.

JqueryMobile Form

You have to style the form content.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!