Answers for "css style for the first element only"

CSS
6

css first element

p:first-child {
  font-size: 1.5em;
}
Posted by: Guest on March-11-2020
3

css style for the first element only

p:first-of-type {
  font-size: 1.25em;
}
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language