shotsy247
06-09-2009, 01:49 PM
Hi All,
I am trying to create a rounded corner layout. I'm using a 9 slice technique. All works well except for the left and right outside edges. I used a background image for these two divs with repeatY, but the background image only shows once and does not repeat.
Here's the HTML:
<div id="interface">
<div id="interface_top">
<div id="top_left_corner"> </div>
<div id="top_center"> </div>
<div id="top_right_corner"> </div>
</div>
<div id="interface_content">
<div id="content_left_vertical"> </div>
<div id="content">
<div>
<p>Content goes here</p>
</div>
<div>
<p>Some other Content</p>
</div>
</div>
<div id="content_right_vertical"> </div>
</div>
<div id="interface_bottom">
<div id="bottom_left_corner"> </div>
<div id="bottom_center"> </div>
<div id="bottom_right_corner"> </div>
</div>
</div>
Here's the CSS:
#interface{ width:980px; margin:auto;}
#interface_top{ font-size:.01em;}
#top_left_corner{
background:url(../siteImages/interface_upper_left_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:left;
}
#top_center{
background:url(../siteImages/interface_upper_horizontal.png) 0 0 repeat-x;
height: 15px;
width: 950px;
float:left;
}
#top_right_corner{
background:url(../siteImages/interface_upper_right_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:right;
}
#interface_content{ clear:both; width:100%; height:100%;}
#content_left_vertical{
background:url(../siteImages/interface_left_vertical.png) repeat-y top left;
width: 15px;
height:100%;
float:left;
border-bottom:1px solid pink;
}
#content{
background: #FFFFFF;
width: 950px;
height:100%;
float:left;
}
#content_right_vertical{
background:url(../siteImages/interface_right_vertical.png) repeat-y top right;
width: 15px;
height:100%;
float:right;
}
#interface_bottom{ clear:both; }
#bottom_left_corner{
background:url(../siteImages/interface_lower_left_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:left;
}
#bottom_center{
background:url(../siteImages/interface_lower_horizontal.png) 0 0 repeat-x;
height: 15px;
width: 950px;
float:left;
}
#bottom_right_corner{
background:url(../siteImages/interface_lower_right_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:right;
}
Any help is appreciated.
_t
I am trying to create a rounded corner layout. I'm using a 9 slice technique. All works well except for the left and right outside edges. I used a background image for these two divs with repeatY, but the background image only shows once and does not repeat.
Here's the HTML:
<div id="interface">
<div id="interface_top">
<div id="top_left_corner"> </div>
<div id="top_center"> </div>
<div id="top_right_corner"> </div>
</div>
<div id="interface_content">
<div id="content_left_vertical"> </div>
<div id="content">
<div>
<p>Content goes here</p>
</div>
<div>
<p>Some other Content</p>
</div>
</div>
<div id="content_right_vertical"> </div>
</div>
<div id="interface_bottom">
<div id="bottom_left_corner"> </div>
<div id="bottom_center"> </div>
<div id="bottom_right_corner"> </div>
</div>
</div>
Here's the CSS:
#interface{ width:980px; margin:auto;}
#interface_top{ font-size:.01em;}
#top_left_corner{
background:url(../siteImages/interface_upper_left_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:left;
}
#top_center{
background:url(../siteImages/interface_upper_horizontal.png) 0 0 repeat-x;
height: 15px;
width: 950px;
float:left;
}
#top_right_corner{
background:url(../siteImages/interface_upper_right_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:right;
}
#interface_content{ clear:both; width:100%; height:100%;}
#content_left_vertical{
background:url(../siteImages/interface_left_vertical.png) repeat-y top left;
width: 15px;
height:100%;
float:left;
border-bottom:1px solid pink;
}
#content{
background: #FFFFFF;
width: 950px;
height:100%;
float:left;
}
#content_right_vertical{
background:url(../siteImages/interface_right_vertical.png) repeat-y top right;
width: 15px;
height:100%;
float:right;
}
#interface_bottom{ clear:both; }
#bottom_left_corner{
background:url(../siteImages/interface_lower_left_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:left;
}
#bottom_center{
background:url(../siteImages/interface_lower_horizontal.png) 0 0 repeat-x;
height: 15px;
width: 950px;
float:left;
}
#bottom_right_corner{
background:url(../siteImages/interface_lower_right_corner.png) 0 0 no-repeat;
width: 15px;
height: 15px;
float:right;
}
Any help is appreciated.
_t