View Single Post
Old 06-12-2020, 12:14 PM   #33
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
That I find rather sloppy and lazy to have styles in the XHTML code. The display:none should be done in CSS and the code would look like...

Code:
<h2 title="Copyright none"/>
I would normally agree with not using styles in the code...However, your solution doesn't work at all.

1) I don't want the title to be 'Copyright none' I want it to be 'Copyright'
2) Without assigning a class then the display:none would apply to ALL <h2>
3) If I assign a class to it, then I'm not really saving anything am I
Code:
<h2 title="Copyright" style="display:none" />
vs.
<h2 title="Copyright" class="nodisplay" />
4) Some older readers don't recognize CSS files, so having the embedded style assures that I don't have the header pop up when I really don't want it to.
5) This only applies to 1, maybe 2, headers in the entire book. Soooo I'm comfortable with having the embedded style in this case.
Turtle91 is offline   Reply With Quote