Archives FluxBB.fr

Les archives de FluxBB.fr

Vous n'êtes pas identifié(e).

#1 08-07-2007 20:50:21

oxbow151
Membre

[Résolu] pb icones forums

J'ai cherché comment faire pour changer les icônes a coté des sections de mon forum. J'ai trouvé mon bonheur sur l'aide du site, mais un pb persiste ! Les images ne sont pas affichées entièrement !

Pour mieux vous rendre compte mon site se trouve ici :

http://oxbow151.free.fr/forums/index.php

Merci de vos réponses

Hors ligne

#2 08-07-2007 21:49:49

BiH
Membre

Re : [Résolu] pb icones forums

Il faut modifier le CSS.

Hors ligne

#3 08-07-2007 22:17:33

oxbow151
Membre

Re : [Résolu] pb icones forums

oui je sais ca lol mais le pb est l'endroit dans le css happy

Hors ligne

#4 08-07-2007 23:37:59

Elesar
Membre

Re : [Résolu] pb icones forums

Comme dit ici, il faut modifier ton style_css.css.

Si les images que tu as choisi sont trop grande, il te suffit de modifier les tailles par des height: XXpx etc..

Hors ligne

#5 08-07-2007 23:53:18

oxbow151
Membre

Re : [Résolu] pb icones forums

c'est ce que j'ai fais ! lol

Voici le css de mon style (ce qui donne ce que j'ai sur le forum !)

/*----------------------------------------------------*/
/*       Official PunBB style from SIBIRSKY.ORG       */
/*      Copyright (c) ascerb (admin@sibirsky.org)     */
/*----------------------------------------------------*/




/****************************************************************/
/* 1. IMPORTED STYLESHEETS */
/****************************************************************/

/* Import the basic setup styles */
@import url(imports/base.css);
/* Import the colour scheme */
@import url(imports/sibirsky_org_cs.css);

/****************************************************************/
/* 2. TEXT SETTINGS */
/****************************************************************/

/* 2.1 This sets the default Font Group */

.pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP {
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}

.pun {FONT-SIZE: 11px; LINE-HEIGHT: normal}

/* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/
* HTML .pun {FONT-SIZE: 68.75%}
/* End IE Win Font Size */

/* Set font size for tables because IE requires it */
.pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em}

/* 2.2 Set the font-size for preformatted text i.e in code boxes */

.pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace}

/* 2.3 Font size for headers */

.pun H2, .pun H4 {FONT-SIZE: 1em}
.pun H3 {FONT-SIZE: 1.1em}


/* 2.4 Larger text for particular items */
DIV.postmsg P {LINE-HEIGHT: 1.4}
DIV.postleft DT {FONT-SIZE: 1.1em}
.pun PRE {FONT-SIZE: 1.2em}

/* 2.5 Bold text */

DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI,
DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold}

/****************************************************************/
/* 3. LINKS */
/****************************************************************/

/* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */

#brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link,
.blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited,
.blockmenu A:link, .blockmenu A:visited {
    TEXT-DECORATION: none
}

/* 3.2 Underline on hover for links in headers and main menu */

#brdmenu .blockpost H2 A:hover {font-weight: bold;TEXT-DECORATION: none}
#brdmenu A:hover {color: #35567C;}

/****************************************************************/
/* 4. BORDER WIDTH AND STYLE */
/****************************************************************/

/* 4.1 By default borders are 1px solid */

DIV.box, .pun TD, .pun TH, .pun BLOCKQUOTE, DIV.codebox, DIV.forminfo, DIV.blockpost LABEL {
    BORDER-STYLE: solid;
    BORDER-WIDTH: 1px
}

.pun TH {border-top: 0px}

/* 4.2 Special settings for the board header. */

#brdheader DIV.box {BORDER-TOP-WIDTH: 1px}

/* 4.3 Borders for table cells */

.pun TD, .pun TH {
    BORDER-BOTTOM: none;
    BORDER-RIGHT: none
}

.pun .tcl {BORDER-LEFT: none}

/* 4.4 Special setting for fieldsets to preserve IE defaults */

DIV>FIELDSET {
    BORDER-STYLE: solid;
    BORDER-WIDTH: 1px
}

/****************************************************************/
/* 5. VERTICAL AND PAGE SPACING */
/****************************************************************/

/* 5.1 Page margins */

HTML, BODY {MARGIN: 0;PADDING: 0; text-align: center;}
#punwrap {margin:10px 10px}

