Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Tuesday at 01:29 PM
Zanime Posted November 28, 2017 Share Posted November 28, 2017 SOLVED Seems you cannot use the HTML Paragraph tag (inline). So in short I wanted to create a SPOILER tag that could be used for single words or sentences inline with the current text. However, the button doesn't do what I want it to (change the color of the font with a background color of the same). HTML CODE <p class="HFSpoiler"> {content} </p> CSS /*Hide Spoiler Tag */ .hfSpoiler { color: rgb(255,255,255); background-color: #fff; padding: 1px 1px 1px 1px; } BUTTON SETTING Now pressing the button after HIGHLIGHTING your text and pressing it just puts the text in a: <p>Testing</p> Ignoring the CLASS that was assigned to that button option style. Any thoughts? Link to comment Share on other sites More sharing options...
opentype Posted November 28, 2017 Share Posted November 28, 2017 It might be because you are selecting an “Inline” replacement, yet your code wants to use a paragraph, which is a “Block” element. For an inline change, you would want to use something like <span class="HFSpoiler"> {content} </span> Link to comment Share on other sites More sharing options...
Zanime Posted November 28, 2017 Author Share Posted November 28, 2017 9 minutes ago, opentype said: It might be because you are selecting an “Inline” replacement, yet your code wants to use a paragraph, which is a “Block” element. For an inline change, you would want to use something like <span class="HFSpoiler"> {content} </span> Yes, I figured that out and fixed it already. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.