php中文网 | cnphp.com

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 618|回复: 0

Dead Centre a DIV

[复制链接]

2661

主题

2668

帖子

9460

积分

管理员

Rank: 9Rank: 9Rank: 9

UID
1
威望
0
积分
6677
贡献
0
注册时间
2021-4-14
最后登录
2024-5-9
在线时间
672 小时
QQ
发表于 2022-3-24 11:23:15 | 显示全部楼层 |阅读模式
Taken from Dead Centre. Adjust #content depending on the size div you need.

body
        {
        margin: 0px
        }

#horizon        
        {
        color: white;
        background-color: #0ff;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 0px;
        width: 100%;
        height: 1px;
        overflow: visible;
        visibility: visible;
        display: block
        }

#content   
        {
        position: absolute;
        left: 50%;
        width: 250px; /* Overall width of div */
        height: 70px; /* Overall height of div */
        top: -35px; /* half of the overall height */
        margin-left: -125px; /* half of the overall width */
        visibility: visible
        }
Dead Centre a DIV.txt (543 Bytes, 下载次数: 0)





上一篇:Nice URLS PHP .htaccess
下一篇:Browser Detection
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|php中文网 | cnphp.com ( 赣ICP备2021002321号-2 )

GMT+8, 2024-5-10 17:27 , Processed in 0.181816 second(s), 35 queries , Gzip On.

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

申明:本站所有资源皆搜集自网络,相关版权归版权持有人所有,如有侵权,请电邮(fiorkn@foxmail.com)告之,本站会尽快删除。

快速回复 返回顶部 返回列表