JMayer
12-21-2010, 11:24 PM
That might be a confusing question. I have been editing a section, converting a text header with a color-based background to a static graphic..
Currently the container has four sections.. But each section is referencing the same header.
I successfully made it so the top two are positioned correctly, but the bottom two I am having difficulty with.
I am thinking that maybe I need to use a header graphic that is similar to graphics that change on click, in the way that the top of the header appears for one section, and the bottom appears for the other section.
I am not sure if the background position tag will work for this (as i tried), or to use a margin tag. However, it seems that I need to create a separate subsection in order to accomplish what I want to do.
Below is the current code:
#article_menu_container {
width: 622px;
float: left;
}
.article_menu {
font: bold 10px/22px Arial, Helvetica, sans-serif;
float: left;
text-align: center;
width: 311px;
}
.article_menu div {
background: url(../images/shopcardother.png) no-repeat;
/*--background-position: -110px 0;--*/
border: 1px solid #453e3c;
position: relative;
text-indent: -9999px;
}
.article_menu div.no_lft_border {
border-left: 0px none transparent;
/*--background-position: 0 0 0 -394px;*/
margin: 0 0 0 -288px;
}
.article_menu img.round_lft {
position: absolute;
left: -1px;
top: -1px;
}
.article_menu img.round_rht {
position: absolute;
right: -1px;
top: -1px;
}
.article_menu h2 {
font: bold 15px/22px Bookman Old Style, Times New Roman, Times, serif;
font-weight: bold;
color: #b7b2a2;
line-height: 39px;
/*-text-indent: -9999px;-*/
}
Here is the corresponding php:
(i've only included part of it because sections 3 and 4 are the same without the image)
<div id="article_menu_container">
<!-- start first article_menu -->
<div class="article_menu">
<div class="no_rht_border"><img src="<?php bloginfo('template_url')?>/images/art_menu_hdr_lft_rou.png" width="19" height="41" class="round_lft" /><h2>SHOP BY PRODUCT:</h2></div>
<!-- end first article_menu -->
<!-- start second article_menu -->
<div class="article_menu">
<div class="no_lft_border"><img src="<?php bloginfo('template_url')?>/images/art_menu_hdr_rht_rou.png" width="15" height="41" class="round_rht" /><h2>SHOP BY COLOR:</h2></div>
Currently the container has four sections.. But each section is referencing the same header.
I successfully made it so the top two are positioned correctly, but the bottom two I am having difficulty with.
I am thinking that maybe I need to use a header graphic that is similar to graphics that change on click, in the way that the top of the header appears for one section, and the bottom appears for the other section.
I am not sure if the background position tag will work for this (as i tried), or to use a margin tag. However, it seems that I need to create a separate subsection in order to accomplish what I want to do.
Below is the current code:
#article_menu_container {
width: 622px;
float: left;
}
.article_menu {
font: bold 10px/22px Arial, Helvetica, sans-serif;
float: left;
text-align: center;
width: 311px;
}
.article_menu div {
background: url(../images/shopcardother.png) no-repeat;
/*--background-position: -110px 0;--*/
border: 1px solid #453e3c;
position: relative;
text-indent: -9999px;
}
.article_menu div.no_lft_border {
border-left: 0px none transparent;
/*--background-position: 0 0 0 -394px;*/
margin: 0 0 0 -288px;
}
.article_menu img.round_lft {
position: absolute;
left: -1px;
top: -1px;
}
.article_menu img.round_rht {
position: absolute;
right: -1px;
top: -1px;
}
.article_menu h2 {
font: bold 15px/22px Bookman Old Style, Times New Roman, Times, serif;
font-weight: bold;
color: #b7b2a2;
line-height: 39px;
/*-text-indent: -9999px;-*/
}
Here is the corresponding php:
(i've only included part of it because sections 3 and 4 are the same without the image)
<div id="article_menu_container">
<!-- start first article_menu -->
<div class="article_menu">
<div class="no_rht_border"><img src="<?php bloginfo('template_url')?>/images/art_menu_hdr_lft_rou.png" width="19" height="41" class="round_lft" /><h2>SHOP BY PRODUCT:</h2></div>
<!-- end first article_menu -->
<!-- start second article_menu -->
<div class="article_menu">
<div class="no_lft_border"><img src="<?php bloginfo('template_url')?>/images/art_menu_hdr_rht_rou.png" width="15" height="41" class="round_rht" /><h2>SHOP BY COLOR:</h2></div>