sohopigeon
06-28-2010, 05:54 PM
Hi All,
my next dilemma (following http://codingforums.com/showthread.php?t=199070) having created my new page template to include Page Boxes, I want to be able to set a specific width for each individual box rather than a single width for all boxes.
here's the relevant bit from my css:
#page-box-wrapper {}
.page-box {
width:150px;
float:left;
margin:40px 0px 20px 0px;
}
.page-box img {
float:left;
margin:6px 10px 5px 0px;
padding:1px 1px;
background:#EEE;
border:1px solid #CCC;
}
.page-box h3 {
margin-bottom:20px;
margin-top:0px;
}
.page-box ul li {
margin:0px 0px 5px 0px;
padding:0px 0px 0px 20px;
line-height:25px;
display:block;
list-style-type: none;
font-size:12px;
color:#767676;
background:url(images/widget-list-bg.gif) scroll transparent no-repeat;
background-position:0px 8px;
}
.page-box ul li a {
padding:4px 0px;
font-style:italic;
letter-spacing:1px;
}
.page-box ul li a:hover {
border-bottom:1px dotted #767676;
}
.page-box ul li ul {
margin-top:10px;
}
and, not sure this helps but here's the code from the php:
<div id="page-boxes-wrapper">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Page Boxes") ) : ?>Default right sidebar stuff here?
<?php endif; ?>
<div style="clear:both"></div><!-- CLEAR THE FLOATS -->
</div><!-- /page-boxes-wrapper -->
So rather than have a width of 150px, to have widths of 28%, 28% and 44% or 126px, 126px, 198px.
Not sure of the best way to approach this...
Help and thoughts appreciated
Thank you
my next dilemma (following http://codingforums.com/showthread.php?t=199070) having created my new page template to include Page Boxes, I want to be able to set a specific width for each individual box rather than a single width for all boxes.
here's the relevant bit from my css:
#page-box-wrapper {}
.page-box {
width:150px;
float:left;
margin:40px 0px 20px 0px;
}
.page-box img {
float:left;
margin:6px 10px 5px 0px;
padding:1px 1px;
background:#EEE;
border:1px solid #CCC;
}
.page-box h3 {
margin-bottom:20px;
margin-top:0px;
}
.page-box ul li {
margin:0px 0px 5px 0px;
padding:0px 0px 0px 20px;
line-height:25px;
display:block;
list-style-type: none;
font-size:12px;
color:#767676;
background:url(images/widget-list-bg.gif) scroll transparent no-repeat;
background-position:0px 8px;
}
.page-box ul li a {
padding:4px 0px;
font-style:italic;
letter-spacing:1px;
}
.page-box ul li a:hover {
border-bottom:1px dotted #767676;
}
.page-box ul li ul {
margin-top:10px;
}
and, not sure this helps but here's the code from the php:
<div id="page-boxes-wrapper">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Page Boxes") ) : ?>Default right sidebar stuff here?
<?php endif; ?>
<div style="clear:both"></div><!-- CLEAR THE FLOATS -->
</div><!-- /page-boxes-wrapper -->
So rather than have a width of 150px, to have widths of 28%, 28% and 44% or 126px, 126px, 198px.
Not sure of the best way to approach this...
Help and thoughts appreciated
Thank you