Word Styles to get two elements to share same background/border - ms-word

Within MS Word 2013 I am trying to create a text element plus a list underneath it, all wrapped inside a coloured border with background shading (see image). The attached image shows the text in plain form.
I would like to place a blue border around both the title and the list. I can achieve this by placing both objects within a 1x1 table and applying colouring rules to the cell, but semantically this seems bad (I'm from an HTML development background where it is very wrong!)
When I edit a Style rule to create the border/background, it works well until I create the list, then it goes badly wrong. Is it possible to achieve the output of the table cell approach by only using a style rule and no table?

After a day of experimentation, the closest I can get is by doing the following:
Create a style rule called Tips Heading based on Normal, then set it to be Bold with a blue background.
Create another style rule called Tips List based on List Paragraph, and set it to have a blue background.
Unfortunately the List cannot be indented because the background colour also indents. The border is also affected in this manner, so I ignored the border and indentation. It works really well and is semantically well structured.

Related

Miscoloured lines in rule-based layer styling in QGIS

I'm styling a vector layer of roads and have noticed that a small subset of lines appear to be going 'rogue' and ignoring their line colour styling. They still obey the line stroke and width style however but insist on being yellow instead of the desired colour.
I've added a separate rule for one of them and it definitely 'catches' the correct line segment and restyles it in every way EXCEPT for the colour which stubbornly remains yellow.
Can anyone provide me with any clues as to what is going on here?
That line (or lines) are "selected" - You have one of the selection tools active and have clicked on the line. See the manual for more details, you need to click on the clear selection tool
to remove it.

Tableau - Conditional format TEXT and CELL at the same time

I understand how to to color either the cell background or just the text, but I have not come across an example with both conditionally colored as Excel can do.
My requirement is to color the cell based on a value range and then make the text red/black/white based on a different metric. Ideally, if I could just override the 'smart black/white' text with red once and a while that would be nice.
Any examples of conditionally formatting both text and cell background at the same time out there?
A typical solution is to create different calculated fields that conditionally contain text or null depending on the circumstances. They should be mutually exclusive, in that if one has a value, the others are null. Put all three fields on your text/label shelf, and format each one as desired - say with a different color. Null text does not display. So you would have red, black and white fields in your label all the time, but only one would have content and display.
Its a little annoying, and I wish there were easier ways to dynamically control formatting, but it works well and is pretty easy when there are just 2 or 3 variants.

Background changes color when hovering

So I have a grid in Zkoss with a certain amount of columns. One the first row I place two labels which fill the first two columns (as expected).
I've written their style so that they don't have change color when you hover the mouse over them however one of the columns label is much bigger than the other and when I hover the mouse over the smaller label the area around which isn't filled by the text goes to white.
ZKFiddle example
I'm going insane around this as I'm simply unable of making that area have the same background as the label.
Like I already said in your duplicated question.
CSS is responsible and you just need to search with developer tools.
This update to your fiddle tooks me 2 min.
The changed thing :
.z-row:hover > .z-row-inner, .z-row:hover > .z-cell {background:red; !important}

Different color of rectangles (even/odd row)

I know how to color the full section (Section Expert - Color - Use Modulo Formula) but I also want to color rectangles in a row different. Well I think best way to explain this is an image:
http://i40.tinypic.com/2jd4wl.png
I made the layout using rectangles (hope they're called so in the english version)
is there any way to solve this? Maybe a possibility to set the background color of a ractangle by a formula?
I don't believe that drawing objects, including the box and line, support conditional colors in CR2008. Unfortunately, they also don't support conditional suppression so you can't just stack the objects and selectively suppress them to get the colors you want, either.
Other fields DO support conditional backgrounds, though. So you should be able to do away with the boxes altogether and just use the display fields (whether DB fields, formulas, whatever) to color the report. If you JUST want the colored boxes with no data in it, you can be sneaky and insert a blank text field and conditionally color the background (Right click on field -> "Format Text" -> "Border" tab -> "Background" -> Enter a conditional formula that returns a color). Bam, you've now got yourself a conditionally-colored box/rectangle.

IDE or plugin to add helpful graphics or illustrate code as-is?

I was staring at my code thinking how boring the text looks.
All I see is text, with no visualizable structure.
Visualizable structures would be awesome:
Background graphics such as 3D half-pipes on edge connecting the opening and closing brackets of loop scopes, nested in 3D to show how deep the loops are nested.
Wires with arrows along them showing where a goto statement points, with a code section highlight (or preview if out of viewport) of the target label.
Conditional blocks could be rendered to show the "true" code in a positive color and the "false" code in a negative color, and mousing over the background at the left edge could reveal a preview of the condition statement for that block (appended with "== true" or "== false" depending on the code context).
Icons for Types, that show up in front of variable names so you know what type they are.
Change the background of the method, displaying tiled locks or keys, depending on whether you type public or private in front of the method (a nice indicator of the default if you fail to specify either).
Is there anything out there that illustrates code like this?
I don't mean analytically generated graphics representing the code or algorthmic structure in some way. Rather, I mean something that actually illustrates the editable code in place.