Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-03-11 17:39:31
- Plaz
- Member
- From: Minnesota
- Registered: 2004-06-02
- Posts: 33
Remove linebreak after permalinks?
How do I remove the extra blank line that appears after all permalinks?
For instance… If I have an excerpt displaying beneath a permalink- I always have an extra blank line beneath the permalink, like this:
Subject that is permalink
Here is the contents of the excerpt. Here is the contents of the excerpt. Here is the contents of the excerpt. Here is the contents of the excerpt.
But what I want is this.. with no empty line between the subject/permalink and the excerpt paragraph:
Subject that is permalink
Here is the contents of the excerpt. Here is the contents of the excerpt. Here is the contents of the excerpt. Here is the contents of the excerpt.
The part of the form code that outputs it looks like this:
<txp:if_article_list>
<txp:permlink><strong><txp:title /></strong></txp:permlink>
<txp:excerpt />
</txp:if_article_list>
Please let me know.
Last edited by Plaz (2008-03-11 17:41:53)
If you want something you have never had, then you must be willing to do something you have never done.
Offline
Re: Remove linebreak after permalinks?
What are your CSS rules for p
? I’m betting you’ve got vertical margins set on p
and/or strong
elements.
Offline
#3 2008-03-11 19:59:04
- Plaz
- Member
- From: Minnesota
- Registered: 2004-06-02
- Posts: 33
Re: Remove linebreak after permalinks?
Thanks for the reply..
Here are my styles so far. I took a look and I can’t figure it out….I have some items commented out:
/* base
———————————————————————- */
body {
margin: 0;
font-family: Verdana, “Lucida Grande”, Tahoma, Helvetica, sans-serif;
color: #000000;
font-size: .8em;
line-height: 1.5em;
}
blockquote, h3, p, li {
padding-left: 0px;
/* font-size: .85em;
line-height: 1.5em; */
}
blockquote {
margin-right: 0;
margin-left: 20px;
}
h1, h2, h3 {
font-weight: normal;
}
h1, h2 {
font-family: Verdana, “Lucida Grande”, Tahoma, Helvetica, sans-serif;
}
h1 {
font-size: 3em;
}
h2 {
font-size: 1em;
font-style: italic;
}
hr {
margin: 2em auto;
width: 370px;
height: 1px;
color: #7a7e7d;
background-color: #7a7e7d;
border: none;
}
small, .small {
font-size: .8em;
color: #CCCCCC;
}
searchresults {
text-decoration: underline;
}
/* links
———————————————————————- */
a {
text-decoration: none;
color: #006699;
}
a:hover {
color:#990000;
text-decoration: underline;
}
h1 a, h2 a, h3 a {
border: none;
}
h3 a {
font: 1.5em Georgia, Times, serif;
}
#sidebar-2 a, #sidebar-1 a {
color: #006699;
border: none;
}
/* overrides
———————————————————————- */
#sidebar-2 p, #sidebar-1 p {
font-size: 0.9em;
line-height: 1.5em;
}
.caps {
font-size: 0.9em;
letter-spacing: 0.1em;
}
div.divider {
margin: 2em 0;
text-align: center;
}
/* layout
———————————————————————- */
#accessibility {
position: absolute;
top: -10000px;
}
#container {
margin: 10px auto;
padding: 10px;
width: 760px;
}
#head {
height: 100px;
text-align: center;
}
/* #sidebar-1, #sidebar-2 {
padding-top: 100px;
width: 150px;
}
#sidebar-1 {
margin-right: 5px;
float: left;
text-align: right;
}
#sidebar-2 {
margin-left: 5px;
float: right;
}
*/
#content {
margin: 0 155px;
padding-top: 30px;
}
#foot {
margin-top: 5px;
clear: both;
text-align: center;
}
/* box model hacks
http://archivist.incutio.com/viewlist/css-discuss/48386
———————————————————————- */
#container {
\width: 770px;
w\idth: 760px;
}
#sidebar-1, #sidebar-2 {
\width: 150px;
w\idth: 150px;
}
/* comments
———————————————————————- */
.comments_error {
color: #000;
background-color: #fff4f4
}
ul.comments_error {
padding : 0.3em;
list-style-type: circle;
list-style-position: inside;
border: 2px solid #fdd;
}
div#cpreview {
color: #000;
background-color: #f1f1f1;
border: 2px solid #ddd;
}
form#txpCommentInputForm td {
vertical-align: top;
}
If you want something you have never had, then you must be willing to do something you have never done.
Offline
#4 2008-03-11 20:07:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Remove linebreak after permalinks?
The first thing I’d try is to set a margin-top: 0; or padding-top: 0; for p.
Offline
Re: Remove linebreak after permalinks?
Maybe do a global reset at the beginning of your CSS file? Sometimes weird spacing issues are the product of browser defaults.
http://snipplr.com/view/2582/eric-meyers-reset-css/
Last edited by eggnog (2008-03-12 04:10:58)
Offline
Offline
Re: Remove linebreak after permalinks?
Gocom wrote:
I don’t even why he listes all html elements, when there is our beloved
*
. Well, newbies do odd things, like Santa gives toys :D
Undeniably true, yet Eric Meyer isn’t exactly a CSS newbie ;) There must be some browser-compatibility reason for it.
Here’s the original.
Code is topiary
Offline
Re: Remove linebreak after permalinks?
jsoo wrote:
Undeniably true, yet Eric Meyer isn’t exactly a CSS newbie ;) There must be some browser-compatibility reason for it.
Yeah :P I know he ain’t ^^ Thatfor Santa is there too :P Compatibility could be the reason, if we include those really old browsers, ie. IE5 and below (and some of those little unknow ones), but those won’t even handle divs nor XHTML, so… :)
Offline
Offline
#10 2008-03-19 21:07:38
- Plaz
- Member
- From: Minnesota
- Registered: 2004-06-02
- Posts: 33
Re: Remove linebreak after permalinks?
I’ll give this a try.
Thanks!
If you want something you have never had, then you must be willing to do something you have never done.
Offline