Hi, here's what I'm trying to do. I have an empty div with a background image (3px wide set to repeat in the x direction), a heading and another empty div with the same background image set to repeat-x. How do I display all 3 elements inline horizontally such that the heading is centered and the left and right empty divs adjust their widths accordingly? I've attached a rough drawing showing what I'm currently getting and what I actually want.
http://i72.photobucket.com/alb...gee_13/block-align.jpg
Here's the code I've been trying.
HTML :
<div class="emptybgl"></div>
<h2 class="temp"><?php print $block->subject; ?></h2>
<div class="emptybgr"></div>
CSS :
#content #sidebar-right .block div.emptybgl {
background: #FFFFFF url(images/dotbg.png) repeat-x scroll 0%;
width: auto;
height: 27px;
}
#content #sidebar-right .block div.emptybgr {
background: #FFFFFF url(images/dotbg.png) repeat-x scroll 0%;
width: auto;
height: 27px;
}
#content #sidebar-right .block h2.temp {
margin: 0 0 0 0px;
}
Please help. I'd really appreciate it. Thanks in advance.
Kirk
http://i72.photobucket.com/alb...gee_13/block-align.jpg
Here's the code I've been trying.
HTML :
<div class="emptybgl"></div>
<h2 class="temp"><?php print $block->subject; ?></h2>
<div class="emptybgr"></div>
CSS :
#content #sidebar-right .block div.emptybgl {
background: #FFFFFF url(images/dotbg.png) repeat-x scroll 0%;
width: auto;
height: 27px;
}
#content #sidebar-right .block div.emptybgr {
background: #FFFFFF url(images/dotbg.png) repeat-x scroll 0%;
width: auto;
height: 27px;
}
#content #sidebar-right .block h2.temp {
margin: 0 0 0 0px;
}
Please help. I'd really appreciate it. Thanks in advance.
Kirk