RosettaGit icon indicating copy to clipboard operation
RosettaGit copied to clipboard

CSS isn't a programming language but..

Open LukyVj opened this issue 3 years ago • 5 comments

You could easily make an "Hello world" in CSS using pseudo-element and a pseudo class ( :before/:after ) using the "content" property. Like so:


.element:after { 
  content: "Hello world"
}

LukyVj avatar Jan 20 '22 08:01 LukyVj

Using body as the selector would make it work without needing to add HTML.

body::after {
  content: 'Hello World!'
}

RemasteredArch avatar Jan 20 '22 15:01 RemasteredArch

Indeed!

LukyVj avatar Jan 20 '22 15:01 LukyVj

i want to contribute here please assign me

AnshuWorld avatar Oct 14 '23 03:10 AnshuWorld

@AnshuWorld Feel free to open a Pull Request. I'd happily review it =)

ad-si avatar Oct 14 '23 08:10 ad-si