开发者

inline div background not showing up

开发者 https://www.devze.com 2022-12-15 09:36 出处:网络
I\'m trying to use two divs, one with a non repeating background in the left corner to s开发者_开发知识库erve as a \'curved border\' image, and the second div, within that one, with a background that

I'm trying to use two divs, one with a non repeating background in the left corner to s开发者_开发知识库erve as a 'curved border' image, and the second div, within that one, with a background that is offset by the width of the first div's image so that it seems to be one solid image, that fluidly stretches with the page width. I tried doing this the way I described but it isn't working, only the stretched repeating background div shows up. I would prefer to try from scratch something one of you suggests.


Try setting an explicit widh on the left div, and try using float:left on both (to make sure they align properly).

And set border:none (I'm stating the obvious here, probably).

0

精彩评论

暂无评论...
验证码 换一张
取 消