Page 1 of 1

Change Font size at {news}

Posted: Sat 5. Nov 2005, 20:50
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

Posted: Sat 5. Nov 2005, 20:56
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>';

Posted: Sat 5. Nov 2005, 22:54
by RoProe
Thank you,

but i don't know the right way.

Posted: Sun 6. Nov 2005, 08:38
by deha
hi
may be this is the little different, because its not working !
.news { font-size: 8px;}
" ; " behind the 8px; !!!
:D

Posted: Sun 6. Nov 2005, 09:57
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]

Posted: Sun 6. Nov 2005, 10:46
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.

Posted: Sun 6. Nov 2005, 12:49
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

Posted: Sun 6. Nov 2005, 19:31
by RoProe
Hello Master phpwcms!

thank you, it works!