[SOLVED] CSSMenu top + 2 columns to 1 columns center?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
kallemac
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 31, 2008 7:53 pm

[SOLVED] CSSMenu top + 2 columns to 1 columns center?

Post by kallemac »

Hi! I have now found a template that i like and want to build my website on. I have figured some things out how to change color and other stuff. But if i want to change the template to 1 columns instead of 2 how do i do that?

/ kalle
Last edited by kallemac on Thu Jun 19, 2008 12:18 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CSSMenu top + 2 columns to 1 columns center?

Post by Dr.CSS »

Remove the sidebar div from the template and change these in the CSS...

Change these...
div#main {
  margin-left: 29%; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
  margin-right: 2%; /* and some air on the right */
}

Can be removed or?...
div#sidebar {
  float: left;  /* set sidebar on the left side. Change to right to float it right instead. */
  width: 26%;    /* sidebar width, if you change this please also change #main margins */
  display: inline;  /* FIX ie doublemargin bug */
  margin-left: 0;
}
kallemac
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 31, 2008 7:53 pm

Re: CSSMenu top + 2 columns to 1 columns center?

Post by kallemac »

thank you it worked fine!!!

and a last question how do i increase the template on the height, i have tried but i cant find the right place for do the changes.
Attachments
increase.png
Last edited by kallemac on Wed Jun 18, 2008 8:03 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CSSMenu top + 2 columns to 1 columns center?

Post by Dr.CSS »

Add more content... ;)
kallemac
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 31, 2008 7:53 pm

Re: CSSMenu top + 2 columns to 1 columns center?

Post by kallemac »

thats one way  :D
What i feel annoying when i visitng sites are that some sites are "jumping" around when clicking on links.
What happens when it´s a lot of text on one page the Scrollbar of the browser is showing and it feels that the page are making a little jumping.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CSSMenu top + 2 columns to 1 columns center?

Post by Dr.CSS »

That sounds like the Firefox scrollbar thing where if the page isn't long enuf to use one it doesn't show so the browser window is that much wider, if a scroll bar is needed the window moves in making it look like it's jumping...

IE keeps the scroll bar at all times so it doesn't look like it's jumping...

I have done some templates where it had a minimum height by using a div floated left 0px height set, that way you get at least a certain height and if content gets longer than the set height it will grow...
Last edited by Anonymous on Wed Jun 18, 2008 8:11 pm, edited 1 time in total.
kallemac
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 31, 2008 7:53 pm

Re: CSSMenu top + 2 columns to 1 columns center?

Post by kallemac »

after changing codes i have found the solution just put the code height: 1080em; in the body. That forces the scrollbar to be shown always, perfect for the jumping problems in Safari and Firefox,

/*****************
basic layout
*****************/
body {
height: 1080em;   
background-color: #B7B789;
   color: #333;
   margin:1em; /* gives some air for the pagewrapper */
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm
Location: Helsinki, Finland

Re: [SOLVED] CSSMenu top + 2 columns to 1 columns center?

Post by KO »

html {overflow-y:scroll}

creates scrollbar to Firefox so page does not jump around. handlebar comes only when there is something to actually scroll.
Post Reply

Return to “Layout and Design (CSS & HTML)”