开发者

Positioning of Navigation on Website

I want to modify the stylesheet on my website so that the navigation remains in the middle, but instead of just 'hanging' from the centre, I want the dark grey to expand all the way to the right and left of it.

I was wondering how i could go about this? So far, the only way I am able to get close to this is by shifting the navigation to the left, and the dark grey background colour goes all the way to the right.

My website is www.peach-designs.com

If you wish me to post my stylesheet's here then let me know. Hopefully you开发者_开发百科 can use Web Developer tool for now or Firebug or something.

Hope you can help anyway,

Kind Regards,

Snakespan


you can use

width:100%

for the wrapper div to make it fill the page width and

overflow:hidden;

for the landscape div and

margin-right:auto;
margin-left:auto;

for the nav div to put it in the center of the wrapper div


The banner div is wrapped in div.wrapper and this has a fixed size. You could either tomake the wrapper div have width:100% or rearrange things so it does not constrain the navigation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