| User | Post |
|
9:05 am 30 Jun 2008
| ccc—
Guest
| | | |
|
| |
|
|
I have some strange behaviour in my SPF at http://www.dieterkoenig.at/forum
Every second post in a thread is indented and shows grey lines above and under the post. You can see it for example in this thread: http://www.dieterkoenig.at/forum/allgemein/ersatzforum/page-1
Did I anything wrong? How can I switch that off??
|
|
|
2:04 pm 30 Jun 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
no, you just got lucky… your wp theme styled an alternte css tag just like we did and is causing this… line 512 of your wp theme style.css has a css directive where they add padding of 10px to alt tags… this is causing the issue… you probably do the extra padding in comments or something…
to fix, you have two options… remove that line from your theme, but that may have other effects on your theme…
or modify the spf skin you are using (in this case, default)… find the #sforum .sfposttable td.alt styling at line 464 and adding a new tag… it should be padding: 0; this will remove the extra padding from your theme…
be careful, as you should probably copy the spf skin to your own skin and make the changes… otherwise, whenever you upgrade spf, your changes to the default skin will be overwritten…
|
|
|
6:22 pm 30 Jun 2008
| ccc—
Guest
| | | |
|
| |
|
|
Thanks again for your help.
I changed to the “structure” theme now. I copied the content of the “structure” folder in a new style folder “dieter” and renamed structure.css to dieter.css. But when I use the new “dieter” theme, the forum style is completely messed up. Have I forgotten anything?
|
|
|
7:31 pm 30 Jun 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
make sure when you rename your new theme that the folder its in and the filename are the same… ie the directory should be dieter and the css file should be dieter.css
|
|
|
7:40 pm 30 Jun 2008
| ccc—
Guest
| | | |
|
| |
|
|
Yes, I did that. Please take a look how the forum looks like now
http://www.dieterkoenig.at/forum
|
|
|
7:42 pm 30 Jun 2008
| ccc—
Guest
| | | |
|
| |
|
|
Hmm, for me that looks like that it doesn't find/use a style at all now …
|
|
|
7:58 pm 30 Jun 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
I still dont see where you added the padding: 0px styling… in your dieter.css file, you should change the directives at line 411 to look like
#sforum .sfposttable td.alt { background: #ffffff; padding: 0px; }
You are going to get extra spacing between paragraphs though because you have entered <p></p> tags but have an additional <br /> bteween them. you can fix that by changing the top and bottom padding in the directives at line 572 (currently 5px and 10px).
|
|
|
8:08 pm 30 Jun 2008
| ccc—
Guest
| | | |
|
| |
|
|
The style sheet works now, after I have entered the padding line - funny. Works like a charm now
The thing with the extra spacing is maybe due to the fact that I was using TinyMCE before and the users entered those extra lines?
|
|
|
8:17 pm 30 Jun 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
good deal… not sure the extra <br /> are from tinymce though since it normally wraps them in <p></p> tags with a blank space and not a <br />… oh welll, watch how it goes and you can adjust the spacing between paragraphs to get what you want as I specified above…
|
|
|
8:34 pm 30 Jun 2008
| ccc—
Guest
| | | |
|
| |
|
|
Will do so. Thanks again!
|
|