Help - Search - Members - Calendar
Full Version: Image before hyperlink
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
sadia
Hey!

I want images before these hyperlinks.

My code for the list is like this:

li {

list-style-type: none;
padding:2px 0 2px 25px;
background: url(../pictures/doc.gif) 0 50% no-repeat;

}


And it is linked to:

.PromptDocument {
padding-left: 0px;
padding-bottom: 5px;
color: #000000;
background-repeat: no-repeat;

}



Is there anyway to combine them. Im linking these code to this script:

{
function SpecExtDoc(ci)
{local edlst = ci->ExternalDocument;
local ret = "";
local i;
if (edlst=="")
return(ret);
ret='<H5 class="PromptDocument">Dokument</H5><ul>';
for (i in edlst)
ret = AddTab(ret,StrCat('<li><A HREF="',i->FileName,'" TARGET="_NEW" /A>',i->Name));
ret=AddTab(ret,"</ul>");
return(ret);
}
Print('QWS Tag_SpecExtDoc loaded');
}

pandy
How do you mean combine them? One style rule is for a list item, the other for a H5. What is it you want to do?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.