Hello guys!
I have no idea of html code,
I can only change edit values but i cannot enrich html code.
1)So guys do you know how i can edit the below code adding an icon in front of EACH list titles.
2)Also i there any way i can add a background gif inside the below block.
CODE:
<tr>
<td class="thead">
<div class="float_left"><strong><a href="mydownloads.php?action=browse_cat&cid=26">*Skies Download List*</a></strong></div>
</td>
<tr>
<td class="trow1" style="url(images/z4.jpg) top left;">
<p><li class="last"><a href="http://www.D.com/mydownloads.php?action=browse_cat&cid=20"><span> Classic Skies</span></a></li></p>
<p><li class="last"><a href="http://www.D.com/mydownloads.php?action=browse_cat&cid=21"><span> ZombieMod Skies</span></a></li></p>
<p><li class="last"><a href="http://www.D.com/mydownloads.php?action=browse_cat&cid=22"><span> GhostMod Skies</span></a></li></p>
</td>
</tr>
THANKS IN ADVANCE.
The simplest is to just switch the list bullet to an image of your choice. You need a line of CSS though.
You may want to give the list an id in case you have other lists that shouldn't use the same icon. I called it foo. This way only this list is affected.
Also note that LI elements must be directly inside a UL or OL element, not a P.
SO THE CODE IN MY CASE MUST BE LIKE THIS FOR MY LIST.
CODE:
<table border="0" cellspacing="0" cellpadding="5" class="tborder">
<tr>
<style>
#foo { list-style-image: url("https://htmlhelp.com/icon/new.gif") }
</style>
<td class="thead">
<div class="float_left"><strong><a href="mydownloads.php?action=browse_cat&cid=26">*Skies Download List*</a></strong></div>
</td>
<tr>
<td class="trow1" style="url(images/z4.jpg) top left;">
<ul id="foo">
<p><li class="last"><a href="http://www.D.com/mydownloads.php?action=browse_cat&cid=20"><span> Classic Skies</span></a></li></p>
<p><li class="last"><a href="http://www.D.com/mydownloads.php?action=browse_cat&cid=21"><span> ZombieMod Skies</span></a></li></p>
<p><li class="last"><a href="http://www.D.com/mydownloads.php?action=browse_cat&cid=22"><span> GhostMod Skies</span></a></li></p>
</td>
</tr>
THANKS A LOT!
No. You must take some time to learn basic HTML.
The style block goes in HEAD. The Ps around your LIs can't be there and aren't needed. Remove them.
FYI nothing can go between the elements that make up a table or a list. Everything must be in the TDs (or THs) and LIs respectively.
That is doesn't work like you want in some browser or other. Or you later make some changes and it all breaks. Just remove the Ps. The only difference you will see is that the list items will be closer together since browsers add top or bottom margin to P. To you want want that look you just add a little top or bottom margin to LI instead.
The UL also needs a closing tag. You have left that out.
That you bother to use a list for the links makes me think that you case about doing the "right way". So it's a little confusing that you don't care if the HTML is valid or not. Or did you just find the list somewhere and changed the links?
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)