toplisek
05-23-2007, 09:06 AM
ul {list-style-type:none;}
li {list-style-type:none;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
background: transparent url(myimage.gif) no-repeat 0px 1px;
padding-bottom:2px;
padding-left:20px;
line-height:11px;
}
<ul class="link"><li><a href="mailto:mymail@website.com" >mymail@website.com</a></ul>
1. question:
Is there some solution that there will be not <li class="link">
like
<ul class="link"><li>
But I have another li defined in css script
2. question
If I have in code above class with css script, it will give me space at the top and bottom.
How to avoid this space?
Code is like:
<p>
Text1<br />
text2<br />
text3
<ul class="link"><li class="link"><a href="mailto:mail1@mail.com">jmail1@mail.com</a></li></ul>
</p>
It seems problem because there is within tage <p> but I need to have as this is for space between text paragraph
It gives me an error when I validated:
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
li {list-style-type:none;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
background: transparent url(myimage.gif) no-repeat 0px 1px;
padding-bottom:2px;
padding-left:20px;
line-height:11px;
}
<ul class="link"><li><a href="mailto:mymail@website.com" >mymail@website.com</a></ul>
1. question:
Is there some solution that there will be not <li class="link">
like
<ul class="link"><li>
But I have another li defined in css script
2. question
If I have in code above class with css script, it will give me space at the top and bottom.
How to avoid this space?
Code is like:
<p>
Text1<br />
text2<br />
text3
<ul class="link"><li class="link"><a href="mailto:mail1@mail.com">jmail1@mail.com</a></li></ul>
</p>
It seems problem because there is within tage <p> but I need to have as this is for space between text paragraph
It gives me an error when I validated:
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").