{"id":3170,"date":"2016-03-30T13:16:58","date_gmt":"2016-03-30T13:16:58","guid":{"rendered":"https:\/\/email.uplers.com\/blogs\/?p=3170"},"modified":"2020-08-08T16:48:03","modified_gmt":"2020-08-08T11:18:03","slug":"how-to-fix-landing-page-height-alignment-issues","status":"publish","type":"post","link":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/","title":{"rendered":"How to Fix Landing Page Height &#038; Alignment Issues"},"content":{"rendered":"<p>When most designers juggle through placing various components on a single page, they face one of the most pestering problems, creating equal height in the layout. To fix this hassle, Uplers walk you through some of the <a href=\"https:\/\/email.uplers.com\/landing-page-design-coding-services\/\" target=\"_blank\" rel=\"noopener noreferrer\">landing page<\/a> disputes and how to fix them by these landing page tips. Let\u2019s get started.<\/p>\n<h2>Landing Page Tips:<\/h2>\n<h3>#Equal Height using Flex CSS:<\/h3>\n<p>The <span style=\"text-decoration: underline;\"><em>Flexbox<\/em><\/span>\u00a0Layout module was designed to solve the problems of displaying equal height using CSS. It is an efficient and flexible way to manage probably all types of layouts. It provides almost no time gap between initially wrong and correctly laid out layout look. In the case of JavaScript solution, the document downloading takes time, after that download the corresponding JS file if there are any, and download images in the blocks.<\/p>\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-17425 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/landing-page-design-coding-services\/\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"200\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/02\/landing-page.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/02\/landing-page.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/02\/landing-page-300x75.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/02\/landing-page-768x192.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/02\/landing-page-624x156.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/div><\/div>\n<p>Flexbox on the other hand is instant as JavaScript takes seconds. Though this JavaScript case is appropriate for those who use browsers that do not support Flexbox. However, Flexbox kills the necessity of selecting specific content type, restricting the number of words, cut sentences of mid flow, etc. Flexbox comes with the benefit of providing flexibility of content as it calculates the space available inside its containers.<\/p>\n<p>This works flawlessly in the latest versions of Chrome, Android, Safari, Opera, Firefox, and Internet Explorer 10+.<\/p>\n<h2>#Equal Height using Margin &amp; Padding:<\/h2>\n<p>Achieving equal height columns with just CSS is such a common scenario with a few simple solutions. In projects that follow a standard content-sidebar layout, helps to have both of the containers seemingly stretch to the bottom of the page.<\/p>\n<p>This method uses margins, paddings, and overflow to force the columns to be equal heights. The methodology entails setting a big enough padding at the bottom of each floated element, and countering it with an equal negative margin at the bottom of the same elements. The trick is to set the overflow on the parent container to hidden. This works perfectly in the latest versions of Chrome, Android, Safari, Opera, Firefox, and Internet Explorer 9+.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3173 size-full\" title=\"landing page tips-LPP\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP.jpg\" alt=\"landing page tips-LPP\" width=\"800\" height=\"610\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-300x229.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-768x586.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-184x140.jpg 184w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-624x476.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<h2>#Vertical Align Middle using Flexbox:<\/h2>\n<p>The lack of good ways to vertically center elements in CSS has been a dark blemish on its reputation for pretty much its entire existence.<\/p>\n<p>What makes the matter worse is the techniques that do work for vertical centering are obscure and unintuitive, while the obvious choices (like, vertical-align:middle) never seem to work when you need them.<\/p>\n<p>The current landscape of vertical center ranges from negative margins to display:table-cell to ridiculous hacks involving full-height pseudo-elements. Though these techniques sometimes get the job done, but they don\u2019t seem to work in every situation. What if the things you want to center is of unknown dimensions and isn\u2019t the only child of its parent? What if you could use the pseudo-element hack, but you need those pseudo-elements for something else?<\/p>\n<p>With Flexbox, you can stop worrying. You can align anything (vertically or horizontally) quite painlessly with the align-items, align-self, and justify-content properties.<\/p>\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-17429 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/email-template-production-services\/\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"192\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/01\/Email-template-production-768x192-1.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/01\/Email-template-production-768x192-1.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/01\/Email-template-production-768x192-1-300x75.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2020\/01\/Email-template-production-768x192-1-624x156.jpg 624w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/div><\/div>\n<h2>#Vertical Align Middle using Table cell:<\/h2>\n<p>CSS tables might be fine for you or it might not as tables do render a bit differently than just a regular block-level div does. For instance the 100% width thing, a table will only stretch to be as wide as it needs to for the content inside it; whereas by default a block level element will expand to the width of its parent automatically.<\/p>\n<p>If we set up a &#8220;ghost&#8221; element inside the parent that is 100% height, then we vertical-align: middle both and the element to be centered will attain the same effect.<\/p>\n<p>Since the vertical-align property works with table cells we set the parent div to be a CSS table and we set the child div as a table cell. We can then safely use vertical-align: middle to vertically center the contents of the child div.<\/p>\n<p>This method works with multiple lines of text and the container div will grow dynamically with the content. Unfortunately it doesn&#8217;t work with IE6 or IE7 without a fix.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3174 size-full\" title=\"landing page design tips-LPP1\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP1.jpg\" alt=\"landing page design tips-LPP1\" width=\"800\" height=\"610\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP1.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP1-300x229.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP1-768x586.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP1-184x140.jpg 184w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP1-624x476.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>The alignment and setting height of your landing page will be easeful after the implication of these solutions.<\/p>\n<p><em>However, if you\u2019re juggling through more landing page related issues, then Uplers can help you <a href=\"https:\/\/email.uplers.com\/custom-email-templates-design-coding\/\">design &amp; code<\/a> beautiful landing pages. Visit our <\/em><em>order page<\/em><em> today and get blessed with flawless landing pages.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When most designers juggle through placing various components on a single page, they face one of the most pestering problems, creating equal height in the layout. To fix this hassle, Uplers walk you through some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started. Landing Page [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3171,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,10],"tags":[456,457,321,455],"class_list":["post-3170","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-delivery","category-email-marketing","tag-landing-page-design-tips","tag-landing-page-issues","tag-landing-page-problems","tag-landing-page-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Best Ways To Fix Landing Page Height &amp; Alignment Issues<\/title>\n<meta name=\"description\" content=\"Here Email Uplers sharing some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Ways To Fix Landing Page Height &amp; Alignment Issues\" \/>\n<meta property=\"og:description\" content=\"Here Email Uplers sharing some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/\" \/>\n<meta property=\"og:site_name\" content=\"Email Uplers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/email.uplers\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-30T13:16:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-08T11:18:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge-540x282.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"282\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kevin George\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:site\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kevin George\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/\",\"name\":\"Best Ways To Fix Landing Page Height & Alignment Issues\",\"isPartOf\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge.jpg\",\"author\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/7ffa431167e8be5eb07b050cd5c663fa\"},\"description\":\"Here Email Uplers sharing some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started.\",\"breadcrumb\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#primaryimage\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge.jpg\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge.jpg\",\"width\":\"1170\",\"height\":\"470\",\"caption\":\"landing page tips-LPP LArge\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/email.uplers.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix Landing Page Height &#038; Alignment Issues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\",\"url\":\"https:\/\/email.uplers.com\/blog\/\",\"name\":\"Email Uplers\",\"description\":\"Email Marketing Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/email.uplers.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/7ffa431167e8be5eb07b050cd5c663fa\",\"name\":\"Kevin George\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2019\/03\/Img-96x96.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2019\/03\/Img-96x96.png\",\"caption\":\"Kevin George\"},\"description\":\"Kevin is the Head of Marketing at Email Uplers, one of the fastest-growing full-service email marketing companies. He is an email enthusiast at heart and loves to pen down email marketing content. You can reach him at kevin.g@uplers.com or connect with him on LinkedIn.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/kevin-george-email\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Best Ways To Fix Landing Page Height & Alignment Issues","description":"Here Email Uplers sharing some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/","og_locale":"en_US","og_type":"article","og_title":"Best Ways To Fix Landing Page Height & Alignment Issues","og_description":"Here Email Uplers sharing some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started.","og_url":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/","og_site_name":"Email Uplers","article_publisher":"https:\/\/www.facebook.com\/email.uplers\/","article_published_time":"2016-03-30T13:16:58+00:00","article_modified_time":"2020-08-08T11:18:03+00:00","og_image":[{"width":540,"height":282,"url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge-540x282.jpg","type":"image\/jpeg"}],"author":"Kevin George","twitter_card":"summary_large_image","twitter_creator":"@email_uplers","twitter_site":"@email_uplers","twitter_misc":{"Written by":"Kevin George","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/","url":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/","name":"Best Ways To Fix Landing Page Height & Alignment Issues","isPartOf":{"@id":"https:\/\/email.uplers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#primaryimage"},"image":{"@id":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#primaryimage"},"thumbnailUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge.jpg","author":{"@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/7ffa431167e8be5eb07b050cd5c663fa"},"description":"Here Email Uplers sharing some of the landing page disputes and how to fix them by these landing page tips. Let\u2019s get started.","breadcrumb":{"@id":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#primaryimage","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge.jpg","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2016\/03\/LPP-LArge.jpg","width":"1170","height":"470","caption":"landing page tips-LPP LArge"},{"@type":"BreadcrumbList","@id":"https:\/\/email.uplers.com\/blog\/how-to-fix-landing-page-height-alignment-issues\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/email.uplers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix Landing Page Height &#038; Alignment Issues"}]},{"@type":"WebSite","@id":"https:\/\/email.uplers.com\/blog\/#website","url":"https:\/\/email.uplers.com\/blog\/","name":"Email Uplers","description":"Email Marketing Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/email.uplers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/7ffa431167e8be5eb07b050cd5c663fa","name":"Kevin George","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2019\/03\/Img-96x96.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2019\/03\/Img-96x96.png","caption":"Kevin George"},"description":"Kevin is the Head of Marketing at Email Uplers, one of the fastest-growing full-service email marketing companies. He is an email enthusiast at heart and loves to pen down email marketing content. You can reach him at kevin.g@uplers.com or connect with him on LinkedIn.","sameAs":["https:\/\/www.linkedin.com\/in\/kevin-george-email\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/3170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/comments?post=3170"}],"version-history":[{"count":20,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/3170\/revisions"}],"predecessor-version":[{"id":21534,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/3170\/revisions\/21534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media\/3171"}],"wp:attachment":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media?parent=3170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/categories?post=3170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/tags?post=3170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}