Hello I'm trying to create a label in QGIS that is formatted similar to the "table" styled yellow labels in the photo below. The attached image was from a map created in AutoCAD. I would like the labels linked to my attribute table which includes all that info.

Table style label

I tried to use an expression to create a custom label but it is quite limiting when it comes to formatting. Does anyone have any ideas on how I could do this?

Name || ': ' || Depth_1 || '\n' || 'CL ' || cl ||'(mg/L)' || '\n' || Name || ': ' || Depth_2 || '\n' || 'S04 ' || s04 ||'(mg/L)'

My attempt at making "table label"

  • It looks like you've already solved your problem as well as QGIS will allow. One suggestion, would be to add some spaces to the shorter lines so the underline formatting is the same length on each line. And you could add the vertical line symbol | to imitated table cell dividers. – csk Feb 13 '18 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.