@font-face multiple font weights
@font-face {
font-family: "myFont";
src: url("myFont-reg.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "myFont";
src: url("myFont-italic.ttf") format("truetype");
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "myFont";
src: url("myFont-bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
Also in CSS:
- adding shadow to a div
- flexbox
- ramteja
- css align center
- what does flex do
- 1:1 image in css
- put an border around an text in css
- how to change only bullet color in css
- how to include a css file in jsp
- carousel inner item populate with for loop puting active class on all carousel item
- responsive font sizing css
- @font-face multiple font weights
- how to link your css file to html
- css two attribute selector
- vertical align text inside div
- css center div
- how to create two vertical div in html
- css disable mouse events
- css form textarea resize
- css js show or hide on click
- scroll snap css
- css align text
- how to stop an image repeating in css
- css center