| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Tue Sep 12, 2006 6:49 am Post subject: how can i add CSS class to smiles IMG tag |
|
|
hello
i have a problem
i want to add a CSS class to smiles IMg tag (only smiles)
the default form of Smiles address is like this
| Code: | | <img src="images/smiles/icon_wink.gif" alt="Wink" border="0"> |
i want to change it to this form
| Code: | | <img style="margin-bottom: -5px;" src="images/smiles/icon_wink.gif" alt="Wink" border="0"> |
is it possible ?  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
|
 |
lavinya PR1


Joined: 24 Jul 2006 Posts: 159 Location: Turkey
|
Posted: Tue Sep 12, 2006 10:18 am Post subject: Re: how can i add CSS class to smiles IMG tag |
|
|
hello.
amir abbas try w3c validation: http://validator.w3.org/
an upgrade your forum template xhtml 1.0 tra.. or strict |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Tue Sep 12, 2006 11:20 am Post subject: Re: how can i add CSS class to smiles IMG tag |
|
|
| lavinya wrote: |
an upgrade your forum template xhtml 1.0 tra.. or strict |
well for sure it is better to be stricly following W3C guidelines, but the more important goes to user's feeling IMHO.
Open :
| Code: | | includes/bbcode.php |
find :
| Code: |
$repl[] = '<img src="' . PHPBB_URL . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['emoticon'] . '" border="0" />'; |
Replace with :
| Code: | | $repl[] = '<img src="' . PHPBB_URL . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['emoticon'] . '" border="0" class="smilie"/>'; |
Now you can add as new css class called smile in your css. Note that you need to actually use your css for this to work (not the hard codded default version in overall_header.tpl).
You could as well use style="margin-bottom: -5px;" instead of class="smilie", but it would be nicer to use a css class I think
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Wed Sep 13, 2006 6:30 am Post subject: Re: how can i add CSS class to smiles IMG tag |
|
|
oh
thanks DCZ
DCZ = phpBB encyclopedia
until this time i found the answer for all of my questions
thanks a bunch
| lavinya wrote: | hello.
amir abbas try w3c validation: http://validator.w3.org/
an upgrade your forum template xhtml 1.0 tra.. or strict |
hi
yes you are right but making a template based on XHTML strcit need a lot of time . unfortunately i don't have enough time.
an XHTML strict valid template doesn't have any affect on your forum indexing
at this time im focusing on indexing. |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |