- Internet & the Web
Changing the Width of Your Website on Weebly
How to change your website's width in Weebly
Weebly is a fantastic tool for creating your own free website and is very easy to use, even for people with no prior experience of web design, HTML or any form of programming. However, sometimes you may want to do something to the design of your site for which there is no easy solution within Weebly's website builder. Changing the width of your site is one of those things. In this article I will show you how to use the HTML editor on Weebly to alter the width of your website.
Photo courtesy of DoingMaths
Why change the width?
So why would you want to change the width of your website? Simple; sometimes the template you have chosen only allows you to write within a certain width on the page. If you want to put in a picture at a certain size, or want to use an AdSense Leaderboard advert (which measures 728 pixels across) you may not have enough room. You could always try using a different template, but this isn't ideal if you really like the one you've already got. Fortunately, the solution is simple; use the HTML editor.
Finding the HTML/CSS Editor
Regardless of which template you choose, you are given the option of editing the HTML code yourself. To do this simply click on the 'Design' button at the top of the editor page and then click the 'Edit HTML/CSS' button which you can see on the bottom left of the picture above. This will take you into the HTML/CSS editor.
Once you click on the 'Edit HTML/CSS' button, the editor will appear at the top of your page, with a preview of your site below it. This will look very confusing if you have no prior experience of HTML or CSS, but don't worry, we are only looking for a couple of small parts to edit.
Changing the width using HTML
Now you've got the code up, you need to scroll though it to find any references to 'width'. The number of times this will appear depends upon the theme you are using.
For example, in my DoingMaths website the only time width appears is in the following:
margin: 0 auto;
Changing the 850 will change the width of the site (this will apply to all pages on your site).
On some themes you will also need to look out for '#content' and '#wrapper' and change these accordingly. A good rule of thumb is to change them all by the same value i.e. if you increase the content by 50px, increase the wrapper and container by 50px as well. It's advisable to keep the width below 950px to make sure all of your content fits on the screen and your site visitors won't need to scroll side to side to see everything.
Changing the width of my website
I decided to alter the width of my website, www.doingmaths.co.uk, as I was wanting to use AdSense Leaderboard adverts, but was finding that my site was too narrow, hence the adverts all appeared with scroll bars on them. I made my site a bit wider by following the instructions in this article and now the adverts fit perfectly.