-
AuthorPosts
-
January 29, 2018 at 9:03 pm #904424
Hi there,
I’m having trouble setting the various font sizes and weights on our site..
I’d ‘like’ them to be thus:h1 57 pixels – lato black (weight 900) for wide screen
h2 37 pixels – lato black (weight 900)
h3 21 pixels – lato black (weight 900)
h4 19 pixels – lato bold
h5 15 pixels – lato bold
p 17 pixels – lato regularI’d also like for the responsive sizes to work…
essentially, I’m trying to model the type style of https://gusto.com/ but with Lato as the font…
I’m finding if very difficult….
I’ve tried adding some html/css stuff to type sections, like <span style=”font-weight: 900;”> etc, and that seems to help, but I’d like to have it all set automatically, no have to go into each type section and tweak…also, the section on our home page that says “Technology solutions that connect your audiences to the great things you do.” I can’t seem to get the type there to set responsively…in other words, the font size doesn’t go down appropriately when you got to smaller screens.. when I’ve set the responsive type for different sizes, it’s not working for some reason…
I’ve added some custom css to
Enfold Child: Stylesheet (style.css)
Select theme to edit:h1 {
font-family: Lato;
font-size: 57px;
font-style: bold;
font-variant: normal;
font-weight: 900;
line-height: 26.4px;
}
h2 {
font-family: Lato;
font-size: 37px;
font-style: bold;
font-variant: normal;
font-weight: 900;
line-height: 26.4px;
}
h3 {
font-family: Lato;
font-size: 21px;
font-style: bold;
font-variant: normal;
font-weight: 900;
line-height: 15.4px;
}
h4 {
font-family: Lato;
font-size: 19px;
font-style: bold;
font-variant: normal;
font-weight: 700;
line-height: 15.4px;
}
h5 {
font-family: Lato;
font-size: 15px;
font-style: bold;
font-variant: normal;
font-weight: 700;
line-height: 15.4px;
}
p {
font-family: Lato;
font-size: 17px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 20px;
}
blockquote {
font-family: Lato;
font-size: 21px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 30px;
}
pre {
font-family: Lato;
font-size: 13px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 18.5667px;
}if there’s any help you could give me, or some pointers, I sure would appreciate it!
January 29, 2018 at 9:05 pm #904425if the css i added is incorrect, or part of the problem, please feel free to erase it :)
January 29, 2018 at 9:27 pm #904434never mind..I seem to have solved the problem myself :)
January 29, 2018 at 11:39 pm #904533Hi,
I’m glad you were able able to get this corrected. Perhaps you can share your solution so that it may help others who have similar troubles.
Best regards,
Jordan ShannonJanuary 30, 2018 at 6:16 pm #905037actually, I may not have solved anything lol…
still having problems…I think I pretty much have the font weight problem solved…
but the main issue now is responsiveness…I’ve added css to ‘quick css’, as well as the ‘built-in css editor’
}
@media (min-width: 480px) {
H1 { font-size: 50%; }
}
@media (min-width: 768px) {
H1 { font-size: 80%; }
}
@media (min-width: 992px) {
H1 { font-size: 90%; }
}
@media (min-width: 1200px) {
H1 { font-size: 100%; }essentially, I’m trying to emulate https://gusto.com/ how they do their fonts… but with Lato as the font family…
I’m not having a whole lot of success at this point…
we’re having some serious issues with the responsive text… it’s massive…and the line spacing is wack….help me, obi-wan…you’re our only hope!
:)}
January 30, 2018 at 6:31 pm #905051just tried changing it to:
}
html { font-size: 100%; }
body { line-height: 1.6875; font-family: ‘Lato’, arial, helvetica, sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: ‘lato’, arial, helvetica, sans-serif; font-weight: 900; margin-top: 0; line-height: 1.1; }
h1 { font-size: 200%; }
h2 { font-size: 180%; }
h3 { font-size: 160%; }
h4 { font-size: 120%; }
h5 { font-size: 100%; }
h6 { font-size: 80%; }
p { color: #000000; font-size: 100%; font-weight: 500; margin-bottom: 5%; }@media (min-width: 768px) {
body { font-size: 80%; }}
@media (min-width: 992px) {
body { font-size: 100%; }}
@media (min-width: 1200px) {
body { font-size: 120%; }}
so far, no luck..not working…
January 31, 2018 at 4:38 pm #905643hello?…
could use some help here :)February 1, 2018 at 7:19 am #906001 -
AuthorPosts
- You must be logged in to reply to this topic.