/* 5.2 Creates vertical space between main board elements (Margins) */

DIV.blocktable, DIV.block, DIV.blockform, DIV.block2col, #postreview {MARGIN-BOTTOM: 10px}
#punindex DIV.blocktable, DIV.blockpost {MARGIN-BOTTOM: 10px}
DIV.block2col DIV.blockform, DIV.block2col DIV.block {MARGIN-BOTTOM: 0px}

/* 5.3 Remove space above breadcrumbs, postlinks and pagelinks with a negative top margin */

DIV.linkst, DIV.linksb {MARGIN-TOP: -8px}
DIV.postlinksb {MARGIN-TOP: -4px}

/* 5.4 Put a 12px gap above the board information box in index because the category tables only
have a 6px space beneath them */

#brdstats {MARGIN-TOP: 10px}

/****************************************************************/
/* 6. SPACING AROUND CONTENT */
/****************************************************************/

/* 6.1 Default padding for main items */

DIV.block DIV.inbox, DIV.blockmenu DIV.inbox {PADDING: 3px 6px}
.pun P, .pun UL, .pun DL, DIV.blockmenu LI, .pun LABEL, #announce DIV.inbox DIV {PADDING: 3px 0}
.pun H2 {PADDING: 4px 6px}

/* 6.2 Special spacing for various elements */

.pun H1 {PADDING: 3px 0px 0px 0px}
#brdtitle P {PADDING-TOP: 0px}
DIV.linkst {PADDING: 8px 6px 3px 6px}
DIV.linksb, DIV.postlinksb {PADDING: 3px 6px 8px 6px}
#brdwelcome, #brdfooter DL A, DIV.blockmenu LI, DIV.rbox INPUT  {LINE-HEIGHT: 1.4em}
#viewprofile DT, #viewprofile DD {PADDING: 0 3px; LINE-HEIGHT: 2em}

/* 6.4 Create some horizontal spacing for various elements */

#brdmenu LI, DIV.rbox INPUT, DIV.blockform P INPUT  {MARGIN-RIGHT: 7px}

/****************************************************************/
/* 7. SPACING FOR TABLES */
/****************************************************************/

.pun TH, .pun TD {PADDING: 4px 6px}
.pun TD P {PADDING: 5px 0 0 0}

/****************************************************************/
/* 8. SPACING FOR POSTS */
/****************************************************************/

/* 8.1 Padding around left and right columns in viewtopic */

DIV.postleft DL, DIV.postright {PADDING: 6px}

/* 8.2 Extra spacing for poster contact details and avatar */

DD.usercontacts, DD.postavatar {MARGIN-TOP: 5px}
DD.postavatar {MARGIN-BOTTOM: 5px}

/* 8.3 Extra top spacing for signatures and edited by */

DIV.postsignature, DIV.postmsg P.postedit {PADDING-TOP: 15px}

/* 8.4 Spacing for code and quote boxes */

DIV.postmsg H4 {MARGIN-BOTTOM: 10px}
.pun BLOCKQUOTE, DIV.codebox {MARGIN: 5px 15px 15px 15px; PADDING: 8px}

/* 8.5 Padding for the action links and online indicator in viewtopic */

DIV.postfootleft P, DIV.postfootright UL, DIV.postfootright DIV {PADDING: 10px 6px 5px 6px}

/* 8.6 This is the input on moderators multi-delete view */

DIV.blockpost INPUT, DIV.blockpost LABEL {
    PADDING: 3px;
    DISPLAY: inline
}

P.multidelete {
    PADDING-TOP: 15px;
    PADDING-BOTTOM: 5px
}

/* 8.7 Make sure paragraphs in posts don't get any padding */

DIV.postmsg P {PADDING: 0}

/****************************************************************/
/* 9. SPECIAL SPACING FOR FORMS */
/****************************************************************/

/* 9.1 Padding around fieldsets */

DIV.blockform FORM, DIV.fakeform {PADDING: 20px 20px 15px 20px}
DIV.inform {PADDING-BOTTOM: 12px}

/* 9.2 Padding inside fieldsets */

.pun FIELDSET {PADDING: 0px 12px 0px 12px}
DIV.infldset {PADDING: 9px 0px 12px 0}
.pun LEGEND {PADDING: 2px 6px}

/* 9.3 The information box at the top of the registration form and elsewhere */

DIV.forminfo {
    MARGIN-BOTTOM: 12px;
    PADDING: 9px 10px
}

/* 9.4 BBCode help links in post forms */

