New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong styles of summary and details tags #17
Comments
Error: - The arrow and the title of the `summary` tag must be on the same line. Solution: - To prevent the title from appearing on the line following the arrow, remove the `h2` and `h3` tags used inside the `summary` tag. This is a temporary solution, as it corrects the problem, but loses the styles (`font-size`) provided by the `h2` and `h3` tags. Reference: - Issue #17
Error: - The arrow and the title of the `summary` tag must be on the same line. Solution: - To prevent the title from appearing on the line following the arrow, remove the `h2` and `h3` tags used inside the `summary` tag. This is a temporary solution, as it corrects the problem, but loses the styles (`font-size`) provided by the `h2` and `h3` tags. Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Use another tags instead `h2` or `h3` to change the `font-size`. Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Use another tags instead `h2` or `h3` to change the `font-size`. Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into images using the online tool: https://readme-typing-svg.demolab.com Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into images using the online tool: https://readme-typing-svg.demolab.com Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into images using the online tool: https://readme-typing-svg.demolab.com Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into images using the online tool: https://readme-typing-svg.demolab.com Reference: - Issue #17
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into images using the online tool: https://readme-typing-svg.demolab.com Reference: - Issue #17
ReasonThe problem is when HTML tags of block type ( Read more about: HTML Block and Inline Elements
<details id="presentation" open="true">
<summary>
<span>👋_Presentation</span>
</summary>
<div>Content ...</div>
</details>
<details id="presentation" open="true">
<summary>
<div>👋_Presentation</div>
</summary>
<div>Content ...</div>
</details> |
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into images using the online tool: https://readme-typing-svg.demolab.com Reason: - When HTML block tags (`h2`, `div`) are used instead of inline tags (`span`, `b`), they take up 100% of their size, so when they do not fit, the content is moved to the next line. Reference: - Issue #17
SolutionThis could solve the problem but no styles can be applied in any way. summary > * {
display: contents;
} I have converted the text and icon to fixed-width SVG images with the online tool: https://readme-typing-svg.demolab.com. Commit with the solution: ba8980d |
Error: - As the `h2` and `h3` tags used within the `summary` tag have been removed to correct the above problem, the text size has changed. The font size of the `summary` tag should be `h2` or `h3` as appropriate. Solution: - Transform icon and text of the headings into SVG images with fixed-width using the online tool: https://readme-typing-svg.demolab.com Reason: - When HTML block tags (`h2`, `div`) are used instead of inline tags (`span`, `b`), they take up 100% of their size, so when they do not fit, the content is moved to the next line. Reference: - Issue #17
Yes there is many ways to solve that with CSS, unfortunately we can't use CSS. Those little |
Solved issue! |
Error
In the dropdown, created with the HTML tags
details
andsummary
, the arrow, icon and title must be aligned horizontally on the same line.References
The text was updated successfully, but these errors were encountered: