div - not the whole screen
div - not the whole screen
- Started
- Last post
- 5 Responses
- ldww
i have a div, and it's width is durrently being displayed as the width of the screen. how can i make it only the width of what it contains? (a submit button)
- jevad0
give it a width parameter!
- ldww0
i was hoping to have it auto adjust based on the width of whats in it.
- spiralstarez0
might be missing something...
a div by default should ONLY be the width of whatever you put in it if you don't define a width...
- SteveJobs0
use a span instead. divs insert a break by default
- ganon0
seems like a unecessary use of a div...why not style the form?..:
form.kewl {
/* CSS ME */
}form.kewl input {
/* CSS ME */
}