Nodebook
  • Introduction
  • Methods
  • Default Classes
    • Nodebook
  • JS
    • JSONotebook
    • JSNotebook
    • TSNotebook
  • Java
    • JavaNotebook
  • C/C++
    • CPPNotebook
    • CNotebook
    • HeaderNotebook
  • Text
    • TXTNotebook
    • MDNotebook
    • PlainNotebook
  • Web
    • HTMLNotebook
    • CSSNotebook
      • CSSStyle
  • Other
    • YMLNotebook
    • BashNotebook
  • Python
    • PYNotebook
Powered by GitBook
On this page
  • Usage
  • Setup
  • Properties

Was this helpful?

  1. Web
  2. CSSNotebook

CSSStyle

"CSSSTyle" represents a style bracket in a .css file.

Usage

Setup

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

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

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

Properties

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.

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

Last updated 3 years ago

Was this helpful?