Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>joingame snippetsNew to Visual Studio Code? Get it now.
joingame snippets

joingame snippets

customsnippets

|
132 installs
| (1) | Free
help speed up coding html and css with built-in code snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JoinGame-snippets README

| | | |------------------------------------------------------------------|-----------------------------------------------------|

Useful HTML and CSS snippets that will help you save a lot of time when coding.

Notice

Some snippets will warning in Vanilla CSS because some code I write base on SASS way

Useful HTML layout

These are useful snippets just show HTML layout for some most use UI when coding. If you want to know how to CSS please check the next section (Useful HTML CSS)

  • html-menu
  • html-dropdown
  • html-modal
  • html-tab
  • html-accordion
  • html-linkwrap-img

Useful HTML CSS UI Component

These are useful UI components with HTML and CSS for reference purposes

  • ui-flex-layout1
  • ui-flex-layout2
  • ui-flex-layout3
  • ui-flex-layout4
  • ui-dropdown
  • ui-custom-checkbox
  • ui-custom-radio
  • ui-search1
  • ui-search2
  • ui-button-icon
  • ui-tab1
  • ui-icon-opacity
  • ui-switch-toggle
  • ui-modal
  • ui-notification
  • ui-mega-menu
  • ui-menu-dropdown

Table of CSS snippets

Prefix Description
get-shadow1->5 5 types of beautiful box-shadow from getcssscan(get-shadow1, get-shadow2, get-shadow3, get-shadow4, get-shadow5)
shabox Css box shadow
text-shadow Css text shadow
center-block Center with display block
center-inline Center with display inline-block
flex-center Center thing with flexbox
flex-centerc Center flexbox column direction
flex-image Using for image when make layout row direction with flexbox
flex-col Flex direction column
fabase Flexbox align-items baseline
faend Flexbox align-items flex-end
fastart Flexbox align-items flex-start
facenter Flexbox align-items: center
fjend Flexbox justify-content flex-end
fbetween Flexbox spacebetween
facb Flexbox justify-content:space-between and align-item: center
fcol-between Flexbox column space between
grid-center Center with css grid
abs-center Center top and left with position absolute
abs-centerx Center left with absolute
abs-centery Center top with absolute
abs-full Position absolute full base on parent
fixed-full Position fixed full
abs-top-left Position absolute top left
abs-top-right Position absolute top right
abs-bottom-left Position absolute bottom left
abs-bottom-right Position absolute bottom left
abs-full-width Position absolute full width
abs-full-height Position absolute full height
abs-dropdown Using when you make dropdown list absolute or dropdown menu when parent have position property
posr Position relative
text-truncate Text overflow multiple lines with three dots...
text-single Text overflow single line with threed dots...`
text-style Useful css for text
text-gradient Create text gradient
tsall Transition all
flex-layout Useful when making flexbox layout column
grid-layout Another way to making layout fast with css grid
use-grid Using css grid
ohidden Overflow hidden
xhidden Overflow x hidden
yhidden Overflow y hidden
xauto Overflow x auto
yauto Overflow y auto
upper Text transform to UPPERCASE
lower Text transform to lowercase
capitalize Text transform to Capitalize
bold Make text bold
italic Make text italic
@1279 Media screen and max width 1279px
@1023 Media screen and max width 1023px
@374 Smallest screen
@375 Above Smallest screen
@767 Media screen and max width 767px
@768 Media screen and min width 768px
@1024 Media screen and min width 1024px
@1280 Media screen and min width 1280px
random-image Get random image from url of Unsplash, useful when code with src of img tag
css-reset-all make all css reset when you start coding
css-reset Some useful css reset code when you start coding css
scroll-hide Just hide scrollbar
input-spin-hide Hide input spin with input[type="number"]
input-placeholder Change input placeholder color
img-responsive Responsive image by ratio
img-cover Image cover full
grid-scroll-snap Apply css scroll snap useful when making simple slider with only css
@max-w Media query for max-width
@min-w Media query for min-width
input-style Default css for input
input-autofill-bg Change autofill input background
button-style Default css for button
boxed Sizing radius
border-style-bottom Css for border bottom
modal-style CSS for common modal
css-hide Hide element to use transition effect later with css-show
css-show Show element when using css-hide before
linear-gradient CSS background linear gradient
@supports Support rule in css for properties did not support for most browsers
@keyframes Keyframes animation
scrollbar-style Custom scrollbar style
square Create fast square
square-radius Create fasst square border-radius
rect Create fast rectangle
circle Create fast circle
wfull Make width full 100%
hfull Make height full 100%
sfull Make width and height full 100%
dnone Display none
dblock Display block
diblock display inline-block
plus-spacing Spacing combinator class
c-purple Quick color purple
c-blue Quick color blue
c-green quick color green
c-orange quick color orange
c-pink quick color pink
c-gray quick color gray
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft