Please login or register.

Login with username, password and session length
Advanced search  


Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Styling news text  (Read 1910 times)


  • Guest
Styling news text
« on: November 10, 2007, 10:07:25 pm »

Hello, i'm searching for days a way to format the body of the news to put news with "like-table" style.

Let's suppose a new is like this:
- Title (no problem formatting the title)
- Body of the new (i search hours & hours and didnt' find how to style this)
- Comments etc.. (no problem)

So, I need to add a <div class="myclass"> just before the body of the new, after the <h2>Title of the new</h2> (just where the new itself starts)  but i can't find where to do it in snews.php

I suppose it's in snews.php because i see the html generated site and the news don't have any name class that i can format in the CSS file.

Sorry if i didn't explain it well, i'm not english.

Thanks in advance.
« Last Edit: January 10, 2009, 03:15:36 am by Joost »


  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: Styling news text
« Reply #1 on: November 10, 2007, 10:26:38 pm »

add your styling to
Code: [Select]
<td class="news_table_content">
Code: [Select]
.news_table_content { font-weight: bold; color: red; }
? is that what you mean?

And there are other classes for date, headings, etc
Yes! I have no siggy.


  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
Re: Styling news text
« Reply #2 on: November 10, 2007, 10:33:11 pm »

Welcome to sNews Patina.
Do you mean... you want to wrap article title, content and article info-line with styling so each will display in its own bordered container?
If so... then you would need to locate and wrap the style declarations around the content-generating elements within function center() in the snews.php file. It is not overly-complicated... but you will need to know your way around in the function. Make sure you have a copy of the snews.php file saved in its "working" state before you start modding another... in case you need to refresh a buggy file.
Do it now... later may not come.
sNews 1.6 MESU | sNews 1.6 MEMU