年年我发



返回   年年我发 > 网站建设 > 建站交流 > Web Directory
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 218.2.29.84
旧 2007-03-20, 07:58 PM
sunshine sunshine 当前离线
高级会员
 
注册日期: 2006-01-05
帖子: 387
精华: 0
现金: 4897 元
资产: 4897 元
声望: 10 sunshine 正向着好的方向发展
默认 Specify Width

Q:
How do I set the width of the overall directory to a fixed width instead of the width="100%' that it is currently set at. I could go in and find all instances but don't want to screw it up and reinstall it.

A1:Take a look in the main.css and at the top of the file you'll see
引用:
body {
background: #FFFFFF;
font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 8pt;
}

Simply add a width attribute like so.
引用:
body {
background: #FFFFFF;
font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 8pt;
width: 700px;
}

Q: How do I get it to center on the page?

A:Probably the easiest thing to do is enclose what you want to be centered in

<div align="center"> </div>

tags

This *should* centre what you need to be centred.

Have you modified your header files at all to enclose the directory in a table, or have you just used the suggestion below to reduce the width?

A2:Actually your best bet with this is super simple.

below your newly added width, add the margins like so.
引用:
margin-left: auto;
margin-right: auto;

Here would be the finished code.
引用:
body {
background: #FFFFFF;
font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 8pt;
width: 700px;
margin-left: auto;
margin-right: auto;
}
回复时引用此帖

wellcome to www.0058.net
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转


所有时间均为北京时间. 现在的时间是 12:57 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2008,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager