> For the complete documentation index, see [llms.txt](https://nodebook.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nodebook.js.org/web/cssnotebook/cssstyle.md).

# CSSStyle

"CSSSTyle" represents a style bracket in a `.css` file.&#x20;

## Usage

### Setup

```javascript
const Nodebook = require('nodejs-notebook');

let styles = new Nodebook.CSSNotebook('styles');

let imageFooter = styles.create('class', 'image-footer');
```

### Properties

```javascript
imageFooter.type; // Type of style bracket (class, id, or element)
imageFooter.prefix; // Prefix used in the style bracket ("." for classes, "#' for IDs and "" for elements)
imageFooter.name; // Style Bracket name
imageFooter.file.name; // File Name
imageFooter.file.type; // File Type (css)
```

**newStyle(style, content)**

Creates a new Style inside of the bracket.

string `style`: The style property to add.\
string `content`: The value of the style property.

```javascript
imageFooter.newStyle('opacity', '50%');
imageFooter.newStyle('height', 'auto');
```
