Comments (1)
This is actually the intended behavior. It's meant to be used on a block element containing lots of text. Generally a block like this would contain multiple <p>
elements, which have display: block
by default. Overriding display: block
on the containing element and the text elements inside results in some very odd behavior.
That said, I'm prepping an update that exposes the block styling as an option that can be customized at runtime.
from readmore.js.
Related Issues (20)
- With jquery-3.1.1 animation not working HOT 5
- Read more not work if content has div tag HOT 1
- Can't use 3.0.0-beta-1 with Parcel HOT 1
- getBoundingClientRect needs to be parsed HOT 1
- v3.0.0-1 UglifyJs Error HOT 1
- Toggle should consider content changes applied within beforeToggle hook HOT 2
- Doesn't work?
- Not working on IE11 and EDGE with jQuery 3.3.1 HOT 1
- Hide readmore if text fits HOT 1
- What is the best way to import it in webpack HOT 2
- Any way to use this on content that's injected into the dom using JavaScript? HOT 2
- 2 vulnerabilities found
- Is there away to change the read more/less button tag HOT 1
- Link is created but not clickable on Galaxy a21s
- Tailwind support for max-h-[none]
- Version 3.0 HOT 1
- Undefined id prefix HOT 1
- More link over text (help) HOT 1
- How to have readmore return to a anchor
- Readmore can not working on tabs bootstrap HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readmore.js.