Two-column, multiple-row CSS layout with special requirements - html

The following layout gives me headaches. No tables should be used and the second column must be a single element containing all the rows. Rows should start at the same height across the two columns. Both columns are fluid with a fixed ratio.
How would I achieve this using HTML and CSS? I would rather prefer a semantically elegant solution without any JavaScript.
+--------++------------------------+
| Row 1 || Row 1 |
| || |
+----------------------------------+
| Row 2 || Row 2 |
| || xxxxxxxxxxx |
| || xxxxxxx |
| || xxxxxxxx |
+----------------------------------+
| Row 3 || Row 3 |
| xxxx || |
| xxxxx || |
| xx || |
+----------------------------------+
| Row 4 || Row 4 |
| xxxxx || xxxxxxxxxxxxx |
| || xxxxxxxx |
| || |
+--------++------------------------+
Why does the second column have to be a single element containing all rows?
I need to apply a box-shadow enclosing the whole column height.
box-shadow: 0 0 20px rgba(0,0,0,.3);

Related

MKDocs Colspan in Table

I am trying to use colspan in a table in mkdocs
When I set the table up, with the same about of cells per row in the row that has the colspan, the table renders, but I have empty cells to the right:
| | | | Version {: colspan=5} | | | |
|-------------------------|---|-------|:-----------------------:|:-----:|:-----:|:-----:|
| **TITLE** {: rowspan=5} | | **E** | **F** | **G** | **H** | **I** |
| A | X | X | | | |
| B | X | X | X | | |
| C | | | X | X | X |
| D | | | X | X | X |
result:
If I remove the cells that should be filled using the colspan, the table doesn't render at all (I have to post a screenshot of the code because it gets half rendered as a table):
result:
Any suggestions as to how I can get teh colspan option to work correctly would be greatly appreciated. TIA

mySQL: order by Parent and Child according to Weight

I have a "category" table like this:
+------+---------++---------+
| id | parent || weight |
+------+---------++---------+
| 1 | 0 || 0 |
| 2 | 1 || -1 |
| 3 | 1 || -2 |
| 4 | 2 || 0 |
| 5 | 1 || 1 |
| 6 | 5 || 0 |
| 7 | 5 || 1 |
+------+---------++---------+
How can I ORDER BY and SELECT statement to get the order like this:
1 5 7 6 2 4 3
in the first level every category in main branch (parent=1) get the order by their weights, while they have their children behinds.
thank You and sorry for my eng

How to retrieve blank records using talend integration

I want to retrieve blank records from excel file.
Records are:
+----+------+
| id | name |
+----+------+
| 1 | a |
+----+------+
| 2 | b |
+----+------+
| 3 | |
+----+------+
| 4 | d |
+----+------+
| | e |
+----+------+
| 6 | f |
+----+------+
Here I want to retrieve 3rd and 5th record.
Can anyone please give me an idea.
I guess that your blank records dont contain space " " .Try to use tFilterRow and this conditions :
input_row.id == null || input_row.name == null
In case that columns are nullable. Otherwise:
input_row.id.equals("") || input_row.name.equals("")
i have tried this
using t filter row tried to find blank records.

join select and count using codeigniter and mysql

I have three table as follow:
tblHelpdeskType (It need to join with tblHelpdesk)
HelpdeskTypeID | HelpdeskType | Current
1 | Not Specified | -1
2 | Feature Request | -1
3 | Account Request | -1
4 | Permission Requested | -1
5 | Bug | -1
tblHelpdesk (primary table)
HelpdeskID||HelpdeskTypeID||HelpdeskPriorityID||RequestBy||DateTimeStamp||HelpdeskStatusID
1 || 1 || 2 ||sothorn || 12/12/12 || 1
2 || 3 || 1 ||Chantra || 12/12/12 || 1
3 || 1 || 1 ||Lyhong || 12/12/12 || 2
4 || 3 || 1 ||bongthom || 12/12/12 || 1
tblHelpdeskStatus (It need to join with tblHelpdesk )
HelpdeskStatusID | HelpdeskStatus
1 | Pending
2 | View
3 | In treatment
4 | Closed
Result that I need is :
Type | Pending | View | In treatment | Closed |
----------------------------------------------------------------|
Not Specified | 1 | 1 | | |
----------------------------------------------------------------|
Feature Request | 2 | | | |
----------------------------------------------------------------|
Account Request | | | | |
----------------------------------------------------------------|
Permission Requested | | | | |
----------------------------------------------------------------|
Bug | | | | |
----------------------------------------------------------------|

SSRS Indicator affecting group by

I am filtering a tablix and then grouping both rows (total of 3) and columns (total of 2), with no detail section. One row only has an applicable value for one of the grouped columns. The group by places all of the values in the correct cell. However, if I add an indicator, the row without an applicable value for the column inherits data from another row. Adding the field that the indicator is based on does not make this change. This row (and others that are working correctly) has a null value for the indicator in the first column, IE it shouldn't show up.
Dataset:
+---------+---------------+-----------+---------+
| Family | Description | Value |Indicator|
+---------+---------------+-----------+---------+
| A | Something | 5 | 2 |
| A | Another | 2 | 1 |
| B | Yearly Plans | 63 | null |
| B | Weekly Plans | 4 | 2 |
| B | Yearly Qual | .4 | 1 |
| B | Weekly Qual | .2 | 1 |
| B | Purchased % | .76 | null |
+---------+---------------+-----------+---------+
Filter tablix for Family = B
Row Group: =iif(Field!Description.Value like "Plans","Plans",iif(Field!Description.Value like "Qual","Qualifying",Field!Description.Value))
Column Group: iif(Field!Description.Value like "Yearly*","YTD","Weekly")
Result without indicators:
+---------------+------------+----------+
| Description | Weekly | YTD |
+---------------+------------+----------+
| Qualifying | .2 | .4 |
| Plans | 4 | 63 |
| Purchased % | .76 | |
+---------------+------------+----------+
Result with indicators (Based on indicator field):
+---------------+--------+---+--------+---+
| Description | Weekly | | YTD | |
+---------------+--------+---+--------+---+
| Qualifying | .2 | - | .4 | - |
| Plans | 4 | + | 63 | |
| Purchased % | .76 | | .4 | - |
+---------------+------------+--------+---+
What it SHOULD be:
+---------------+--------+---+--------+---+
| Description | Weekly | | YTD | |
+---------------+--------+---+--------+---+
| Qualifying | .2 | - | .4 | - |
| Plans | 4 | + | 63 | |
| Purchased % | .76 | | | |
+---------------+------------+--------+---+
I have patched the current problem by unioning in a Yearly Purchased % row with null values, but there must be something else going one. Is there something in how indicator's behave that would add values that aren't part of a group?
I realized the same thing, could it be a bug in SSRS indicators, as workaround, you can write an expression inside the cell to check against another cell and investigate if there is data then show the value inside the cell, if not then write nothing.
like: =iif(count(Fields!Field1.Value)>1,"",Fields!Field2.Value)