Hi,
I cannot figure out how to put a <div>, just after a <span> and prevent it to go below the span.
Both are in a <li> element.
This is for a Wayfinder parameter:
$hereTpl = '@CODE:<li id="docAffiche"><span></span><div class="chapeau lettrine rouge">[+wf.linktext+]</div></li>';
The purpose of the <span> is to print a red arrow on the left of the text which is in the <div>.
My CSS is as follows :
#docAffiche div {white-space:nowrap;}
#docAffiche span {
display:block;
left:0px;
top:0;
height:0px;
border-left:8px solid #ff0000;
border-top:8px solid #fff;
border-bottom:8px solid #fff;
font-size:1px;
line-height:0;
margin:0;
margin-top:6px;
margin-right:10px;
}
I observed that putting the display property of the span to "run-in" instead of "block" solves the problem but creates another one : the span becomes bigger.
With two <div> I would use twice style="float:left", but with a span this does not work.
Any idea ?