pbd22 wrote:
I have been wrestling with getting a span (or a few)
to live inside a few divs. I want to put padding around
the span but it seems to move independent of the divs
even though there is no float.
Unfortunately, I don't understand your problem. What do you mean, "it
moves?" The padding appears for me, but the content of the span remains
inline, as is its wont. I don't see what "moves."
I am wondering if display:block is messing stuff up?
Shouldn't oughta. A DIV is display:block by default.
Or, something else?
do you see what I am doing wrong?
No, but again, I don't understand the question. I've pasted your code
into a file of my own and done some "testing" but I'm not sure what I'm
looking for. That said, I'm thinking you may not have tried to validate
the code. Visit
http://validator.w3.org/ for the HTML,
http://jigsaw.w3.org/css-validator/ for the CSS.
You might also try it with a simplified test case, one which doesn't
have a bunch of Java in it, for example.
>
Code:
As always, a URL is preferable to pasted, incomplete code.
>
Edit/Delete Message
Is this your sig? Catchy ;-)
HTH
--
John