内容保持在页面中间 [英] content remain middle of the page

查看:76
本文介绍了内容保持在页面中间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,

我最近开始在基于div的网站上工作,因为建议这个社区的伟人告诉我学习div。

我用div制作了一个页面。在我的页面中,我希望无论页面的尺寸如何,内容都保留在页面的中间位置。我的意思是如果页面分辨率是1024 * 768或1154 * 864或1280 * 768或1280 * 1024或1600 * 1200,则在每个分辨率下我的网站内容都保留在页面中间。



这是我页面的网址
页面网址


有人可以帮助我解决我的问题,因为这个社区极客建议我学习div,我期待他们将帮助我在这个小时的试用期间解决我的问题。


亲切的问候,

Mohsin Rafique

Hey all,
I have recently started work on div based websites as suggested the great man acoder of this community advise me to learn divs.
I made a page using div. In my page i want that content remain at the middle of the page no matter the dimensions of the page are. I mean if the page resolution is 1024 * 768 or 1154 * 864 or 1280 * 768 or 1280 * 1024 or 1600 * 1200, at every resolution the content of my site remain in the middle of the page.



Here is the url of my page
PAGE URL

Can somebody help me out to sort out my problem as this community geeks advise me to learn div and i am expecting they will help me out to sort out my problem in this hour of trial.

kind regards,
Mohsin Rafique

推荐答案

基本模式:
basic pattern:
展开 | 选择 | Wrap | 行号


感谢您的回复。我将该属性应用于名为#container的容器,但它不起作用。 Plz找到我的代码和CSS代码。可能会更有帮助解决我的问题



这是我的HTML源

Thanks for replying. I apply that property on my container named as #container but it is not working. Plz find my code and CSS Code. May be it will more help out to sort out my problem


Here is my HTML Source

展开 | 选择 | Wrap | 行号


@nevantage


它为我工作(虽然我必须拉一点窗户看到那个),但我不使用IE
@neovantage
it?s working for me (though I have to stretch my window quite some bit to see that), but I don?t use IE either


这篇关于内容保持在页面中间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