Hi
I've an issue with the dbr.keepwithnext command.
I've created a simple procedure:
select 'dbr.keepwithnext',20;
select 'dbr.text', (select count(*) from hilmark.tblsalesinv_j a where year(a.tblSalesInv_Date) = YEAR(CURDATE()) AND MONTH(a.tblSalesInv_Date) = MONTH(CURDATE())), 'circle1';
select 'dbr.text', (select count(*) from hilmark.tblsalesinv_j a where year(a.tblSalesInv_Date) = YEAR(CURDATE()) AND MONTH(a.tblSalesInv_Date) = MONTH(CURDATE())), 'circle1';
And I've also added a css entry in the user/userstyle.css file as follows:
.circle1 {
background: radial-gradient( circle, red, white);
background-color: red;
border: 2px solid white;
border-radius: 50%; /* one half of ( (border * 2) + height + padding ) */
box-shadow: 1px 1px 1px black;
color: white;
font: bold 50px Helvetica, Verdana, Tahoma;
height: 200px;
width: 200px;
margin: 40px;
text-align: center;
vertical-align: middle;
display: table-cell;
align-items: centre;
}
So what I'm doing is creating a couple of circle and placing the value returned from a query in the centre of the circle.
When I don't use dbr.keepwithnext the circles are correct and the value is in the centre. However when I use dbr.keepwithnext the values are centred horizontally but vertically they are placed at the top edge of the circle.
I wish to use dbr.keepwithnext to set the gap between the circles and control how many are placed side-by-side.
Hope you follow that.
Any thoughts?
Jake