digitalimages
New Member
- Messages
- 47
- Reaction score
- 0
- Points
- 0
I have been working on a custom 404 page for my site which would be a consistant style similar to the rest of my site. I can do this but then I started playing with using CSS for creating a box with rounded corners like here:
http://digitalimages.x10hosting.com/new404.htm
but as you can see one corner is not in the right place and also I'm not sure how to move the box to the center of the page. :dunno:
The CSS for the box is below: (not my code)
Suggestions for getting that floating corner in the right position and for centering the entire box would be appreciated.
Thanks,
wp
.dialog {
margin:0px auto;
min-width:8em;
max-width:640px;
color:#fff;
z-index:1;
margin-left:12px;
margin-bottom:0.5em;
}
.dialog .content,
.dialog .t,
.dialog .b,
.dialog .b div {
background:transparent url(dialog2-blue-800x1600.png) no-repeat top right;
_background-image:url(dialog2-blue.gif);
}
.dialog .content {
position:relative;
zoom:1;
_overflow-y:hidden;
padding:10px 12px 10px 10px;
}
.dialog .t {
/* top+left vertical slice */
position:absolute;
left:0px;
top:0px;
width:12px; /* top slice width */
margin-left:-12px;
height:100%;
_height:1600px; /* arbitrary long height, IE 6 */
background-position:top left;
}
.dialog .b {
position:relative;
width:100%;
}
.dialog .b,
.dialog .b div {
height:30px;
font-size:1px;
}
.dialog .b {
background-position:bottom right;
}
.dialog .b div {
position:relative;
width:12px;
margin-left:-12px;
background-position:bottom left;
}
.dialog .hd,
.dialog .bd,
.dialog .ft {
position:relative;
}
.dialog .wrapper {
position:static;
max-height:1000px;
overflow:auto;
}
.dialog h1,
.dialog p {
margin:0px;
padding:0.5em 0px 0.5em 0px;
}
.dialog h1 {
padding-bottom:0px;
text-align: center;
}
a:link { color: #ffffff; text-decoration: none; }
a:visited { color: #ffffff; text-decoration: none; }
a:active { color: #808080; text-decoration: none; }
a:hover {
color: #000000;
text-decoration: none;
font-family: Arial;
font-size: 15px;
http://digitalimages.x10hosting.com/new404.htm
but as you can see one corner is not in the right place and also I'm not sure how to move the box to the center of the page. :dunno:
The CSS for the box is below: (not my code)
Suggestions for getting that floating corner in the right position and for centering the entire box would be appreciated.
Thanks,
wp
.dialog {
margin:0px auto;
min-width:8em;
max-width:640px;
color:#fff;
z-index:1;
margin-left:12px;
margin-bottom:0.5em;
}
.dialog .content,
.dialog .t,
.dialog .b,
.dialog .b div {
background:transparent url(dialog2-blue-800x1600.png) no-repeat top right;
_background-image:url(dialog2-blue.gif);
}
.dialog .content {
position:relative;
zoom:1;
_overflow-y:hidden;
padding:10px 12px 10px 10px;
}
.dialog .t {
/* top+left vertical slice */
position:absolute;
left:0px;
top:0px;
width:12px; /* top slice width */
margin-left:-12px;
height:100%;
_height:1600px; /* arbitrary long height, IE 6 */
background-position:top left;
}
.dialog .b {
position:relative;
width:100%;
}
.dialog .b,
.dialog .b div {
height:30px;
font-size:1px;
}
.dialog .b {
background-position:bottom right;
}
.dialog .b div {
position:relative;
width:12px;
margin-left:-12px;
background-position:bottom left;
}
.dialog .hd,
.dialog .bd,
.dialog .ft {
position:relative;
}
.dialog .wrapper {
position:static;
max-height:1000px;
overflow:auto;
}
.dialog h1,
.dialog p {
margin:0px;
padding:0.5em 0px 0.5em 0px;
}
.dialog h1 {
padding-bottom:0px;
text-align: center;
}
a:link { color: #ffffff; text-decoration: none; }
a:visited { color: #ffffff; text-decoration: none; }
a:active { color: #808080; text-decoration: none; }
a:hover {
color: #000000;
text-decoration: none;
font-family: Arial;
font-size: 15px;