Haumis wbb hilfe (http://haumis-wbb-hilfe.de/wbb2/index.php)
- Veränderungen (http://haumis-wbb-hilfe.de/wbb2/board.php?boardid=15)
-- Codes PHP / html (http://haumis-wbb-hilfe.de/wbb2/board.php?boardid=49)
--- Wie den Code auf CSS umschreiben (http://haumis-wbb-hilfe.de/wbb2/thread.php?threadid=1258)


Geschrieben von Lilly am 04.02.2011 um 16:28:

  Wie den Code auf CSS umschreiben

So..ich möchte meine Kategorien etwas in größerer Schrift haben..habe zwar mit dem html keine so großen Pobleme,nur der nützt mir nichts,weil im ACP beim Stylepack ja die css Datei rein muss.

Mein html Code war der:

Zitat:
<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body> <big><big><span style="font-weight: bold;">.•:*&uml;&uml;*:• .Das schwarze Brett .•:*&uml;&uml;*:•.</span></big></big> </body> </html>


Wie schaut das mit dem CSS aus..dazu stelle ich mich noch zu doof an *zugeb* muss das erst noch bei haumi lernen..



Geschrieben von haumi am 04.02.2011 um 18:33:

 

Hi lili,
erst mal auf die Schnelle:

<span style="font-weight: bold;">
ist in dieser Zeile die css-Anweisung.

Wenn du sie erweiterst auf:

<span style="font-weight: bold; font-size: 10pt">

so kannst du mit dem wert von font-size die Schriftgröße bestimmen.
< 10 --> die Schrift wird kleiner
> 10 --> die Schrift wird größer

LG
haumi



Geschrieben von Lilly am 04.02.2011 um 18:54:

 

Danke haumi... st14



Geschrieben von Lilly am 04.02.2011 um 19:25:

 

So..also meine Idde funzt nicht..ich dachte,wenn ich es als zusätzlichen Code ins Designpack einbaue..geht es..aber nein st8

Wenn ich die größe der Schrift ändere,ist fast alles groß..Für Sehschwache geeignet st11

Wenn ich es jetzt ins Template einbaue..wo müsste es genau hin?

Habe schon geschaut..bin aber unsicher..



Geschrieben von haumi am 04.02.2011 um 20:36:

 

Upps habe jetzt erst gelesen das es sich nur um die Schriftgröße der Kategoriezeile handelt.

Hierzu öffnest du das Template index_catbit und suchst:

$boards[title]

davor kommt nun <font-size: 10px;>

Auch hier bestimmt die Ziffer (10) die Schriftgröße.

Versuche es mal.

EDIT:

Du musst am Anfang der Zeige noch folgendes löschen:

<span class="normalfont">

LG
haumi



Geschrieben von Lilly am 04.02.2011 um 20:59:

 

Supi..hat klasse gefunzt... st14

ich hoffe ich lerne bald mehr..traue mich ja nun schon mehr an solche Änderungen..*fg*



Geschrieben von Lilly am 05.02.2011 um 13:46:

 

So..habe gestern mein erstes größeres Ändern im Tamplate erfolgreich vorgenommen..aber..es ist noch nicht 100% so ,wie ich es mir dachte..

Ich wollte die Abstände zwischen den Kategorien etwas einstellen..gelang mit super..nur der letzte Bereich und die User -online Anzeige sind noch zusammen..wie kann ich das in den Griff bekommen?

Hier mal meinen Code ,den ich nun im Index_catbit ,einsetzte:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
<if($depth == 1)>
 <then>
</table>
<table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>

</tr></table>
<br />
<table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>

</tr></table>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
 
 <tr>
 <td class="tablecat" align="center" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><table cellpadding="0" cellspacing="0">
  <tr class="tablecat_fc">
   <td><span class="normalfont"><if($show_hide == 1)><then><a href="$current_url"></a></then><else><if($show_hide == 2)><then><a href="$current_url"><img src="{$style['imagefolder']}/plus.gif" border="0" alt="{$LANG_START_SHOWCAT}" title="{$LANG_START_SHOWCAT}" /></a></then></if></else></if></span></td>
   <a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b><b><font-size: 16px;>$boards[title]</b></a></span><span class="smallfont"><if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if></span></td>
  </tr>
 </table></td>
</tr>
<if($show_hide==1)><then>
  <tr>
  <td class="tabletitle"><span class="smallfont"></span></td>
  <td class="tabletitle" style="width:<if($hide_modcell==0)><then>80</then><else>100</else></if>%" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_BOARDS']}</b></span></td>
  <td class="tabletitle" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_POSTS']}</b></span></td>
  <td class="tabletitle" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_THREADS']}</b></span></td>
  <td class="tabletitle" align="center" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_START_LASTPOST']}</b></span></td>
  <if($hide_modcell==0)><then><td class="tabletitle" style="width:20%" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_MODERATORS']}</b></span></td></then></if>
 </tr>
</then></if>
 </then>
  <else>
  
  <if($depth == 2)>
   <then>
 
 <tr>
 <td class="tableb" align="center"><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" border="0" /></td>
 <td class="tablecat" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><table cellpadding="0" cellspacing="0">
  <tr class="tablecat_fc">
   <td><span class="normalfont"><if($show_hide == 1)><then><a href="$current_url"><img src="{$style['imagefolder']}/minus.gif" border="0" alt="{$LANG_START_DEACTIVATE_CAT}" title="{$LANG_START_DEACTIVATE_CAT}" /></a></then><else><if($show_hide == 2)><then><a href="$current_url"><img src="{$style['imagefolder']}/plus.gif" border="0" alt="{$LANG_START_SHOWCAT}" title="{$LANG_START_SHOWCAT}" /></a></then></if></else></if></span></td>
   <td><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont"><if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if></span></td>
  </tr>
 </table></td>
</tr>
 
 </then>
  
  <else>
 
 <tr>
 <td class="tableb" align="center"></td>
 <td class="tablecat" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left">
  <table cellpadding="0" cellspacing="0">
   <tr class="tablecat_fc">
    <td><img src="{$style['imagefolder']}/$onoff.gif" border="0" alt="" title="" /></td>
    <td><span class="normalfont"><if($show_hide == 1)><then><a href="$current_url"><img src="{$style['imagefolder']}/minus.gif" border="0" alt="{$LANG_START_DEACTIVATE_CAT}" title="{$LANG_START_DEACTIVATE_CAT}" /></a></then><else><if($show_hide == 2)><then><a href="$current_url"><img src="{$style['imagefolder']}/plus.gif" border="0" alt="{$LANG_START_SHOWCAT}" title="{$LANG_START_SHOWCAT}" /></a></then></if></else></if></span></td>
    <td><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont"><if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if></span></td>
   </tr>
  </table>
 </td>
</tr>
 
 
 </else>
  </if>
  
  </else>
 </if>



Wo habe ich was übersehen..saß gestern 6 Stunden dran..und habe es nicht gefunden?


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH