Hey guys, I'm trying to create a code box for my web design project.
So here are my thoughts on it. I want a code box which displays code (Obviously). However I want it to have a height restriction. Easy enough, set the height in the CSS style to whatever. However, I don't want it to be that height if theres only one line of code.
Example: One line of code.
Multiple lines: On my browser, the code box's height gets restricted. (Not sure bout you guys)
lots
of
lines
when
will
this
stop
I
dunno
but
I'm
hoping
soon
well
whatever
...
...
...
...
...
...
...
...
...
...
This is what I'm hoping to achieve. Which gives it a sorta liquid but static height. Any help on this would be gladly appreciated.
Now onto my second question, is there any possible way to copy text using javascript or whatever? Even PHP? (Preferably PHP). Anyways thanks for any bit of help guys.