Skip to content

Commit cd7d8a2

Browse files
fixing the styling of newly entered messages
1 parent feeb839 commit cd7d8a2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ The "editable-examples" directory contains CSS examples that are intended to be
1313
The "object-fit-basics" directory contains a simple page demonstrating typical usage of different <code>object-fit</code> and <code>object-position</code> values. [Run example live](http://mdn.github.io/css-examples/object-fit-basics/).
1414

1515
The "object-fit-gallery" directory contains a fun image gallery that uses <code>object-fit</code> to display the images more nicely, both in thumbnail and full size view. [Run the example live](http://mdn.github.io/css-examples/object-fit-gallery/).
16+
17+
The "overscroll-behavior" directory contains a simple page demonstrating typical usage of different <code>overscroll-behavior</code> values. [Run example live](http://mdn.github.io/css-examples/overscroll-behavior/).

overscroll-behavior/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ form.addEventListener('submit', e => {
2323
e.preventDefault();
2424

2525
let pElem = document.createElement('p');
26+
pElem.setAttribute('class', 'me');
2627
pElem.textContent = 'Chris: ' + input.value;
2728

2829
messages.appendChild(pElem);

0 commit comments

Comments
 (0)