ageurtse
01-23-2010, 02:54 PM
i have a template which use a css template but in the css template it goes wrong.
it doesn't get the stylevar from the list.
how can i solve it.
here is the template and css template
ccs template
#image {
height:{vb:stylevar AJGattach_columwidth};
width:{vb:stylevar AJGattach_columwidth};
border:1px solid #bbb;
text-align: center
}
template that calls ccs template
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}AJGattach.css" />
<div id="wrapper">
<vb:if condition="$info['hasthumbnail']">
<div id="image"><a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw info.attachmentid}&d={vb:raw info.dateline}" target="attachment" rel="Lightbox" id="attachment{vb:raw info.attachmentid}"><img src="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw info.attachmentid}&stc=1&thumb=1&d={vb:raw info.thumbnail_dateline}" border="0" alt="" {vb:raw scale} /></a></div>
<vb:else />
<div id="image"><img src="{vb:stylevar imgdir_attach}/{vb:raw info.attachmentextension}.gif" alt="{vb:raw info.attachmentextension}" /> <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw info.attachmentid}&d={vb:raw info.dateline}" target="attachment">{vb:raw info.filename}</a></div>
</vb:if>
<div id="filename">{vb:raw info.filename}</div>
<div id="description">{vb:raw temp}</div>
</div>
what do i wrong, when i fill in some values in the css file it all goes right.
it doesn't get the stylevar from the list.
how can i solve it.
here is the template and css template
ccs template
#image {
height:{vb:stylevar AJGattach_columwidth};
width:{vb:stylevar AJGattach_columwidth};
border:1px solid #bbb;
text-align: center
}
template that calls ccs template
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}AJGattach.css" />
<div id="wrapper">
<vb:if condition="$info['hasthumbnail']">
<div id="image"><a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw info.attachmentid}&d={vb:raw info.dateline}" target="attachment" rel="Lightbox" id="attachment{vb:raw info.attachmentid}"><img src="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw info.attachmentid}&stc=1&thumb=1&d={vb:raw info.thumbnail_dateline}" border="0" alt="" {vb:raw scale} /></a></div>
<vb:else />
<div id="image"><img src="{vb:stylevar imgdir_attach}/{vb:raw info.attachmentextension}.gif" alt="{vb:raw info.attachmentextension}" /> <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw info.attachmentid}&d={vb:raw info.dateline}" target="attachment">{vb:raw info.filename}</a></div>
</vb:if>
<div id="filename">{vb:raw info.filename}</div>
<div id="description">{vb:raw temp}</div>
</div>
what do i wrong, when i fill in some values in the css file it all goes right.