简体   繁体   English

如何修复一页网站的容器/正文宽度(html,css和js)

[英]How to fix Containers/Body Width of one page website (html, css and js)

Please see the screenshot below of my one page website i am trying to create. 请查看我要创建的一页网站的以下屏幕截图。

Issue - Width of body (shown as selected in picture below) 问题-车身宽度(如下图所示)

在此处输入图片说明

I want to increase the width of whole website so that the two titles ("Hobbies and Interests" and "Contact Me") can be accommodated in the 2nd line along with the 2 titles(Recognition's and Appreciations and Extramural Engagements and Accolades) 我想增加整个网站的宽度,以便将两个标题(“爱好和兴趣”和“联系我”)与两个标题(“认可和赞赏”以及“校外参与和赞誉”)一起容纳在第二行

please refer below image for how i want it to look. 请参考下面的图片,我希望它看起来如何。 在此处输入图片说明

I got this by making changes using F12. 我是通过使用F12进行更改来实现的。

However, when i try to change the same thing in skel-noscript.css as below, it doesn't work. 但是,当我尝试如下更改skel-noscript.css中的相同内容时,它不起作用。

/* Container */ /* 容器 */

body {
    width: 1400px;
}

.container {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;

Any help on this is greatly appreciated. 在此方面的任何帮助将不胜感激。 Thank you! 谢谢!

It will be usefull if you will also post here your HTML code 如果您还将在此处发布HTML代码,将非常有用

Anyway have you already try this: 无论如何,您已经尝试过以下方法:

.container {
    width: 1400px;
    margin:0 auto;
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM