New table layout with ROW and CELL tag

Posted by Helmut_pdorf on 05 Oct 2007 17:57, last edited by Helmut_pdorf on 13 Feb 2014 07:31

: cell row rowspan table table_layout

rating: +7

Description

A nice way to add advanced layout control using the [[table]] tag. The example uses the style attribute for the whole table and particular cells to adjust layout. Using [[row]] and [[cell]] tag.

I found it in the http://snippets.wikidot.com/ ( search for tag = table layout …) a very good example !

I tried here in the example to fullfill the request for row-span over 2 rows with one cell beside ( cell 3 here ):
I solved it by using a 2. table in a single cell with 2 rows with one cell)

1. the code of the example ( and later the action)

[[table style="margin: 0 10px;"]]
[[row]]
[[cell style="padding: 10px; background-color: #DDDDEE; border: 1px solid silver; width: 40%;"]]
+++ example cell
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ips.....
....si. Nulla libero.
[[/cell]]
[[cell style="vertical-align: top; padding: 10px; background-color: #DDEEDD; border: 1px solid silver;width: 40%;"]]
+++ extra example
bLA bLA ! Vivamus pharetra posuere sapien. Nam .... 
blandit sed, blandit a, eros.
[[/cell]]
[[/row]]
[[row]]
[[cell style="vertical-align: top; padding: 0px; margin: 0 0px ;background-color: #DDEEDD; border: 1px solid silver"]]
[[table style="vertical-align: top; text-align: top; padding: 0px; margin: 0 0px; width: 100% ; high= 100%"]]
[[row]]
[[cell style="vertical-align: top; text-align: middle; margin: 0 0px; padding: 10px; background-color: #DDEEDD; border: 1px solid "]]
+++ another left cell (1)
Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. \
.................................. eros.
[[/cell]]
[[/row]]
[[row]]
[[cell style="vertical-align: top ; text-align: top; margin: 0 0px; padding: 10px; background-color: #DDEEDD; border: 1px solid "]] 
+++ cell (2) 
Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit \ 
liquam .....iaculis. 
[[/cell]]
[[/row]]
[[/table]]
[[/cell]]
[[cell style="vertical-align: top ; text-align: middle; padding: 10px; background-color: #DDDDEE; border: 1px solid silver"]]
+++ right cell 3 alone 
Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
* Bulleted list item 1
* Bulleted list item 2
Quisque facilisis erat a dui. ............
........sapien, non aliquet massa pede eu diam. Aliquam iaculis. 
[[/cell]]
[[/row]]
[[/table]]

In action

example cell

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.

extra example

bLA bLA ! Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.

another left cell (1)

Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.

cell (2)

Nam magna enim, accumsan eu, blandit sed, blandit a, eros.

Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis.

right cell 3 alone

Nam magna enim, accumsan eu, blandit sed, blandit a, eros.

  • Bulleted list item 1
  • Bulleted list item 2

Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis.


Copied from http://snippets.wikidot.com/ by Helmut_pdorf

Further Reading:
Layout with tables
tabs

See also this HowTo:import-simple-excel-tables-into-wikidot which has now a VBA utility to convert an Excel table to this [[table]]…[[row]]…[[cell]] format.

Vertical alignement of cell 3
gerdami gerdami 07 Oct 2007 18:16

Cell 3 is currently "centered vertical".
How can we align TOP or BOTTOM ?

by gerdami gerdami , 07 Oct 2007 18:16
Re: Vertical alignement of cell 3
hartnell hartnell 07 Oct 2007 18:32

[[cell style="vertical-align:top"]] or bottom. —hartnell

by hartnell hartnell , 07 Oct 2007 18:32
Re: Vertical alignement of cell 3
Helmut_pdorf Helmut_pdorf 07 Oct 2007 18:45

I changed it now and iot loks a little betteer - but the padding at the top of the second row - first left cell i cannot put away..
Hlemut


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 07 Oct 2007 18:45
name that color
scottplan scottplan 17 Nov 2007 15:55

I'd like a custom table to have the same feel as the rest of my tables.

so what's the code for this background color?

Thanks for any help.

S.

by scottplan scottplan , 17 Nov 2007 15:55
Re: name that color
Phil Chett Phil Chett 17 Nov 2007 19:06

#eee
#eeeeee
rgb: 238 238 238

If you use Fire fox there's a couple og handy little tools for doing stuff like this.

