I was thinking, slice the top part where the curved edge ends, then somehow repeat a gradient slice along x axis, then again somehow add another for the bottom.
I assume you understand how to create a div inside "myDiv", size and position it accordingly so that any content only appears over the dark central part of your background and not over its borders - assuming that is what you eventually want to do.
I was thinking, slice the top part where the curved edge ends, then somehow repeat a gradient slice along x axis, then again somehow add another for the bottom.
That would work if the div's height will decrease/increase according to its content...
Wouldn't making a top slice, bottom slice and a small middle slice properly sized work? I did that and it was much easier. The middle sliced was set to repeat-y so it expanded with the content. The coding wasn't all that complex.
Wouldn't making a top slice, bottom slice and a small middle slice properly sized work? I did that and it was much easier. The middle sliced was set to repeat-y so it expanded with the content. The coding wasn't all that complex.
Like with most layouts, there is more than 1 way to do something.
Personally I find it easier to use only 2 slices to make the box expand both horizontally and vertically.
Post your code and slices so others can see another way of doing it.
Bookmarks