Hi everyone,
My "container" div contains various changeable elements such as lists, forms and more within it.
That "container" has a "border" property to confine it's content by a surrounding frame.
I wouldn't like this "frame" to be static, meaning: it shouldn't have a rigid width such as: "100px".
I want its' width to change in accordance with its' content. If the content of that div is 10 px, border's
width should be 10 px etc..
I tried: "width: auto; margin: auto" and recieved the whole display's width as border's width.
Can anyone give me a suggestion of how to create an "elastic" border attribute?
Thanks
My "container" div contains various changeable elements such as lists, forms and more within it.
That "container" has a "border" property to confine it's content by a surrounding frame.
I wouldn't like this "frame" to be static, meaning: it shouldn't have a rigid width such as: "100px".
I want its' width to change in accordance with its' content. If the content of that div is 10 px, border's
width should be 10 px etc..
I tried: "width: auto; margin: auto" and recieved the whole display's width as border's width.
Can anyone give me a suggestion of how to create an "elastic" border attribute?
Thanks