Hi!
As far as I know the only tags that are permitted to have a <ul>
element as a child are:
applet | blockquote | body | button | center | dd | del | div |
fieldset | form | iframe | ins | li | map | noframes | noscript |
object | td | th

<p> only allows other inline-elements as children such as:
a | abbr | acronym | applet | b | basefont | bdo | big | br | button |
cite | code | del | dfn | em | font | i | img | ins | input | iframe |
kbd | label | map | object | q | samp | script | select | small | span
| strong | sub | sup | textarea | tt | var

You will have to move your list out of the paragraph in order to get
valid code and to be able to style it with css.
Hope that fixes your problem..


On 30 sep, 02:29, Chuck <[EMAIL PROTECTED]> wrote:
> hi guys,
>
> cant figure this one out so i am hoping to reach out to the broader
> world
>
> first, i have a CSS which contains the following (NOTE: I am not
> exactly an expert of CSS, let alone average at it either)
>
> #right p.rightTxt1{
>         font:normal 13px/18px Arial, Helvetica, sans-serif;
>         color:#62625C;
>         background-color:inherit;
>         padding:0 38px 10px 38px;
>
> }
>
> #right p.rightTxt1 span{
>         font:bold 13px/18px Arial, Helvetica, sans-serif;
>         color:#5F860B;
>         background-color:inherit;
>
> }
>
> now, when i insert <UL><LI> into the HTML, the whole thing goes
> mental. i have tried the following but it does not seem to work
>
> #right p.rightTxt1 ul{
>         font:bold 13px/18px Arial, Helvetica, sans-serif;
>         color:#5F860B;
>         background-color:inherit;}
>
> #right p.rightTxt1 li{
>         font:bold 13px/18px Arial, Helvetica, sans-serif;
>         color:#5F860B;
>         background-color:inherit;}
>
> #right p.rightTxt1 ul li{
>         font:bold 13px/18px Arial, Helvetica, sans-serif;
>         color:#5F860B;
>         background-color:inherit;
>
> }
>
> when inserting <UL><LI>, it seems that formatting is completely lost
>
> [EMAIL PROTECTED]&(*^*&^
>
> cheers

--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to