I am having spacing issues with my text and I can't seem to figure it out. When writing a post, line breaks and paragraphs are not recognized and everything gets jumbled together. Any solutions?
Thanks <3
I am having spacing issues with my text and I can't seem to figure it out. When writing a post, line breaks and paragraphs are not recognized and everything gets jumbled together. Any solutions?
Thanks <3
Can you supply a link so we can take a look?
Absolutely. It's thetattooedmama.com
you got your px and pt's mixed I think...
for example, swap:
.post {
margin: 5px 10px 20px 0px;
padding: 2px 0px 0px 0px;
text-align: left;
line-height: 14px;
}
for:
.post {
margin: 5px 10px 20px 0px;
padding: 2px 0px 0px 0px;
text-align: left;
line-height: 14pt;
}
That is likely the beast which haunts you.
Yup, I think drew's right.
I prefer to specify line-height using % or ems, though, as I believe it scales a bit better when text size is bumped:
.post {
margin: 5px 10px 20px 0px;
padding: 2px 0px 0px 0px;
text-align: left;
line-height: 170%;
}You guys are wonderful. I will try it out now.
Okay. It allowed the text to not be so jumbled together but it still isn't recognizing my paragraphs. Such as when I write something, and press enter twice to start a new paragraph.. it ends up right under the one right above it. This is so strange.
Try this, Mama:
/* Post */
.post {
margin: 5px 10px 20px 0;
padding: 2px 0 0 0;
text-align: left;
line-height: 170%;
}
.post p {
margin-bottom:1em;
}This is so strange.
What is so strange? All the padding & margin for p (paragraphs) are set to 0 [zero] in your stylesheet.
What is so strange? All the padding & margin for p (paragraphs) are set to 0 [zero] in your stylesheet.
Thank you. I designed the theme but had it coded, which is why I am having a hard time understanding. Not used to how it is set up.
Try this, Mama:
.post p {
margin-bottom:1em;
}
It worked! I really appreciate your help. :)
Thanks!
Cheers! Glad it's working for you. :)
This topic has been closed to new replies.