Change Font size at {news}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
RoProe
Posts: 4
Joined: Sat 5. Nov 2005, 20:45

Change Font size at {news}

Post by RoProe »

Hello,

i want to change the font size from {news} rt.

My first way:

Code: Select all

<font size="-4">{NEW:20}</font>
but it doesn't work.

my second way, i create a news class in frontend.ccs

Code: Select all

.news { font-size: 8px}
it doesn't works too.

how can I do this?

Robert
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

conf.template_default.inc.php

Tried edit this?
// new articles
$template_default["news"]["before"] = '<div class="news">';
$template_default["news"]["after"] = '</div>';
$template_default["news"]["link_before"] = '<p>';
$template_default["news"]["link_after"] = '</p>';
$template_default["news"]["link_symbol"] = '';
$template_default["news"]["link_target"] = '';
$template_default["news"]["link_length"] = 0; //if 0 no limit
$template_default["news"]["cut_title_add"] = "…";
$template_default["news"]["date_language"] = "DA"; // DE=German, IT=Italian, FR=French, ES = Spanish, DA = Danish, NO = Norwegian
$template_default["news"]["date_format"] = ""; //if empty -> no Date
$template_default["news"]["date_before"] = '<span class="datelink">';
$template_default["news"]["date_after"] = ' - </span>';
http://www.studmed.dk Portal for doctors and medical students in Denmark
RoProe
Posts: 4
Joined: Sat 5. Nov 2005, 20:45

Post by RoProe »

Thank you,

but i don't know the right way.
deha
Posts: 29
Joined: Mon 6. Jun 2005, 11:07
Location: Gerolsheim / Pfalz

Post by deha »

hi
may be this is the little different, because its not working !
.news { font-size: 8px;}
" ; " behind the 8px; !!!
:D
RoProe
Posts: 4
Joined: Sat 5. Nov 2005, 20:45

Post by RoProe »

Hello,

no, it doesn't work. And I don't know why.


Code: Select all

<div class="news">
  <p>
    <a href="index.php?id=8,3,0,0,1,0">
      <span class="datelink">05.11.2005 <br> 
      </span>
      Der richtige Pr…
    </a>
    <p>
      <a href="index.php?id=6,2,0,0,1,0">
        <span class="datelink">05.11.2005 <br>
        </span>Was ist osComme…
      </a>
    <p>
      <a href="index.php?id=0,1,0,0,1,0">
      <span class="datelink">19.10.2005 <br>
      </span>Schön das Ihr e…
    </a>
</div>
[/code][/quote]
deha
Posts: 29
Joined: Mon 6. Jun 2005, 11:07
Location: Gerolsheim / Pfalz

Post by deha »

sorry can't help !
but for Example , this is my " NEWSTAG "
and it works fine .
<!-- Newsliste -->

<div style="padding: 10px 15px 10px 15px;
width: auto;
background-color: #FFFFFF;
border: 1px dotted #A0522D;
margin-bottom: 0px;
margin-top: 10px;
margin-left: 5px;
margin-right: 5px;
font-size: 11px;
text-align: left;">
* * * NEUES * * *
<br/>
{NEW:4}
<br/>
* * * NEUES * * *
</div>
without class-definition in the template.
and in the frontend-css this one :

.news, .news a, .news a:link, .news a:active, .news a:visited, .news a:hover {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
color: #666666;
font-weight: normal;
text-decoration: none;
}
.news a:hover {
text-decoration: underline; color: #FF9900;
}
dont know why, but it works.
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

there is a "p" tag too - if p is defined global inside your css file you have to use kind like - and check "a" too

Code: Select all

.new p, .news a, .news a:link, .news a:active, .news a:visited, .news a:hover {
  font-size: 10px;
  color: #FF3300;
}
and so on.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
RoProe
Posts: 4
Joined: Sat 5. Nov 2005, 20:45

Post by RoProe »

Hello Master phpwcms!

thank you, it works!
Post Reply