Want to add padding on left and right side of my site

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
dorlow
Forum Members
Forum Members
Posts: 46
Joined: Fri Nov 13, 2009 7:43 pm

Want to add padding on left and right side of my site

Post by dorlow »

Hi,

I'm trying to spruce up our school's website. I am the tech for the school. The person that we paid to make the site isn't available to ask for help anymore, so I'm on my own.

I've made quite a bit of changes to the site in the last few days and it does look quite a bit better now. But the next thing we want to do is not have the bars and all the area just extend from the left side of the browser to the right. I want there to be a definite border around the website.

This is our website...

www.lakeviewschools.net

Here's a website we've been looking at that our school likes a lot that we're taking some ideas from it...

http://www.bas-k12.org/

Now, I like how there's has the definite borders. I don't like how it still extends the horizontal lines pass the borders. I'd like our page in the center to be wider without everything extending past it.

I'm planning on "sprucing" up the website soon further by replacing the 4 building icons in the center of the website with a picture slideshow of kids. But I'm just waiting on pictures from the principals.

Here's a sample slideshow I have going. The pictures aren't good...

http://www.lakeviewschools.net/sample-gallery/

Any other ideas to make it look impressive? I'm totally not a web programmer. I'm trying. The thing artist have that give them the ability to be creative, I totally wasn't born with.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Want to add padding on left and right side of my site

Post by Wishbone »

If you give a width to #header and set margin:auto, the entire site will center. Your needs aren't really CMSMS-related.. It's all graphics/HTML/CSS
dorlow
Forum Members
Forum Members
Posts: 46
Joined: Fri Nov 13, 2009 7:43 pm

Re: Want to add padding on left and right side of my site

Post by dorlow »

Where do I do that? Do I put it in the template or stylesheet? I just tried putting

width: 150 px;
margin:auto;

In a few different places in both and it didn't do anything. I tried putting it in spots that were labeled header. I tried putting it at the top. I tried encasing it in {literal} {/literal} figuring it was straight html and not a cms thing. Nothing seemed to center it.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Want to add padding on left and right side of my site

Post by Jo Morg »

dorlow wrote:Where do I do that? Do I put it in the template or stylesheet?
Stylesheet!
Wishbone wrote:If you give a width to #header and set margin:auto, the entire site will center. Your needs aren't really CMSMS-related.. It's all graphics/HTML/CSS
As Wishbone said: (example, change as needed)

Code: Select all

#header {
  height: 111px;
  width: 960px;
  margin:auto;
}
But you really need to check some sites with HTML/CSS tutorials if you want to understand what you are doing. :D
HTH!
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Want to add padding on left and right side of my site

Post by Dr.CSS »

You might want to read up on HTML/CSS here...

http://www.w3schools.com/

You also have a few HTML errors...
Post Reply

Return to “The Lounge”