html - 调整网页大小时的空白

标签 html css

我一直在努力创建一份简历,但在“工作经历”部分出现空白问题。一旦您开始折叠网页,无序列表就会离开页面并在页面右侧创建不需要的空白区域。我已经尝试了很多事情并寻找答案,但我仍然无法解决这个问题。

<div id="wrapper">
<div id="leftcolumn">
    <p><b>Assurant Inc, Remote Technical Support</b></p>
  <p>April 2017 - Present</p>
</div>
<div id="rightcolumn">
    <div>
      <ul>
        <li>Remote support of mobile devices for customers of T-Mobile, US Cellular, and Comcast.</li>
        <li>Technical support via Intercom, phone call, and email.</li>
        <li>Mobile application support for iOS and Android.</li>
        <li>Training customers on utilization of "Pocket Geek," company application.</li>
        <li>Document resolutions in Microsoft Dynamics.</li>
        <li>Add articles to knowledge base in Microsoft Dynamics.</li>
        <li>Supporting customers with in home Smart Devices such as August Smart Lock, Philips Hue, LIFX, Amazon Echo, Google Home, as well as others.</li>
      </ul>
     <hr>
 </div>
</div>

https://codepen.io/bgongre/full/EXKXye/

提前致谢。

最佳答案

在你的 CSS 中试试这个:

#wrapper {
    width: 80%;
    margin: 0 auto;
    display: table;
}
#leftcolumn {
    width: 20%;
}
#rightcolumn {
    width: 40%;
    margin: auto;
}

关于html - 调整网页大小时的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44782665/

相关文章:

html - Flexbox 图像布局列

javascript不想解析文本超过两次

html - 防止文本向左移动一点

html - 我正在制作一个网站登录页面,但菜单 div 未能出现在我的背景前。如何强制 div 出现在前面?

html - 如何均匀间隔div

javascript - 有没有办法自动向下滚动并加载任何使用无限滚动的网站的更多内容?

php - WordPress 在主题支持中检索缩略图

javascript - 使用 jQuery 添加和删除类

javascript - 重定向到另一个网页

css - 尝试使用隐藏属性对显示/隐藏定义列表进行动画处理(隐藏属性导致动画不起作用)