SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Landing Pages 101 or:
Breaking Sitecore for fun and profit
What we talk about when we talk about landing pages #1:
landing pages that tell a story
What we talk about when we talk about landing pages #2:
landing pages that convert
The basic problem with Sitecore (in terms of Landing Pages)
customized, marketing campaign
driven landing pages
a template-based
CMS
≠
So... what can we do to get from point A (templates) to
point B (customized landing pages?)
this!!
Douglas College’s CSS situation
Using the magic of CSS overrididing to do whatever we want
in a template-based CMS:
styles.css (the base styles for the site)
custom-lp.css (base styles for a custom
landing page, by me)
CSS (in <style> tags) & HTML
directly in the content editor (by you)
is overridden by
is overridden by
A word of caution
The nuts & bolts: how custom-lp.css works
custom-lp.css is a framework, not a set of (visual) styles. It defines the “bones” of the
landing pages we create.
1) Defines a class, .custom, which sits inside the template’s main containers, and removes
the padding provided by them. Effectively allows you to start your designs at (the content
sections) coordinates 0, 0, instead of 20px in to the right.
2) Defines a second class, .custom-container, with no padding, margins, width or height.
This is where all your HTML will go.
3) Defines a class, .custom-row, which is 100% of the container’s width wide and is
designed to contain column classes
4) Defines a set of column classes which have different, proportional widths.
Columns sit beside each other in .custom-rows.
The basic setup:
<div class=”custom”>
<div class=”custom-container”>
<div class=”custom-row”>
<div class=”custom-col custom-col-2”>
<p>This is one column</p>
</div>
<div class=”custom-col custom-col-2”>
<p>This is one column</p>
</div>
</div>
</div>
</div>
.custom {
width: 999px;
margin-left: -2%;
/*removes padding of parent, .content_section*/
margin-top: -31px;
/*can be in px here bc the header is consistenly 172px high
until the mobile breakpoint)*/
margin-bottom: -2.6%;
/*there really is no rhyme or reason as to why these numbers
work*/
z-index: 999;
}
.custom-container {
} /*yes it really does nothing, but it’s useful for
full-bleed backgrounds*/
.custom-row {
margin: 0% 0% 2% 0%;
/*padding on bottom only to space between rows. spacing be-
tween cols is below*/
clear:both;
}
.custom-col {
margin: 0% -0.32% 0% 0%;
padding: 1%;
display: inline-block;
vertical-align: top;
}
.custom-col-2 {
width: 50%;
}
In the content editor: From custom-lp.css:
Classes available to you in custom-lp.css
.custom - always use this
.custom-container - always use this, too. useful for full-bleed backgrounds sometimes.
.custom-row - a horizontal grouping of columns*.
by default as a margin of 2% on the bottom.
provides clearing** for columns.
.custom-col - the basic display style for a column. always use in conjunction with one of the
below column classes***.
.custom-col-1 - gives the .custom-col a width of 25% of the container
.custom-col-2 - gives the .custom-col a width of 50% of the container
.custom-col-3 - gives the .custom-col a width of 75% of the container
.custom-col-4 - gives the .custom-col a width of 100% of the container
.custom-col-1third - gives the .custom-col a width of 33% of the container
.custom-col-2third - gives the .custom-col a width of 66% of the container
.custom-pull-right - floats a single column to the right-hand side of its container.
* - You can have columns that total up to more than 100% of the width of a .custom-row. They’ll just fall below.
** - as in clear: both;
*** - all columns get display: inline-block; from this. inline-block is actually a buggy CSS component and occasionally gives
hairline spacing between elements; however better alternatives (flexbox) are not IE9 compatible.
But what about mobile?
custom-lp.css provides overrides for all the classes listed below for 3 breakpoints:
Desktop: @media (min-width:767px)
Tablets: @media only screen and (min-width: 767px)
and (max-width: 1080px)
Mobile devices: @media only screen and (max-width:767px)
Depending on what you’re doing, though, you may need to override the default
behaviour of custom-lp.css for certain column widths on your page.
The basic setup, revisited:
<style>
.custom {
background-color: #FF000;
}
.custom h1 {
font-family: museo-sans;
font-size: 48px;
}
/*....etc etc etc*/
</style>
<div class=”custom”>
<div class=”custom-container”>
<div class=”custom-row”>
<div class=”custom-col custom-col-2”>
<p>This is one column</p>
</div>
<div class=”custom-col custom-col-2”>
<p>This is one column</p>
</div>
</div>
</div>
</div>
.custom {
width: 999px;
margin-left: -2%;
/*removes padding of parent, .content_section*/
margin-top: -31px;
/*can be in px here bc the header is consistenly 172px high
until the mobile breakpoint)*/
margin-bottom: -2.6%;
/*there really is no rhyme or reason as to why these numbers
work*/
z-index: 999;
}
.custom-container {
} /*yes it really does nothing, but it’s useful for
full-bleed backgrounds*/
.custom-row {
margin: 0% 0% 2% 0%;
/*padding on bottom only to space between rows. spacing be-
tween cols is below*/
clear:both;
}
.custom-col {
margin: 0% -0.32% 0% 0%;
padding: 1%;
display: inline-block;
vertical-align: top;
}
.custom-col-2 {
width: 50%;
}
In the content editor: From custom-lp.css:
The basic setup, revisited, now with fun for mobile:
<style>
@media (min-width:767px){
.custom {
background-color: #FF000;
}
.custom h1 {
font-family: museo-sans;
font-size: 48px;
}
}
@media only screen and (min-width: 767px)
and (max-width: 1080px) {
.custom-col-2 {
width: 75%;
}
}
/*....etc etc etc*/
</style>
<div class=”custom”>
<div class=”custom-container”>
<div class=”custom-row”>
<div class=”custom-col custom-col-2”>
<p>This is one column</p>
(etc etc etc etc)
(all the same stuff as before but):
@media only screen and (min-width: 767px) and (max-width:
1080px) {
.custom {
width: 100%;
margin-left: -2%; /*removes padding
of parent, .content_section*/
margin-top: -31px; /*can be in px
here bc the header is consistenly 172px high until the mobile
breakpoint)*/
margin-bottom: -2.6%; /*there really
is no rhyme or reason as to why these numbers work*/
}
.custom-col-1 {
width: 50%;
}
.custom-col-2 {
width: 100%;
}
.custom-col-3 {
width: 100%;
}
}
In the content editor: From custom-lp.css:
is overridden by
Gremlins
<div class=”custom”><div class=”custom-container”><div class=”custom-row”><div class=”custom-col cus-
tom-col-2”><p>This is one column</p><div class=”custom-col custom-col-2”><p>This is one
column</p></div></div></div></div>
display: inline-block;
is buggy. This is a known issue w/CSS3. It occasionally has hairline widths between two divs which both use
display: inline-block. The easiest solution is to minify your code (or: get rid of all whitespace between tags, including
returns.
For an example of where you’d run into this issue, see http://www.douglascollege.ca/douglas-degrees.
.container width
If you’re using a 3-column layout (i.e. .custom-col-1third or .custom-col-2third) extensively, it can be
helpful to manually set the width of container to 999px. Column widths are defined in percentages, so
999px divides more evenly into thirds. Similarly sometimes defining the width of .custom to 1000px can
help sort out issues with the columns that divide by 4
(.custom-col-1, .custom-col-2, .custom-col-3, .custom-col-4)
overriding <a> styling
The styling from style.css is particularly sticky and difficult to override. Using the selector
#one_column_content .col_content_section a seems to work best.
overriding mobile styling (@media only screen and (max-width:767px))
Another particularly sticky bit of CSS. I find I have to basically start from scratch and override everything I overrode
in the desktop media query to get things to work.

Weitere ähnliche Inhalte

Was ist angesagt?

HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte eventHTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
Robert Nyman
 
Class 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web designClass 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web design
Erin M. Kidwell
 
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference ZürichHTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
Robert Nyman
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
Itai Koren
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
hstryk
 

Was ist angesagt? (20)

HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte eventHTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
 
Html forfood
Html forfoodHtml forfood
Html forfood
 
The Near Future of CSS
The Near Future of CSSThe Near Future of CSS
The Near Future of CSS
 
Compass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS DeveloperCompass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS Developer
 
The Cascade, Grids, Headings, and Selectors from an OOCSS Perspective, Ajax ...
The Cascade, Grids, Headings, and Selectors from an OOCSS Perspective,  Ajax ...The Cascade, Grids, Headings, and Selectors from an OOCSS Perspective,  Ajax ...
The Cascade, Grids, Headings, and Selectors from an OOCSS Perspective, Ajax ...
 
Class 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web designClass 4 handout two column layout w mobile web design
Class 4 handout two column layout w mobile web design
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
CSS in React
CSS in ReactCSS in React
CSS in React
 
Document
DocumentDocument
Document
 
Getting Started with Sass & Compass
Getting Started with Sass & CompassGetting Started with Sass & Compass
Getting Started with Sass & Compass
 
Sass, Compass
Sass, CompassSass, Compass
Sass, Compass
 
Building a theming system with React - Matteo Ronchi - Codemotion Rome 2017
Building a theming system with React - Matteo Ronchi - Codemotion Rome 2017Building a theming system with React - Matteo Ronchi - Codemotion Rome 2017
Building a theming system with React - Matteo Ronchi - Codemotion Rome 2017
 
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference ZürichHTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
 
Everest
EverestEverest
Everest
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
 
Front-End Dev Tools
Front-End Dev ToolsFront-End Dev Tools
Front-End Dev Tools
 

Andere mochten auch (16)

Projects Handled
Projects HandledProjects Handled
Projects Handled
 
PROFILE
PROFILEPROFILE
PROFILE
 
Ngee Ann Polytecnic Diploma in Electrical Engineering
Ngee Ann Polytecnic Diploma in Electrical EngineeringNgee Ann Polytecnic Diploma in Electrical Engineering
Ngee Ann Polytecnic Diploma in Electrical Engineering
 
Eng mohamed fetouh
Eng mohamed fetouhEng mohamed fetouh
Eng mohamed fetouh
 
Domingo 22-01-12
Domingo 22-01-12Domingo 22-01-12
Domingo 22-01-12
 
Resume 2016 Maja Gustin
Resume 2016 Maja GustinResume 2016 Maja Gustin
Resume 2016 Maja Gustin
 
Noble Drilling Certificate
Noble Drilling CertificateNoble Drilling Certificate
Noble Drilling Certificate
 
Prueba a ciegas 1
Prueba a ciegas 1Prueba a ciegas 1
Prueba a ciegas 1
 
Gah 1
Gah 1Gah 1
Gah 1
 
Que es el virus informatico
Que es el virus informaticoQue es el virus informatico
Que es el virus informatico
 
Tommy Hough 3
Tommy Hough 3Tommy Hough 3
Tommy Hough 3
 
Roy_Emerson_Tennis_Week.pdf
Roy_Emerson_Tennis_Week.pdfRoy_Emerson_Tennis_Week.pdf
Roy_Emerson_Tennis_Week.pdf
 
HAYDEX CV low quality
HAYDEX CV low qualityHAYDEX CV low quality
HAYDEX CV low quality
 
Art hts
Art htsArt hts
Art hts
 
B0750616
B0750616B0750616
B0750616
 
Mi2gration1
Mi2gration1Mi2gration1
Mi2gration1
 

Ähnlich wie Landing Pages 101

Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
Even Wu
 
Advanced Technology for Web Application Design
Advanced Technology for Web Application DesignAdvanced Technology for Web Application Design
Advanced Technology for Web Application Design
Bryce Kerley
 

Ähnlich wie Landing Pages 101 (20)

Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
CSS Frameworks
CSS FrameworksCSS Frameworks
CSS Frameworks
 
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and ConsCSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
GOTO Berlin - You can use CSS for that
GOTO Berlin - You can use CSS for thatGOTO Berlin - You can use CSS for that
GOTO Berlin - You can use CSS for that
 
What I discovered about layout vis CSS Grid
What I discovered about layout vis CSS GridWhat I discovered about layout vis CSS Grid
What I discovered about layout vis CSS Grid
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
 
Build a better UI component library with Styled System
Build a better UI component library with Styled SystemBuild a better UI component library with Styled System
Build a better UI component library with Styled System
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da Web
 
Bootstrap 3 training
Bootstrap 3 trainingBootstrap 3 training
Bootstrap 3 training
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
Web Frontend development: tools and good practices to (re)organize the chaos
Web Frontend development: tools and good practices to (re)organize the chaosWeb Frontend development: tools and good practices to (re)organize the chaos
Web Frontend development: tools and good practices to (re)organize the chaos
 
Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17
 
Advanced Technology for Web Application Design
Advanced Technology for Web Application DesignAdvanced Technology for Web Application Design
Advanced Technology for Web Application Design
 
Css methods architecture
Css methods architectureCss methods architecture
Css methods architecture
 
View Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & FriendsView Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & Friends
 
Css
CssCss
Css
 

Kürzlich hochgeladen

➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
amitlee9823
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
saipriyacoool
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
gajnagarg
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
amitlee9823
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
nirzagarg
 
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
amitlee9823
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 

Kürzlich hochgeladen (20)

Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
Gamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad IbrahimGamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad Ibrahim
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
 
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
 
Q4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationQ4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentation
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
 
Call Girls Jalgaon Just Call 8617370543Top Class Call Girl Service Available
Call Girls Jalgaon Just Call 8617370543Top Class Call Girl Service AvailableCall Girls Jalgaon Just Call 8617370543Top Class Call Girl Service Available
Call Girls Jalgaon Just Call 8617370543Top Class Call Girl Service Available
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 

Landing Pages 101

  • 1. Landing Pages 101 or: Breaking Sitecore for fun and profit
  • 2. What we talk about when we talk about landing pages #1: landing pages that tell a story
  • 3. What we talk about when we talk about landing pages #2: landing pages that convert
  • 4. The basic problem with Sitecore (in terms of Landing Pages) customized, marketing campaign driven landing pages a template-based CMS ≠
  • 5. So... what can we do to get from point A (templates) to point B (customized landing pages?) this!!
  • 7. Using the magic of CSS overrididing to do whatever we want in a template-based CMS: styles.css (the base styles for the site) custom-lp.css (base styles for a custom landing page, by me) CSS (in <style> tags) & HTML directly in the content editor (by you) is overridden by is overridden by
  • 8. A word of caution
  • 9. The nuts & bolts: how custom-lp.css works custom-lp.css is a framework, not a set of (visual) styles. It defines the “bones” of the landing pages we create. 1) Defines a class, .custom, which sits inside the template’s main containers, and removes the padding provided by them. Effectively allows you to start your designs at (the content sections) coordinates 0, 0, instead of 20px in to the right. 2) Defines a second class, .custom-container, with no padding, margins, width or height. This is where all your HTML will go. 3) Defines a class, .custom-row, which is 100% of the container’s width wide and is designed to contain column classes 4) Defines a set of column classes which have different, proportional widths. Columns sit beside each other in .custom-rows.
  • 10. The basic setup: <div class=”custom”> <div class=”custom-container”> <div class=”custom-row”> <div class=”custom-col custom-col-2”> <p>This is one column</p> </div> <div class=”custom-col custom-col-2”> <p>This is one column</p> </div> </div> </div> </div> .custom { width: 999px; margin-left: -2%; /*removes padding of parent, .content_section*/ margin-top: -31px; /*can be in px here bc the header is consistenly 172px high until the mobile breakpoint)*/ margin-bottom: -2.6%; /*there really is no rhyme or reason as to why these numbers work*/ z-index: 999; } .custom-container { } /*yes it really does nothing, but it’s useful for full-bleed backgrounds*/ .custom-row { margin: 0% 0% 2% 0%; /*padding on bottom only to space between rows. spacing be- tween cols is below*/ clear:both; } .custom-col { margin: 0% -0.32% 0% 0%; padding: 1%; display: inline-block; vertical-align: top; } .custom-col-2 { width: 50%; } In the content editor: From custom-lp.css:
  • 11. Classes available to you in custom-lp.css .custom - always use this .custom-container - always use this, too. useful for full-bleed backgrounds sometimes. .custom-row - a horizontal grouping of columns*. by default as a margin of 2% on the bottom. provides clearing** for columns. .custom-col - the basic display style for a column. always use in conjunction with one of the below column classes***. .custom-col-1 - gives the .custom-col a width of 25% of the container .custom-col-2 - gives the .custom-col a width of 50% of the container .custom-col-3 - gives the .custom-col a width of 75% of the container .custom-col-4 - gives the .custom-col a width of 100% of the container .custom-col-1third - gives the .custom-col a width of 33% of the container .custom-col-2third - gives the .custom-col a width of 66% of the container .custom-pull-right - floats a single column to the right-hand side of its container. * - You can have columns that total up to more than 100% of the width of a .custom-row. They’ll just fall below. ** - as in clear: both; *** - all columns get display: inline-block; from this. inline-block is actually a buggy CSS component and occasionally gives hairline spacing between elements; however better alternatives (flexbox) are not IE9 compatible.
  • 12. But what about mobile? custom-lp.css provides overrides for all the classes listed below for 3 breakpoints: Desktop: @media (min-width:767px) Tablets: @media only screen and (min-width: 767px) and (max-width: 1080px) Mobile devices: @media only screen and (max-width:767px) Depending on what you’re doing, though, you may need to override the default behaviour of custom-lp.css for certain column widths on your page.
  • 13. The basic setup, revisited: <style> .custom { background-color: #FF000; } .custom h1 { font-family: museo-sans; font-size: 48px; } /*....etc etc etc*/ </style> <div class=”custom”> <div class=”custom-container”> <div class=”custom-row”> <div class=”custom-col custom-col-2”> <p>This is one column</p> </div> <div class=”custom-col custom-col-2”> <p>This is one column</p> </div> </div> </div> </div> .custom { width: 999px; margin-left: -2%; /*removes padding of parent, .content_section*/ margin-top: -31px; /*can be in px here bc the header is consistenly 172px high until the mobile breakpoint)*/ margin-bottom: -2.6%; /*there really is no rhyme or reason as to why these numbers work*/ z-index: 999; } .custom-container { } /*yes it really does nothing, but it’s useful for full-bleed backgrounds*/ .custom-row { margin: 0% 0% 2% 0%; /*padding on bottom only to space between rows. spacing be- tween cols is below*/ clear:both; } .custom-col { margin: 0% -0.32% 0% 0%; padding: 1%; display: inline-block; vertical-align: top; } .custom-col-2 { width: 50%; } In the content editor: From custom-lp.css:
  • 14. The basic setup, revisited, now with fun for mobile: <style> @media (min-width:767px){ .custom { background-color: #FF000; } .custom h1 { font-family: museo-sans; font-size: 48px; } } @media only screen and (min-width: 767px) and (max-width: 1080px) { .custom-col-2 { width: 75%; } } /*....etc etc etc*/ </style> <div class=”custom”> <div class=”custom-container”> <div class=”custom-row”> <div class=”custom-col custom-col-2”> <p>This is one column</p> (etc etc etc etc) (all the same stuff as before but): @media only screen and (min-width: 767px) and (max-width: 1080px) { .custom { width: 100%; margin-left: -2%; /*removes padding of parent, .content_section*/ margin-top: -31px; /*can be in px here bc the header is consistenly 172px high until the mobile breakpoint)*/ margin-bottom: -2.6%; /*there really is no rhyme or reason as to why these numbers work*/ } .custom-col-1 { width: 50%; } .custom-col-2 { width: 100%; } .custom-col-3 { width: 100%; } } In the content editor: From custom-lp.css: is overridden by
  • 15. Gremlins <div class=”custom”><div class=”custom-container”><div class=”custom-row”><div class=”custom-col cus- tom-col-2”><p>This is one column</p><div class=”custom-col custom-col-2”><p>This is one column</p></div></div></div></div> display: inline-block; is buggy. This is a known issue w/CSS3. It occasionally has hairline widths between two divs which both use display: inline-block. The easiest solution is to minify your code (or: get rid of all whitespace between tags, including returns. For an example of where you’d run into this issue, see http://www.douglascollege.ca/douglas-degrees. .container width If you’re using a 3-column layout (i.e. .custom-col-1third or .custom-col-2third) extensively, it can be helpful to manually set the width of container to 999px. Column widths are defined in percentages, so 999px divides more evenly into thirds. Similarly sometimes defining the width of .custom to 1000px can help sort out issues with the columns that divide by 4 (.custom-col-1, .custom-col-2, .custom-col-3, .custom-col-4) overriding <a> styling The styling from style.css is particularly sticky and difficult to override. Using the selector #one_column_content .col_content_section a seems to work best. overriding mobile styling (@media only screen and (max-width:767px)) Another particularly sticky bit of CSS. I find I have to basically start from scratch and override everything I overrode in the desktop media query to get things to work.