Skip to content

Instantly share code, notes, and snippets.

@mattfelten
Created June 18, 2014 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattfelten/21e5ee21d84355c511e5 to your computer and use it in GitHub Desktop.
Save mattfelten/21e5ee21d84355c511e5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
#dreampress-description h2, p {
max-width: 200px;
margin-left: auto;
margin-right: auto;
}
// CSS
// You need to repeat the #id otherwise it applies to all <p>s on the entire page
#dreampress-description h2,
#dreampress-description p {
max-width: 200px;
margin-left: auto;
margin-right: auto;
}
// Sass
// This way gives you flexibility to set different max-widths
#dreampress-description {
h2,p {
margin-left: auto;
margin-right: auto;
}
h2 {
max-width: 200px;
}
p {
max-width: 100px;
}
}
#dreampress-description h2, p {
max-width: 200px;
margin-left: auto;
margin-right: auto;
}
#dreampress-description h2,
#dreampress-description p {
max-width: 200px;
margin-left: auto;
margin-right: auto;
}
#dreampress-description h2, #dreampress-description p {
margin-left: auto;
margin-right: auto;
}
#dreampress-description h2 {
max-width: 200px;
}
#dreampress-description p {
max-width: 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment