How can I add a large faded text background via css?

前端 未结 4 1317
情话喂你
情话喂你 2020-12-31 17:07

I\'m looking to create a Zune/Microsoft-style oversized title in CSS so that a div has a semi-transparent text behind it.

4条回答
  •  清歌不尽
    2020-12-31 17:51

    You overlap on div with another DEMO http://jsfiddle.net/FkE2V/

    #container {
        width: 100px;
        height: 100px;
        position: relative;
    }
    #text, #other {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    #other {
        z-index: 10;
        color:#f00;
    }
    

提交回复
热议问题