如何让html/css有间距

发布于 2024-09-16 05:44:27 字数 497 浏览 2 评论 0原文

我这里有一个 html/css 代码,这将导致这个。请参见下图。 我想在第一个“未来事件”下添加另外 3 列,我该怎么做? 已经发布代码:谢谢 段落间距的代码是什么? 谢谢 请看这里的图片: http://www.freeuploadimages.org/images/nc1xjrptgddvk1yxvnad.png

我想要调整“未来事件”的空间,就像我想把它放在顶部一点点一样。 这可能吗?

这是代码: 请在此处检查更新的代码: http://jsfiddle.net/b5fMe/4/

我需要在两者之间有一个分隔符,但是


doesn't work:-(

i have an html/css code here, which will result to this one.see image below.
I would like to add another 3 columns under the first "Future Event" How can I do that?
already posted the code: thanks
what would be the code for the spacing of paragraphs?
thanks
please see the image here:
http://www.freeuploadimages.org/images/nc1xjrptgddvk1yxvnad.png

I would like to adjust the space of "Future Event" like I would like to have it a little bit at the top.
Is that possible?

This is the code:
please check the updated codes here:
http://jsfiddle.net/b5fMe/4/

I need to have a separator in between but


doesn't work:-(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦晓ヶ微光ヅ倾城 2024-09-23 05:44:27

您有 CSS:

   #content .secondary-heading{
   font-size:18px;
font-weight:normal;
color:#333;
font-style:normal;
font-family:Georgia;
text-align:left;
margin-bottom:150px;
    }

指定:

margin-bottom:150px;

但在您的 HTML 中,您有第二个

的内联代码其中指出:

style="font-size: 18px;font-weight: normal;color: #333;
字体样式:正常;字体系列:格鲁吉亚;文本对齐:
left;margin-bottom: 15px;"

取出此内联样式,它应该按预期运行。

编辑

在CSS中:更改margin-bottom:150px; 更改为 margin-bottom:15px;

希望有帮助!

You have the CSS:

   #content .secondary-heading{
   font-size:18px;
font-weight:normal;
color:#333;
font-style:normal;
font-family:Georgia;
text-align:left;
margin-bottom:150px;
    }

Which specifies:

margin-bottom:150px;

But in your HTML you have inline code for the second

<h2 class="secondary heading"> which states:

style="font-size: 18px;font-weight: normal;color: #333;
font-style: normal;font-family: Georgia;text-align:
left;margin-bottom: 15px;"
.

Take this inline style out and it should behave as expected.

EDIT

In the CSS: change margin-bottom:150px; to margin-bottom:15px;after deleting the inline style.

Hope that helps!

反话 2024-09-23 05:44:27

要复制这三个块,实际上您必须复制包含它们的行、tr 标记。
我复制/粘贴您的代码:

<tr>
        <td class="content threecol first" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 25%; padding-right: 20px; padding-left: 0pt; padding-top: 20px; border-right: 1px solid rgb(204, 204, 204);"><!--<h2 class="secondary-heading" 
      style="font-size: 18px;font-weight: normal;color: #333;font-style: 
      normal;font-family: Georgia;text-align: 
     left;margin-bottom: 15px;">Future Event</h2>-->

          <h2 class="secondary-heading">Future Event</h2>
          <p2 class=".secondary-paragraph"> Sed ut persp iciatis unde omnis iste natus error sit voluptatem 
            accusantium doloremque laudantium, totam rem aperiam, eaque.</p2></td>
        <td class="content threecol" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 28%; padding-right: 20px; padding-left: 20px; padding-top: 20px; border-right: 1px solid rgb(204, 204, 204);"><h2 class="secondary-heading" style="font-size: 18px; font-weight: normal; color: rgb(51, 51, 51); font-style: normal; font-family: Georgia; text-align: left; margin-bottom: 15px;">Future Event</h2>
          <p>Sed ut persp iciatis unde omnis iste 
            natus error sit voluptatem accusantium doloremque laudantium, totam rem 
            aperiam, eaque.</p></td>
        <td class="content threecol last" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 28%; padding-right: 15px; padding-left: 20px; padding-top: 20px; margin-right: 15px; border: 0pt none;"><p class="btn" style="text-align: center; background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);">  </p>
          <p class="btn" style="background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);"> <a href="#" style="color: rgb(255, 255, 255); text-decoration: none; font-weight: normal; font-size: 26px; font-family: Georgia; text-transform: uppercase; text-align: center; display: block; padding: 20px 0pt;"> <img height="50" border="0" width="119" alt="" src="http://gallery.mailchimp.com/86b4d752e397a2dbd09e3dd60/images/logowikima4.gif" style="text-align: center; display: block;"></a> </p>
          <p class="btn" style="text-align: center; background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);">  </p>
          <p> Let us know if you are coming and if you have guests.</p>
      </td></tr>

在您的代码中,您会找到上面的代码,只需将相同的代码粘贴到其下面即可。

关于间距,您可以修改它,为 secondary-heading 类提供 line-height

例如 .secondary-heading {line-height:1.4;} ,根据需要修改即可。

to duplicate the three blocks, in fact you must copy the row, the tr tag which include them.
I copy/paste you the code:

<tr>
        <td class="content threecol first" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 25%; padding-right: 20px; padding-left: 0pt; padding-top: 20px; border-right: 1px solid rgb(204, 204, 204);"><!--<h2 class="secondary-heading" 
      style="font-size: 18px;font-weight: normal;color: #333;font-style: 
      normal;font-family: Georgia;text-align: 
     left;margin-bottom: 15px;">Future Event</h2>-->

          <h2 class="secondary-heading">Future Event</h2>
          <p2 class=".secondary-paragraph"> Sed ut persp iciatis unde omnis iste natus error sit voluptatem 
            accusantium doloremque laudantium, totam rem aperiam, eaque.</p2></td>
        <td class="content threecol" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 28%; padding-right: 20px; padding-left: 20px; padding-top: 20px; border-right: 1px solid rgb(204, 204, 204);"><h2 class="secondary-heading" style="font-size: 18px; font-weight: normal; color: rgb(51, 51, 51); font-style: normal; font-family: Georgia; text-align: left; margin-bottom: 15px;">Future Event</h2>
          <p>Sed ut persp iciatis unde omnis iste 
            natus error sit voluptatem accusantium doloremque laudantium, totam rem 
            aperiam, eaque.</p></td>
        <td class="content threecol last" style="font-size: 11px; line-height: 1.4em; color: rgb(68, 68, 68); width: 28%; padding-right: 15px; padding-left: 20px; padding-top: 20px; margin-right: 15px; border: 0pt none;"><p class="btn" style="text-align: center; background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);">  </p>
          <p class="btn" style="background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);"> <a href="#" style="color: rgb(255, 255, 255); text-decoration: none; font-weight: normal; font-size: 26px; font-family: Georgia; text-transform: uppercase; text-align: center; display: block; padding: 20px 0pt;"> <img height="50" border="0" width="119" alt="" src="http://gallery.mailchimp.com/86b4d752e397a2dbd09e3dd60/images/logowikima4.gif" style="text-align: center; display: block;"></a> </p>
          <p class="btn" style="text-align: center; background: none repeat scroll 0% 0% rgb(45, 45, 45); border: 3px solid rgb(235, 235, 235);">  </p>
          <p> Let us know if you are coming and if you have guests.</p>
      </td></tr>

In your code you will find the above code, just paste the same below it.

About spacing, you can modify it, giving line-height for secondary-heading class.

for example .secondary-heading {line-height:1.4;} , just modify it according to your needs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文