Reputation: 10068
On my website, I have basically something like this:
The problem is, that while in this fiddle everything works as intended, on my website it does not work.
I know that you guys don't like direct links to websites and I know that this is a website in foreign language, but I don't know what else can I do!
Here is the link to the page: https://scyk.pl/Forums/Thread/Informatyka/5#post41.
The problem is with that gray box (the <code>
block), as you can see, there is a lot of text in it, it has the overflow
property set to auto
, and it has display
property set to block
. I even tried using height
and width
properties, but only result I get is the overflow-y
scrollbar, and I need both of them (expecially overflow-x
one).
Upvotes: 0
Views: 68
Reputation: 324640
It works on the Fiddle because the "text" is all one word and can't be broken (without word-break:break-all
), wheras in your live example there are words to be wrapped.
Try adding white-space:nowrap;
Upvotes: 6