Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving text in from left margin ...

Status
Not open for further replies.

cxs00u

Programmer
Mar 14, 2003
9
GB
I am currently using the template

<xsl:template match=&quot;SUBQUESTION&quot;>
<SPAN CLASS=&quot;indent&quot;>
<xsl:value-of select=&quot;self::node()&quot;/>
</SPAN>
</xsl:template>


Where Indent is :

.indent
{
text-align: left;
margin-left: 32px;
}

In the C.S.S . This gives the effect of an inch indent from the left margin . However if the text inbetween the SUBQUESTION streches over two lines the second line is not effected by the indent command . E.G

this is where the question should start blah blah blah blah blah blah blah blah blah

How can I get the second line to also move in an inch from the left margin ??

Thanks for your help

Craig



 
i think <span> elements only obey margins and padding etc. when you have a height and width assigned to them. You might get better help on this in the HTML/CSS forum, click here: forum215

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top