Zmiana koloru czcionki

Założony przez  dorman.

wersja skryptu MyBB:1.6.9
adres forum: www.stylerniaa.cba.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Jak tutaj zmienić kolor czcionki na biały? SCREEN:
[Obrazek: ouxhdu.png]
Cytat:It's all about the details.
---------------
PW tylko forum, nie mejl.


Pokaż szablon : Opis posta -> postbit_email
<a href="member.php?action=emailuser&amp;uid={$post['uid']}" class="postbit">email</a>
Cytat:It's all about the details.
---------------
PW tylko forum, nie mejl.


Spróbuj :
<a href="member.php?action=emailuser&amp;uid={$post['uid']}" class="postbit"><font color="#FFFFFF>email</font></a>
Takie rzeczy się w css robi.
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
@ginbonpl: W taki sposób możesz określić jedynie kolor tekstu, a nie linków.

Lepiej jest dodać klasę w szablonie postbit_classic do komórki z buttonami, wtedy wszystkie buttony w komórce będą miały twój kolor.
Wtedy określisz sobie dokładnie kolory linków w css.
np. nazwa klasy to buttons
.buttons a:link, .buttons a:visited {
color: white;
}
.buttons a:hover, .buttons a:active {
color:black;
}
Ja tylko dodam że <font> wychodzi z użycia. HTML5 już go nie obsługuje.
Matslom napisał 05.04.2013, 18:20:
Nie można pisać że HTML5 go nie obsługuje, bo to przeglądarka przetwarza HTML.
Może nie być tego znacznika w specyfikacji HTML5/jest zdeprecjonowany w html5...
Poza tym <font> już wcześniej wyrzucili niż w 5.
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
Matslom,
Wszystko ok, ale gdzie i jak mam ten kod wgrać?
Cytat:It's all about the details.
---------------
PW tylko forum, nie mejl.


Do global.css

a to zmieniasz na
<a href="member.php?action=emailuser&amp;uid={$post['uid']}" class="buttons">email</a>
SaiL,
Zrobiłem, tak jak mówiłeś i tak samo. Zamiast czytać klasę .buttons, w której kolor jest biały, to czyta klasę .tfoot, w której kolor nie jest biały :D .
Cytat:It's all about the details.
---------------
PW tylko forum, nie mejl.


@up: Bo to normalne, a kod który podał SaiL nie zmieni koloru linku bo jest raczej błędny.
Pisałem przecież abyś klasę buttons dodał do komórki ze wszystkimi buttonami, którą znajdziesz w opis posta -> postbit_classic
Matslom,
Matslom napisał(a):Pisałem przecież abyś klasę buttons dodał do komórki ze wszystkimi buttonami
Chodzi ci, abym ten kod CSS dodał do tego szablonu?
Cytat:It's all about the details.
---------------
PW tylko forum, nie mejl.


OMG.
Poda tutaj zawartość
Matslom napisał(a):opis posta -> postbit_classic
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>
        <td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
        <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
        <span class="smalltext">
            {$post['usertitle']}<br />
            {$post['userstars']}
            {$post['groupimage']}
            {$post['useravatar']}<br />
            {$post['user_details']}
        </span>
    </td>
    <td class="{$altbg}" valign="top">
        <table width="100%">
            <tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
            <br />
            <div id="pid_{$post['pid']}" class="post_body">
                {$post['message']}
            </div>
            {$post['attachments']}
            {$post['signature']}
            <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                {$post['iplogged']}
            </div>
        </td></tr>
    </table>
</td>
</tr>
<tr>
    <td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
    <td class="{$altbg}" style="vertical-align: middle;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">
                <td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
                <td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
            </tr>
        </table>
    </td>
</tr>
</table>
Cytat:It's all about the details.
---------------
PW tylko forum, nie mejl.


Podmień na to
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>
        <td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
        <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
        <span class="smalltext">
            {$post['usertitle']}<br />
            {$post['userstars']}
            {$post['groupimage']}
            {$post['useravatar']}<br />
            {$post['user_details']}
        </span>
    </td>
    <td class="{$altbg}" valign="top">
        <table width="100%">
            <tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
            <br />
            <div id="pid_{$post['pid']}" class="post_body">
                {$post['message']}
            </div>
            {$post['attachments']}
            {$post['signature']}
            <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                {$post['iplogged']}
            </div>
        </td></tr>
    </table>
</td>
</tr>
<tr>
    <td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
    <td class="{$altbg}" style="vertical-align: middle;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">
                <td align="left" class="buttons"><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
                <td align="right"  class="buttons">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
            </tr>
        </table>
    </td>
</tr>
</table>



Użytkownicy przeglądający ten wątek:

1 gości