Hi, Can anybody please share an example or any lin...
# javascript
t
Hi, Can anybody please share an example or any link for creating a css style locally within a div and writing css into a separate file and using it for styling any html element?
t
Do you have simple js example of described scheme?
t
style="max-height:70px". I need to understand two ways to set it: 1. Locally directly on dom element like this:
<img style="max-height:70px"/>
2. Putting css in a separate file and using it on img
I got it working by linking css file this way:
Copy code
head {
    title("Welcome to Seller Service")
    link(rel = "stylesheet", href = "<https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.css>") { }
    link(rel = "stylesheet", href = "static/styles/index.css"){}
}But still local css am not able to understand.