nanolucas
01-15-2008, 02:38 AM
Hi there, i'm trying to get corners working on a new site template but at the moment it's giving me some problems.
It's looking how i want it to look in IE (which doesn't mean it's right in any way) but it's displaying incorrectly in Firefox.
Just looking for a hand in getting the bottom corners to align properly.
Here is the html:
<html>
<head>
<title>Twelve 3.0 Network Portal</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="./stylesheets/twelve2.css" />
</head><body>
<div class="headerbar">
<span class="corners-top"><span></span></span>
</div>
<div class="content">
<div id="latestentries">
<div class="inner"><span class="corners-bottom"><span></span></span></div>
</div>
</div>
</body>
</html>
And this is the content of twelve2.css:
.headerbar {
background: #D1FDD0 none repeat-x;
color: #FFFFFF;
height: 100px;
width: 90%;
margin-right: auto;
margin-left: auto;
text-align: center;
}
.content {
background: #E8FDEC none repeat-x;
color: #FFFFFF;
height: 550px;
width: 90%;
margin-right: auto;
margin-left: auto;
text-align: center;
}
.content #latestentries {
background-color: #D1FDD0;
background-position: top;
float: right;
width: 300px;
height: 500px;
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span,
.inner span.corners-top, .inner span.corners-bottom, .inner span.corners-top span, .inner span.corners-bottom span {
font-size: 1px;
line-height: 1px;
display: block;
height: 18px;
background-repeat: no-repeat;
}
span.corners-top {
background-image: url("./images/2/cnr-top-left.gif");
background-position: 0 0;
margin: 0 0px;
}
span.corners-top span {
background-image: url("./images/2/cnr-top-right.gif");
background-position: 100% 0;
}
span.corners-bottom {
background: #E8FDEC url("./images/2/cnr-bot-left.gif") no-repeat bottom left;
position: relative;
padding-top: 0;
padding-bottom: 18px;
margin: 1em 0 0 0;
height: 100%;
}
span.corners-bottom span {
background: #E8FDEC url("./images/2/cnr-bot-right.gif") no-repeat bottom right;
padding: 1em 2em 18px 0;
margin: 0 0 -18px 18px;
height: 100%;
}
.inner span.corners-top {
background-image: url("./images/2/cnr-top-left2.gif");
background-position: 0 0;
margin: 0 0px;
}
.inner span.corners-top span {
background-image: url("./images/2/cnr-top-right2.gif");
background-position: 100% 0;
}
.inner span.corners-bottom {
background: #d1fdd0 url("./images/2/cnr-bot-left2.gif") bottom left no-repeat;
position: relative;
padding-top: 0;
padding-bottom: 18px;
margin: 1em 0 0 0;
height: 100%;
}
.inner span.corners-bottom span {
background: #d1fdd0 url("./images/2/cnr-bot-right2.gif") bottom right no-repeat;
padding: 1em 2em 18px 0;
margin: 0 0 -18px 18px;
height: 100%;
}
The corner images were generated by this: http://tools.sitepoint.com/spanky/index.php
And here is the page running with the html and css: http://www.imtwelve.com/new/index2.php
The bottom corners show at the top of the right panel instead of the bottom.
".inner span.corners-bottom" and ".inner span.corners-bottom span" seem to be the ones not working correctly.
If any of this hasn't been clear, please let me know and i'll try to explain what i was doing better. Any help would be most appreciated.
Thanks.
It's looking how i want it to look in IE (which doesn't mean it's right in any way) but it's displaying incorrectly in Firefox.
Just looking for a hand in getting the bottom corners to align properly.
Here is the html:
<html>
<head>
<title>Twelve 3.0 Network Portal</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="./stylesheets/twelve2.css" />
</head><body>
<div class="headerbar">
<span class="corners-top"><span></span></span>
</div>
<div class="content">
<div id="latestentries">
<div class="inner"><span class="corners-bottom"><span></span></span></div>
</div>
</div>
</body>
</html>
And this is the content of twelve2.css:
.headerbar {
background: #D1FDD0 none repeat-x;
color: #FFFFFF;
height: 100px;
width: 90%;
margin-right: auto;
margin-left: auto;
text-align: center;
}
.content {
background: #E8FDEC none repeat-x;
color: #FFFFFF;
height: 550px;
width: 90%;
margin-right: auto;
margin-left: auto;
text-align: center;
}
.content #latestentries {
background-color: #D1FDD0;
background-position: top;
float: right;
width: 300px;
height: 500px;
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span,
.inner span.corners-top, .inner span.corners-bottom, .inner span.corners-top span, .inner span.corners-bottom span {
font-size: 1px;
line-height: 1px;
display: block;
height: 18px;
background-repeat: no-repeat;
}
span.corners-top {
background-image: url("./images/2/cnr-top-left.gif");
background-position: 0 0;
margin: 0 0px;
}
span.corners-top span {
background-image: url("./images/2/cnr-top-right.gif");
background-position: 100% 0;
}
span.corners-bottom {
background: #E8FDEC url("./images/2/cnr-bot-left.gif") no-repeat bottom left;
position: relative;
padding-top: 0;
padding-bottom: 18px;
margin: 1em 0 0 0;
height: 100%;
}
span.corners-bottom span {
background: #E8FDEC url("./images/2/cnr-bot-right.gif") no-repeat bottom right;
padding: 1em 2em 18px 0;
margin: 0 0 -18px 18px;
height: 100%;
}
.inner span.corners-top {
background-image: url("./images/2/cnr-top-left2.gif");
background-position: 0 0;
margin: 0 0px;
}
.inner span.corners-top span {
background-image: url("./images/2/cnr-top-right2.gif");
background-position: 100% 0;
}
.inner span.corners-bottom {
background: #d1fdd0 url("./images/2/cnr-bot-left2.gif") bottom left no-repeat;
position: relative;
padding-top: 0;
padding-bottom: 18px;
margin: 1em 0 0 0;
height: 100%;
}
.inner span.corners-bottom span {
background: #d1fdd0 url("./images/2/cnr-bot-right2.gif") bottom right no-repeat;
padding: 1em 2em 18px 0;
margin: 0 0 -18px 18px;
height: 100%;
}
The corner images were generated by this: http://tools.sitepoint.com/spanky/index.php
And here is the page running with the html and css: http://www.imtwelve.com/new/index2.php
The bottom corners show at the top of the right panel instead of the bottom.
".inner span.corners-bottom" and ".inner span.corners-bottom span" seem to be the ones not working correctly.
If any of this hasn't been clear, please let me know and i'll try to explain what i was doing better. Any help would be most appreciated.
Thanks.