ColorZilla color picker is well worth a look

by Phil Chett Phil Chett , 17 Nov 2007 19:06
Re: name that color
scottplan scottplan 19 Nov 2007 05:34

Thanks Phil!

by scottplan scottplan , 19 Nov 2007 05:34
The Gap
Micharjuna Micharjuna 21 Mar 2008 01:46

How might one remove the gap at the top of Row 2, Column 1? I am trying to implement this, and I really need to get rid of that gap!

by Micharjuna Micharjuna , 21 Mar 2008 01:46
Re: The Gap
scottplan scottplan 24 Mar 2008 03:52

I need a visual. Can you post a screenshot or a link to what you're talking about?

S.

by scottplan scottplan , 24 Mar 2008 03:52
Re: The Gap
gerdami gerdami 24 Mar 2008 10:00

Use

[[cell style="vertical-align:top;"]]

… and avoid the use of +, ++, +++ heading levels which might give extra line space before and after the text. Use bold or [[size]] instead.
by gerdami gerdami , 24 Mar 2008 10:00
TorridLife TorridLife 13 Feb 2014 01:22

How can you create two separate tables side by side?


torridlife_zps285ea7ed.jpg
by TorridLife TorridLife , 13 Feb 2014 01:22
Helmut_pdorf Helmut_pdorf 13 Feb 2014 07:33

See answer to same question in the forum: http://community.wikidot.com/forum/t-775804/comments/show?from=activities#post-1965628

or use 2 tables in an overall table with only 2 cells.. ( as above the example do it )


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 13 Feb 2014 07:33

Related articles

Comments

Vertical alignement of cell 3
gerdami gerdami 07 Oct 2007 18:16

Cell 3 is currently "centered vertical".
How can we align TOP or BOTTOM ?

by gerdami gerdami , 07 Oct 2007 18:16
Re: Vertical alignement of cell 3
hartnell hartnell 07 Oct 2007 18:32

[[cell style="vertical-align:top"]] or bottom. —hartnell

by hartnell hartnell , 07 Oct 2007 18:32
Re: Vertical alignement of cell 3
Helmut_pdorf Helmut_pdorf 07 Oct 2007 18:45

I changed it now and iot loks a little betteer - but the padding at the top of the second row - first left cell i cannot put away..
Hlemut


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 07 Oct 2007 18:45
name that color
scottplan scottplan 17 Nov 2007 15:55

I'd like a custom table to have the same feel as the rest of my tables.

so what's the code for this background color?

Thanks for any help.

S.

by scottplan scottplan , 17 Nov 2007 15:55
Re: name that color
Phil Chett Phil Chett 17 Nov 2007 19:06

#eee
#eeeeee
rgb: 238 238 238

If you use Fire fox there's a couple og handy little tools for doing stuff like this.

ColorZilla color picker is well worth a look

by Phil Chett Phil Chett , 17 Nov 2007 19:06
Re: name that color
scottplan scottplan 19 Nov 2007 05:34

Thanks Phil!

by scottplan scottplan , 19 Nov 2007 05:34
The Gap
Micharjuna Micharjuna 21 Mar 2008 01:46

How might one remove the gap at the top of Row 2, Column 1? I am trying to implement this, and I really need to get rid of that gap!

by Micharjuna Micharjuna , 21 Mar 2008 01:46
Re: The Gap
scottplan scottplan 24 Mar 2008 03:52

I need a visual. Can you post a screenshot or a link to what you're talking about?

S.

by scottplan scottplan , 24 Mar 2008 03:52
Re: The Gap
gerdami gerdami 24 Mar 2008 10:00

Use

[[cell style="vertical-align:top;"]]

… and avoid the use of +, ++, +++ heading levels which might give extra line space before and after the text. Use bold or [[size]] instead.
by gerdami gerdami , 24 Mar 2008 10:00
TorridLife TorridLife 13 Feb 2014 01:22

How can you create two separate tables side by side?


torridlife_zps285ea7ed.jpg
by TorridLife TorridLife , 13 Feb 2014 01:22
Helmut_pdorf Helmut_pdorf 13 Feb 2014 07:33

See answer to same question in the forum: http://community.wikidot.com/forum/t-775804/comments/show?from=activities#post-1965628

or use 2 tables in an overall table with only 2 cells.. ( as above the example do it )


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 13 Feb 2014 07:33
Footnotes
. Version 2
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /