## ICSSMediaRule interface

The CSSMediaRule interface represents a @media rule in a CSS style sheet. A @media rule can be used to delimit style rules for specific media types.

```java
public interface ICSSMediaRule : ICSSRule
```

## Properties

| Name | Description |
| --- | --- |
| [getCSSRules](../../com.aspose.html.dom.css/icssmediarule/cssrules/) The cssRules property of the CSSGroupingRule interface returns a [`CSSRuleList`](../icssrulelist/) containing a collection of [`CSSRule`](../icssrule/) objects. |
| [getMedia](../../com.aspose.html.dom.css/icssmediarule/media/) The read-only media property of the `CSSMediaRule` interface MediaList represents the intended destination medium for style information. |

## Methods

| Name | Description |
| --- | --- |
| [deleteRule](../../com.aspose.html.dom.css/icssmediarule/deleterule/)(long) | The deleteRule() method of the CSSGroupingRule interface removes a CSS rule from a list of child CSS rules. |
| [insertRule](../../com.aspose.html.dom.css/icssmediarule/insertrule/)(String, long) | The insertRule() method of the CSSGroupingRule interface adds a new CSS rule to a list of CSS rules. |

### See Also

* interface [ICSSRule](../icssrule/)
* package [com.aspose.html.dom.css](../../com.aspose.html.dom.css/)
* package [Aspose.HTML](../../)
