Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
percentage values are relative to the nearest ancestor element
viewport units are always relative to the browser window
by Valeri Tandilashvili
5 years ago
0
CSS
measurement units
Learn CSS
1
call JavaScript function using href attribute of <a>
<a href="javascript:get_next_10();">some link</a>
by Valeri Tandilashvili
5 years ago
0
JavaScript
2
benefits of serving static files on another domain
1. Using another domain name means that you'll be able to not have the cookies that are used on the main domain - which means that HTTP requests will be smaller
2. No need for a full PHP/.NET/JAVA server to serve static content!
3. Use another machine to serve the static content (Including some CDN) 
4. Use another web-server to serve the static content (something more lightweight and faster)
by Valeri Tandilashvili
5 years ago
0
HTML
website performance
1
by Valeri Tandilashvili
5 years ago
0
CSS
Learn CSS
1
npm install -g sass
Then we can compile .scss file:
sass source/stylesheets/index.scss build/stylesheets/index.css
by Valeri Tandilashvili
5 years ago
0
Sass
0
hyphens
-
and underscores
_
are identical. This means that
$font-size
and
$font_size
both refer to the same variable
by Valeri Tandilashvili
5 years ago
0
Sass
variables
0
.box {
    width: 300px * 2;
}
by Valeri Tandilashvili
5 years ago
0
Sass
operators
Sass Tutorial for Beginners
0
.box {
    width: 500px / 2;
}
by Valeri Tandilashvili
5 years ago
0
Sass
operators
Sass Tutorial for Beginners
0
.box {
    width: 100px + 200px;
}
by Valeri Tandilashvili
5 years ago
0
Sass
operators
Sass Tutorial for Beginners
0
@mixin for-phone-only {
  @media (max-width: 599px) { @content; }
}
After declaring for-phone-only mixin, we can write the following Sass code:
.header-title {  
   font-size: 15px;  
   @include for-phone-only {    
      font-size: 18px; 
   }
}
by Valeri Tandilashvili
5 years ago
0
Sass
mixins
Sass Tutorial for Beginners
0
Results: 1578