How to hide a class on specific page using css


Tags: html,css

Problem :

I would like to hide the bullet point class="det_price" on the page "sale" only. Can someone tell me how to do it using css.

Here is an example of the code:

<body id="sale">
...
<li class="det_price">
</li>
...


Solution :

Add this CSS rule:

#sale .det_price {
    display: none;
}

    CSS Howto..

    Preventing jquery's show/hide from adding inline style?

    Slideshow with specific Text on each Image

    How can I ensure that no other text is on the same line as my heading tag?

    How do i get the submenus to show with a small window size?

    Homepage build - How to use CSS more efficiency?

    Fonts wont change and id height wont show

    how to get background image present in other folder with css?

    Show/hide rows based on class in HTML

    How to give different style, color to dotted border of links?

    How to shrink the menu when mouse hover on a link using jquery

    how to set the child-class height as per the parent div using css

    How to remove css : hover using jquery?

    how to change padding of last element of li in css

    How to change CSS in Magento

    how to disable drupal7 system css files?

    How do you tell a browser, “if you need to wrap, wrap here first”?

    Dynamic HTML 3 layers nested quotes - how to do?

    QuickSand Script not showing correctly in IE 7

    How to automatically validate after typing the input without using any frameworks, just simple code for my registration form?

    How do I differentiate between two different images in the same class in my CSS file

    How can I slide the sidebar out of view and make the content flexbox resize to fill the void?

    how to use css to make smartgwt look like gwtext

    Modify CSS class “two” if class “one” is not shown on screen

    How do I get a jquery function to only affect the child element of 'this'

    show hover by default using CSS

    How is margin-top and margin-bottom getting added

    How to make long Bootstrap dropdown menus vertically scrollable?

    How to give a css code for combined classes in HTML [duplicate]

    How to cycle odd and even when using ajax append?

    How to trigger CSS-Filter animation on Click (or Scrolling)