The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Question on hierarchy

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #246769

    I thought that the highest priority in the CSS cascade was the CSS that was added in a “style=” in an HTML element.

    I set up this tag:

    <ul style=”list-style: none;” >

    but I kept seeing bullets on my “li” displays. Then I discovered in a style.css file:

    .xxxxxx ul > li { list-style: bullet; }

    First, I thought that I could override the style.css definition with my “style=”. Secondly, how can I override the style.css definition since I can’t change that file?


    The assumption about inline style overriding CSS would be correct if it were the same element. Inherited style does not override CSS on the child though. If you can’t change the stylesheet, you’d probably have to give all li the inline style, or use JavaScript if that is an option.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design’ is closed to new topics and replies.