html - 像纽约时报一样创建新面板

标签 html css twitter-bootstrap

我正尝试着手处理 bootstrap css。

我想创建类似于 Highlights From 2014 的响应式推荐面板

这里看起来有点相似 - http://jsfiddle.net/karimkhan/9r74Y/16/

但是如果我增加文字大小,图像就会变小。另外,当我拉开屏幕时,我感觉它没有反应。参见- http://jsfiddle.net/karimkhan/9r74Y/17/

任何改进的帮助,使它看起来与响应效果相似。如果可能的话,还有字体样式。

HTML :

<div class="c1">
    <div class="item">
        <div class="descriptionContainer">
            <span class="main-head"> Life in the Valley of Death  </span>
            <span class="min-head">In Srebrenica, the remains of those killed in the genocide keep turning up, unsettling the reconciliation between Muslims and Serbs.</span>          
        </div>
        <div class="image"> 
            <img class="media-object" src="http://graphics8.nytimes.com/images/2014/06/01/magazine/01srebrenica4/mag-01srebrenica-t_CA4-thumbWide.jpg"/>
        </div>
    </div>  
</div>

最佳答案

试试这个..

.descriptionContainer{
width:75%;/*add on your css */
}

关于html - 像纽约时报一样创建新面板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27664739/

相关文章:

html - 溢出 :hidden not working with border-radius in Chrome

html - Css flex box 使第二个元素居中

html - 带有图像 float 选项的文本溢出

php - 使用 php 在 css 中搜索特定类

css - 使用 React Bootstrap react Tsx - 用于事件 NavItem 的内联 CSS

html - 如果设备宽度为 LOW px,则更改 html 表

css - 如何将自定义 CSS 图像添加到 Squarespace 中给定文本层后面的目标背景?

html - 正常 "footer not sticking to the bottom"解决方案不起作用

html - 左边距相等的 Bootstrap 列

jquery - Bootstrap 开关按钮在移动设备上不起作用