css - 在 WordPress CSS 上扩展边距

标签 css

我使用的是 WordPress 托管网站,我主要担心的是页边距不像我希望的那样。我不确定如何表达我的意思,但我会试一试。

这是包含博客文章的主页:

                                Blog title, 
                                Blog body is this,
                                continues here... I just
                                need to increase the right 
                                margin.

同样,它没有像这里显示的那样向右那么多 -- 它甚至被放置了,我只是想延长右边距。那是代码的哪一部分?我应该用代码更新它吗?

更新

是这段代码吗?

    }
    .entry-content {
        overflow: hidden;
        zoom:1;
    }
    /* Sidebar

还是这个?

}
h3, #sidebar, .postdata, .entry-content {
    font-family:'helvetica neue', helvetica, arial, sans-serif;
}

最佳答案

如果没有更适当的技术信息(html 和 css 代码),很难知道。 我猜你应该在主题目录的 style.css 文件中寻找 entry-content 类并添加你想要的边距。

如果在那里找不到类,只需将其添加到 css 文件的末尾即可:

.entry-content{
   margin-right:100px;
}

关于css - 在 WordPress CSS 上扩展边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26303884/

相关文章:

javascript - 在应用新变换之前停止所有变换

html - 倾斜的字体被 text-align :right 截断

javascript - 在表单按钮 css 中的文本旁边添加图像

css - 如何使 div 上的滚动条仅在必要时可见?

c# - 以编程方式将标准和超链接列表项的混合添加到 ASP.NET 中的元素符号列表

html - 使用 Safari/Chrome/FF 处理文本上的填充

css - 在 reveal.js 中调整字体大小

javascript - 在网格中显示 React bootstrap 轮播

javascript - Internet Explorer 无法正确显示下拉菜单

html - CSS - 垂直时间轴,连接到点