3 Replies - 595 Views - Last Post: 19 April 2013 - 05:51 AM

#1 qim  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 17-April 13

centering header to allow sidebars to reach the top

Posted 17 April 2013 - 10:53 AM

Hi

Tha title tells it all. I've tried to centre the header with margin:auto, but of course the margins are taken up by the header anyway. I want the side bars to go all the way to the navbar with the header squeezed in the middle between them.

How do I do that in css?


thank you

qim
Is This A Good Question/Topic? 0
  • +

Replies To: centering header to allow sidebars to reach the top

#2 FerretHolmes  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 167
  • Joined: 12-November 12

Re: centering header to allow sidebars to reach the top

Posted 17 April 2013 - 01:45 PM

You should post your code or progress to get better help with your issue. It sounds like you are wanting a 3 column layout.
<div id="wrapper">
  <div id="columnOne">
    ..content
  </div>

  <div id="columnTwo">
    ..content
  </div>

  <div id="columnThree">
    ..content
  </div>
</div>


Then just set the properties in css.
#wrapper { 
    margin: 0 auto; 
    width: 900px; 
}
#columnOne, #columnTwo, #columnThree { 
    width: 300px;
    height: 500px;
}


This post has been edited by FerretHolmes: 17 April 2013 - 01:45 PM

Was This Post Helpful? 0
  • +
  • -

#3 qim  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 17-April 13

Re: centering header to allow sidebars to reach the top

Posted 17 April 2013 - 01:53 PM

Hi Thanks

This is what I started on this afternoon, trying to get a structure similar to this page. I'm very new to this (5 weeks)

http://images.all-fr...view/store_684/


Meanwhile I had a major disaster this afternoon with my site collapsing after so much trouble. I have a couple of problems. Do you think you could help, please'
Was This Post Helpful? 0
  • +
  • -

#4 qim  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 17-April 13

Re: centering header to allow sidebars to reach the top

Posted 19 April 2013 - 05:51 AM

Just to let you know that my major disaster is no loner. everything back to normal.

I woule be grateful if someone could help with the original question about header between sidebars





View Postqim, on 17 April 2013 - 01:53 PM, said:

Hi Thanks

This is what I started on this afternoon, trying to get a structure similar to this page. I'm very new to this (5 weeks)

http://images.all-fr...view/store_684/


Meanwhile I had a major disaster this afternoon with my site collapsing after so much trouble. I have a couple of problems. Do you think you could help, please'

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1