Search:
Type: Posts; User: Gabarieko
Search :
Search took 0.01 seconds.
Thanks, my mistake... Works fine now
Made it so that the initial values are not change.
The function should only get (and not change) the element's properties.
So here is the final result:
...
You got it correct.
However, min-width won't do because it is ,yet again, ignored when applied to a span...
About the last solution, works fine and really answers the topic.
But I can't use...
Sorry for double posting...
I found a workaround, using the properties of spans.
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function getContentSize(ele){
If you'd really like to see what I've done I can send you the source (it's about some decorations - effects via javascript)
An element
(which can be any but I'd like to make all usable (the...
Well, this works as intended and is really what I needed (thank you for which)
but there seems to be a problem -
div's width remains unchanged although content goes out.
Try it with a...
My question is, can I get the actual size of a div's content when div's width is 'auto' and the content is small enough to fit without resizing.
I know there is a way to find the div's actual...