標題和描述可能在新行開始,但立即照片後?圖像的標題和內容與CSS
我已經探討了這個問題,但我找不到任何解決方案
<div class="ourteam-details col-xs-12 col-sm-12 col-md-12 col-lg-12 lr">
<div class="image">
<img class="img-responsive" src="../../Articles/10/Images/30-06-2016/197X220903441_ourtteam-bg.png" alt="Our Team articleName 6">
<div class="featured-overlay"></div>
</div>
<div class="details">
<span class="title">Our Team articleName 6</span>
</div>
<span class="content">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
使用Lorem存有的一點是,它具有的 字母更多或更少的正態分佈,而不是使用'內容在這裏,內容在這裏'。
和CSS
.ourteam-details {padding-top: 20px;padding-bottom: 20px;overflow: auto;}
.ourteam-details .image {width: auto !Important;max-width: 100%;max-height:100%;padding-right: 20px;}
.ourteam-details .image img {width: 100%;height: auto;}
.ourteam-details .details { width: auto !Important; float: none !important;}
.ourteam-details .title{width: auto !important;font-family: "OpenSans-Bold";font-size: 2.5em;color: #005f9b;}
.ourteam-details .content {width: auto !important;float: none !important;clear: left;font-family: "OpenSans";color: #232323;}
對於我的問題的更多的描述,你可以看到一個形象,我的份額。
這麼多'important'規則:/ – RGLSV
添加'浮動:left'爲'.title'。 –
標題有浮動:左,但在這種情況下,這div div有寬度,並且,當我把寬度,標題下圖像。 –