简体   繁体   中英

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.

However, when i try to change the same thing in skel-noscript.css as below, it doesn't work.

/* 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

Anyway have you already try this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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