From: RafiBomb Date: Thu, 21 Apr 2016 05:31:14 +0000 (-0700) Subject: adds wrapper documentation X-Git-Tag: v2.1.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35cc9b1857413d47eece4f200549cd85a90615fb;p=thirdparty%2Ffoundation%2Ffoundation-emails.git adds wrapper documentation --- diff --git a/docs/pages/wrapper.md b/docs/pages/wrapper.md new file mode 100644 index 00000000..7ec4056f --- /dev/null +++ b/docs/pages/wrapper.md @@ -0,0 +1,65 @@ +--- +title: Wrapper +description: Wrapper creates the necessary structure to wrap elements so that full width backgrounds can applied. +tags: + - full width + - fliud + - header + - footer +--- + +## Basics + +When using [Inky](inky.html) HTML, the `` tag will create a ``, ``, `
` structure needed to create consistant full width backgrounds. You can add classes to the wrapper to targed CSS properties on it or target elements within it. The `.wrapper-inner` class is available to add padding to the wrapper. + +```inky_example + + content + +``` + +## Full (fluid) width header or footer + +Creating a fluid header with the `` component is pretty straight forward. Wrapping a `` will keep your content bound to the width of the container. Add a class to the `` to add a background color. + +```inky_example + + + + + + + + + +

HEADER

+
+
+
+
+``` + +Using this structure outside of the container will yeild a fluid width background that expands to the width of the email client's viewport. + +