开发者

stretch my container div

You know when you stare at something for sooo long you go cross eyed. I am at that point.

All I want to do is stretch the div, vertically based on the content inside.

Very very simple code here , I have stripped back a lot. But this is the essential stuff, I think its a margin:auto issue that I need, maybe wrong...

I cant doa fiddle site currently unavailable.

So here is the code:

html:

<div class="agencyBoxAbout">
    <div class="agencyText">
        <blockquote class="blockquotebig">blah dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem 开发者_运维问答ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker dee blah dee blah lorem ipsum kiss my ricker</blockquote>
    </div>
</div>

css:

.agencyText {
    position:absolute;
    width:400px;
    padding:10px;
    height:100%;
}

.agencyBoxAbout {
    width:100%;
    border: 1px solid #aaaaaa;
    border-radius: 3px 3px 3px 3px;
    min-height:150px;
    position:relative;
    /*overflow:hidden;*/
}

.blockquotebig {
    /*background: url("../images/bigquote.png") no-repeat scroll 0 0 transparent;*/
    line-height: 20px;
    padding-left: 52px;
    width: 390px;
}


The problem is the position:absolute in .agencyText. If you remove that (or use relative, for example) then it should work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