duanliao3826 2017-06-22 17:19
浏览 43

删除.widget-area,.comment-area和.main-navigation之间的空格

My website is www.rosstheexplorer.com.

I am using the Penscratch theme although have modified many aspects of it.

I recently made a number of changes including making my header and navigation bar full width.

One of the unintended consequences of these changes is now there is a lot of space between the navigation menu and primary and secondary areas.

I used the Developer Tools on Google Chrome and started trying to alter the width, padding and margin of a variety of elements on the page.

The below code was the closest I got to solving the problem. The below only works though if the browser window is certain dimensions. If the browser window is to small then the below code forces the content-area and widget-area to overlap the navigation menu and header.

Is there a way I can modify the below code so it works regardless of the browser window size.

.widget-area {
    float: right;
    width: 30%;
    margin-top: -350px;
}

#primary.content-area {
    float: left;
    width: 70%;
    margin-top: -350px; 
}

Or is there another completely different solution?

  • 写回答

2条回答 默认 最新

  • dsf6565 2017-06-22 18:06
    关注

    Change the below css

    style.css:1932 @screen and (min-width: 75em)
    .site {
        max-width: 1153px;
        margin: 400px auto;   // change this to margin: 5px auto;
        padding: 54px 108px;
    }
    
    
    :43 @screen and (min-width: 75em) 
    .site {
        max-width: 1153px;
        margin-top: -50px auto; //remove this minus is not recommended
        padding: 54px 108px;  // change this to padding: 0px 108px 54px 108px;
    }
    

    kindly change the above margin and padding

    评论

报告相同问题?

悬赏问题

  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能