<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Thank you, I'll give those a try.<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b> Petko Yotov <5ko@5ko.fr><br>
<b>Sent:</b> Wednesday, July 31, 2019 6:26 AM<br>
<b>To:</b> Monte Padget <m_padget@hotmail.com><br>
<b>Cc:</b> pmwiki-users@pmichaud.com <pmwiki-users@pmichaud.com><br>
<b>Subject:</b> Re: [pmwiki-users] Skin Creation?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size: 11pt;">
<div class="PlainText">On 29/07/2019 20:25, Monte Padget wrote:<br>
> I'm working on a Skin idea. I want to format the paragraphs, <p></p>,<br>
> separate from the background. I've discovered some paragraphs in the<br>
> final markup of the HTML that have no visible content and are still<br>
> getting the format causing some unwanted visuals.<br>
> <br>
> Ex:<br>
>  <p><br>
> <a id='trailstart'></a><br>
> </p><br>
> <br>
> Is there a way to force these paragraphs to contain a class type that<br>
> can be used?<br>
<br>
No. There may be a workaround but it is a lot of work. :-/<br>
<br>
You may be able to style paragraphs without a class name with:<br>
<br>
   p:not([class]), p[class=""]{<br>
     color: blue;<br>
   }<br>
   p:empty{ /*not sure if we have these*/<br>
     display:none;<br>
   }<br>
<br>
> To make it more complicated, there are some paragraphs that contain<br>
> content that also have nothing to distinguish them.<br>
> <br>
> Most of the paragraphs have a class type <p class='vspace'> which is <br>
> helpful.<br>
<br>
These "vertical space" paragraphs are converted from a double linebreak <br>
in the wiki code.<br>
<br>
Those that are not ".vspace" are usually immediately at the beginning, <br>
or after the end of another container (div, table, heading or other).<br>
<br>
Those at the beginning could be styled with<br>
<br>
   p:first-child {...} or more likely<br>
   p:first-child:not([class]), p:first-child[class=""] { ... }<br>
<br>
Those right after a heading could be styled with:<br>
<br>
   h2 + p:not([class]), h2 + p[class=""] {}<br>
   h3 + p:not([class]), h3 + p[class=""] {}<br>
<br>
etc. for h1 to h6, table, div or other PmWiki:BlockMarkups .<br>
<br>
Petko<br>
<br>
-- <br>
If you upgrade :  <a href="http://www.pmwiki.org/Upgrades">http://www.pmwiki.org/Upgrades</a><br>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>