UL.bblinks LI {PADDING-RIGHT: 20px}

UL.bblinks {PADDING-BOTTOM: 10px; PADDING-LEFT: 4px}

/* 9.5 Horizontal positioning for the submit button on forms */

DIV.blockform P INPUT {MARGIN-LEFT: 12px}

/****************************************************************/
/* 10. POST STATUS INDICATORS */
/****************************************************************/

/* 10.1 These are the post status indicators which appear at the left of some tables.
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
.isticky = sticky topics. By default only .inew is different from the default.*/

div.icon {
    float: left;
    display: block;
    width:18px; /* Hauteur de l'image */
    height:19px; /* largeur de l'image */
    background-repeat: no-repeat; /*Empêche les répétitions de l'image*/
}

DIV.searchposts DIV.icon {MARGIN-LEFT: 0}

/* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The
margin creates space for the post status indicator */

TD DIV.tclcon {MARGIN-LEFT: 2.3em}

/****************************************************************/
/* 11. EXTRAS */
/****************************************************************/

#brdmenu {height:20px;padding-top:1px;padding-left:8px}
#punwrap {
    width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    background-repeat: repeat-y;
}
.pun {
    background-repeat: no-repeat;
}


#brdfooter {
    width: auto;
    margin-bottom: 0;
    background-repeat:  no-repeat;
    background-position: bottom left;
}


/****************************************************************/
/** 12. CUSTOM IMAGE HEADER **/
/****************************************************************/

