CDHtmlDialog- HTML file with select and label tag

abc abc 351 Reputation points
2021-08-24T16:08:47.81+00:00

Hi,

I am using windows 10 and VS2019.

I am loading HTML file in CDHTMLDialog.

The HTML file has select and label tags.

In IE9 and Microsoft Edge, the label text is center aligned to select/option tag.

126039-style2.png

In CDHtmlDialog, the label text is bottom aligned to select/option tag.

126132-style3.png

In CDHtmlDialog I want the alignment as in browser. Please help me.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,785 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 10,031 Reputation points Microsoft Vendor
    2021-08-25T06:27:42.033+00:00

    @abc abc

    I suggest you could try to use: vertical-align: middle;

    You could refer to the link: https://stackoverflow.com/a/46148853/11872808

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.