Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Class and id for css #1114

Answered by rmorshea
dnl0037 asked this question in Question
Discussion options

Hi! I'm a bit confused about how to code the class name and id for an element to style it later with CSS. How should I do it?

You must be logged in to vote

html.div({"class_name": "my-css-class", "id": "my-id"})

Replies: 1 comment

Comment options

html.div({"class_name": "my-css-class", "id": "my-id"})

You must be logged in to vote
0 replies
Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /