How do I prevent a line break occurring before an unordered list?

后端 未结 5 1456
迷失自我
迷失自我 2021-01-17 12:48

My web-app framework renders form errors for each field in an unordered list

    immediately following the invalid field. My problem is that I haven\'t b
5条回答
  •  天涯浪人
    2021-01-17 13:39

    If you can't change the html then your problem is that the ul has no element around it that you can style.

    If you use javascript, if you can know when an error happens, then you can add a

    or around the

      and then style that so that it will be inline.

      This link shows, about 1/2 way down, using the

      tag for this purpose.

      http://www.alistapart.com/articles/taminglists/

      If you are just trying to do this in css I believe you will be out of luck. You may ask if they can put a enclosing tag around the error list so you are able to style it.

提交回复
热议问题