#brdtitle h1 span {
    display: block;
    background: url(http://img294.imageshack.us/img294/6273/banv5128184do4.png) no-repeat 0 0;
    height: 174px; /* Hauteur de l'image */
    width: 846px; /* Largeur de l'image */
    text-indent: -200%; /* Place le texte en dehors du champs de l'écran, utile pour les personnes utilisant un navigateur en ligne de commande */

Hors ligne

#6 09-07-2007 00:04:30

Elesar
Membre

Re : [Résolu] pb icones forums

Tu veux centrer tes icones c'est bien ca? hmm
si oui, tu dois rajouter un margin-top: XXpx (pour le descendre)

Hors ligne

#7 09-07-2007 00:08:10

oxbow151
Membre

Re : [Résolu] pb icones forums

je veux régler ce pb :

sanstitreun8.png

Hors ligne

#8 09-07-2007 00:18:26

Elesar
Membre

Re : [Résolu] pb icones forums

heuu.. dans ton bout de code:

/* 10.1 These are the post status indicators which appear at the left of some tables.
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
.isticky = sticky topics. By default only .inew is different from the default.*/

div.icon {
    float: left;
    display: block;
    width:18px; /* Hauteur de l'image */
    height:19px; /* largeur de l'image */
    background-repeat: no-repeat; /*Empêche les répétitions de l'image*/
}

DIV.searchposts DIV.icon {MARGIN-LEFT: 0}

/* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The
margin creates space for the post status indicator */

TD DIV.tclcon {MARGIN-LEFT: 2.3em}

Tu peux me dire où se trouvent les icones que tu veux mettres pour remplacer celles qui y sont déjà ?
(et puis j'ai l'impression que ce que tu viens de coller c'est le style.css et non le style_css.css A moins qu'il n'y ai qu'une seule page hmm)

Hors ligne

#9 09-07-2007 00:26:22

M@x
Membre

Re : [Résolu] pb icones forums

Attend là J'ALLUCINE !

Tes images sont uploadés sur Image Shack et non sur ton serveur !

CHANGE CA TT DE SUITE ! wink


...

Hors ligne

#10 09-07-2007 00:32:25

Elesar
Membre

Re : [Résolu] pb icones forums

lol oue, c'est mieux..

Quand imageshack supprimera ton image pour faire de la place, tu va etre bien enquiquiné tongue

Hors ligne

#11 09-07-2007 07:59:07

oxbow151
Membre

Re : [Résolu] pb icones forums

L'image sur imageshack c'est mon header -_- c'est pour les réglage ! Après elle sera hebergé sur free wink

Dsl, en effet j'ai copié le style.css et non le style_css.css :s

Le voici :

/*----------------------------------------------------*/
/*       Official PunBB style from SIBIRSKY.ORG       */
/*      Copyright (c) ascerb (admin@sibirsky.org)     */
/*----------------------------------------------------*/



/****************************************************************/
/* 1. BACKGROUND AND TEXT COLOURS */
/****************************************************************/

/* 1.1 Default background colour and text colour */

body{text-align:center;background : url(../../img/sibirsky_org/back.gif);}
/* Îñíîâíîé øðèôò */
.pun {COLOR: #333}


DIV.box, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #f8f8f8}
.pun BLOCKQUOTE, DIV.codebox {BACKGROUND-COLOR: #f1f1f1}
#adminconsole TD, #adminconsole TH {BORDER-COLOR: #eeeeee} /*<<<<<<<<<<<neizvestno*/

/* 1. 2 Darker background colours */

TD.tc2, TD.tc3, TD.tcmod, #postpreview, #viewprofile DD, DIV.forminfo,
#adminconsole FIELDSET TD, DIV.blockmenu DIV.box, #adstats DD {BACKGROUND-COLOR: #f5f5f5}

TH.tc3 {width: 70px}

/* 1.3 Main headers and navigation bar background and text colour */

.pun H2, #brdmenu {BACKGROUND: url(../../img/sibirsky_org/fon111.gif); COLOR: #FFF; font-weight: bold; height: 16px;}
.pun H2 {font-weight: bold;BACKGROUND: #7897BB url(../../img/sibirsky_org/fon111.gif);border-top: 1px solid #7897BB;border-left: 1px solid #7897BB;border-right: 1px solid #7897BB; height: 16px;}

/* 1.4 Table header rows */

.pun TH {BACKGROUND-COLOR: #eeeeee;}

/* 1.5 Fieldset legend text colour */

.pun LEGEND {COLOR: #5A799D}

/* 1.6 Highlighted text for various items */

.pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #7897BB}

/****************************************************************/
/* 2. POST BACKGROUNDS AND TEXT */
/****************************************************************/

/* 2.1 This is the setup for posts. */

DIV.blockpost DIV.box, DIV.postright, DIV.postfootright {BACKGROUND-COLOR: #f8f8f8}
DIV.postright, DIV.postfootright {BORDER-LEFT-COLOR: #f1f1f1}
DIV.postleft, DIV.postfootleft, DIV.blockpost LABEL {BACKGROUND-COLOR: #f1f1f1}

/* 2.2 Background for post headers and text colour for post numbers in viewtopic */

DIV.blockpost H2 {BACKGROUND-COLOR: #7897bb}
DIV.blockpost H2 SPAN.conr {COLOR: #CCC}

/* 2.3 This is the line above the signature in posts. Colour and background should be the same */

.pun HR {BACKGROUND-COLOR: #35567C; COLOR: #35567C}

/****************************************************************/
/* 3. BORDER COLOURS */
/****************************************************************/

/* 3.1 All external borders */

DIV.box {BORDER-COLOR: #7897BB}

/* 3.2 Makes the top border of posts match the colour used for post headers */

/*DIV.blockpost DIV.box {BORDER-COLOR: #686E80 #686E80 #686E80}*/
DIV.blockpost DIV.box {BORDER: 1px solid  #7897BB;BORDER-TOP: 1px solid #7897BB;}

/* 3.3 Table internal borders. By default TH is same as background so border is invisible */

.pun TD {BORDER-COLOR: #d6e1f1}
.pun TH {BORDER-COLOR: #d6e1f1}

/* 3.4 Creates the inset border for quote boxes, code boxes and form info boxes */

.pun BLOCKQUOTE, DIV.codebox, DIV.forminfo, DIV.blockpost LABEL {BORDER-COLOR: #7897BB #7897BB #7897BB #7897BB}

/* 3.5 Gecko's default fieldset borders are really nasty so this gives them a colour
without interferring with IE's rather nice default */

.pun DIV>FIELDSET {BORDER-COLOR: #7897BB} /*>>> neizvestno shto*/

/****************************************************************/
/* 4. LINK COLOURS */
/****************************************************************/

/* 4.1 This is the default for all links */

.pun A:link, .pun A:visited {COLOR: #005cb1;}
.pun A:hover {COLOR: #B42000; text-decoration:none;  background-color: #EEEEEE;}

/* 4.2 This is the colour for links in header rows and the navigation bar */

.pun H2 A:link, .pun H2 A:visited, #brdmenu A:link, #brdmenu A:visited {COLOR: #FFF;}
.pun H2 A:hover, #brdmenu A:hover {COLOR: #35567C;}

/* 4.3 This is for closed topics and "hot" links */

LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888}
LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA}
LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #B42000}
LI.maintenancelink A:hover {COLOR: #B42000}

/****************************************************************/
/* 5. POST STATUS INDICATORS */
/****************************************************************/

/* Ce sont les indicateurs de statut des messages qui apparaissent à la gauche de quelques tableaux.
.inew = nouveaux messages, .iredirect = forums de redirection, .iclosed = sujets fermés et .isticky = sujets épinglés.  Par défaut seul .inew est différent du défaut.*/

/* Sujet normal */
Div.icon {
background-image : url(http://oxbow151.free.fr/forums/img/sibirsky_org/icon_normal.gif);
}
/* Sujet ferme */
TR.iclosed Div.icon {
background-image : url(http://oxbow151.free.fr/forums/img/sibirsky_org/icon_closed.gif);
}
/* Redirection */
TR.iredirect Div.icon {
background-image : url(http://oxbow151.free.fr/forums/img/sibirsky_org/icon_redirect.gif);
}
/* Nouveau sujet */
TR.inew Div.icon {
background-image : url(http://oxbow151.free.fr/forums/img/sibirsky_org/icon_new.gif);
}
/* Sujet epingle */
TR.isticky DIV.icon {
background-image : url(http://oxbow151.free.fr/forums/img/sibirsky_org/icon_sticky.gif);
}
/* Sujet deplace */
TR.imoved DIV.icon {
background-image : url(http://oxbow151.free.fr/forums/img/sibirsky_org/icon_moved.gif);
}

/****************************************************************/
/* 6. EXTRAS */
/****************************************************************/
#brdmenu {BACKGROUND: url(../../img/sibirsky_org/fon111.gif); border-top: 1px solid #7897BB;border-bottom: 1px solid #7897BB; BACKGROUND-COLOR: #7897BB;}
/* header logo */

.pun H1 span
{
color: #3A3B3C;
font-size: 16px; /*bylo 12*/
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
}



/* board stats icon */
#punindex #brdstats div.box div.inbox dl.conl,
#punforum #brdstats div.box div.inbox dl.conl
{
background: transparent url(../../img/sibirsky_org/stats.gif) no-repeat 0% 50%;
padding-left: 38px;
}

Je précise que je n'ai pas tout les icônes mais seulement celui normal !

Hors ligne

#12 09-07-2007 09:28:18

Elesar
Membre

Re : [Résolu] pb icones forums

bon, c'est là:

div.icon {
    float: left;
    display: block;
    width:18px; /* Hauteur de l'image */
    height:19px; /* largeur de l'image */
    background-repeat: no-repeat; /*Empêche les répétitions de l'image*/
}

C'est là dedans qu'il faut que tu changes les marges, pour centrer tes icones.

Hors ligne

#13 09-07-2007 11:09:34

yemgi
Expatrié

Re : [Résolu] pb icones forums

et remplaces

    width:18px; /* Hauteur de l'image */
    height:19px; /* largeur de l'image */

par

    width:18px; /* Largeur de l'image */
    height:19px; /* Hauteur de l'image */

Hors ligne

#14 09-07-2007 13:04:51

oxbow151
Membre

Re : [Résolu] pb icones forums

le pb c'est que j'ai beau modifier ces valeurs, cela fait rien :s

Hors ligne

#15 09-07-2007 13:18:41

lkaiman
Membre

Re : [Résolu] pb icones forums

c pas les valeurs qu'il ta fait changer


Ex-C@tz
Ctrl + Shift + Echap

Hors ligne

#16 09-07-2007 14:00:47

brice16
Membre

Re : [Résolu] pb icones forums

moi j'ai pris un thème avec des icones j'ai regarder a la fin des deux fichier css, et puis j'ai modifier en fonction de mes images wink

Hors ligne

#17 09-07-2007 14:35:00

yemgi
Expatrié

Re : [Résolu] pb icones forums

dans monstyle.css, il faut modifier la valeur de margin-left pour TD DIV.tclcon

Hors ligne

#18 09-07-2007 18:32:48

oxbow151
Membre

Re : [Résolu] pb icones forums

Si je modifie margin-left pour TD DIV.tclcon sela donne ca :

sanstitrewp6.png

Hors ligne

#19 09-07-2007 19:23:51

yemgi
Expatrié

Re : [Résolu] pb icones forums

je ne comprends pas bien ce que tu veux faire alors

Hors ligne

#20 09-07-2007 20:05:16

oxbow151
Membre

Re : [Résolu] pb icones forums

pb réglé ! J'ai du m'enbrouiller dans tous mes modif lol et toutes les solutions proposés happy Merci a vous !

Hors ligne

Pied de page des forums