Archives FluxBB.fr

Les archives de FluxBB.fr

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

#1 18-04-2010 23:05:42

Raph89
Membre

Background trop large

Bonsoir,

Après avoir fixé la largeur de mon forum je me suis aperçu que le background était beaucoup trop large (barre de défilement horizontale inutile)

J'ai chercher partout j'ai pas trouver comment le rétrécir ou peut être qu'il se répète, j'sais pas...

Si c'est le cas je ne vois pas où mettre le "no-repeat" dans le fichier css...

J'en viens donc à vous pour vous demander un peu d'aide

Hors ligne

#2 19-04-2010 00:15:38

sanjayrup
Membre

Re : Background trop large

un lien ? quelque chose ? parce que quand c'est du CSS, le probleme est dur a deviner ...

Hors ligne

#3 19-04-2010 12:29:37

Raph89
Membre

Re : Background trop large

http://ups.imagup.com/09/1271720552.png

Mon problème est que le background continue à droite alors qu'il n'y a rien ...

Dernière modification par Raph89 (19-04-2010 12:30:40)

Hors ligne

#4 19-04-2010 13:04:14

Toximityx
Membre

Re : Background trop large

Tu pourrais donner le CSS smile ?

Hors ligne

#5 19-04-2010 13:18:15

Raph89
Membre

Re : Background trop large

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

/* Import the basic setup styles */
@import url(imports/base.css);
/* Import the colour scheme */
@import url(imports/DeepBlue_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}
#brdtitle H1 {FONT-SIZE: 1.4em}

/* 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 A:hover, .blockpost H2 A:hover {TEXT-DECORATION: underline}

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

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

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

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

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

/* 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 {width:1100px; margin: 25px auto; text-align:left}


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

DIV.blocktable, DIV.block, DIV.blockform, DIV.block2col, #postreview {MARGIN-BOTTOM: 12px}
#punindex DIV.blocktable, DIV.blockpost {MARGIN-BOTTOM: 6px}
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: -12px}
DIV.postlinksb {MARGIN-TOP: -6px}

/* 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: 12px}

/****************************************************************/
/* 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 */

/* moved to _css.css
.pun H1 {PADDING: 3px 0px 0px 0}
*/

#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: 12px}

/****************************************************************/
/* 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: 0px 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;
    MARGIN-TOP: 0.1em;
    MARGIN-LEFT: 0.2em;
    DISPLAY: block;
    BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em;
    BORDER-STYLE: solid
}
*/
div.icon {
    float: left;
    display: block;
    width:19px;
    height:18px;
}

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. HEADER */
/****************************************************************/

#brdtitle h1 span {
    display: block;
    background-image: url(http://************.png);
    margin: 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    height: 150px; /* Hauteur de l'image */
    width: 850px; /* largeur de l'image */
    text-indent: -200%;
}

Dernière modification par Raph89 (19-04-2010 17:38:27)

Hors ligne

#6 19-04-2010 20:30:26

Raph89
Membre

Re : Background trop large

/* 5.1 Page margins */

HTML, BODY {MARGIN: 0; PADDING: 0; text-align:center}
#punwrap {width:1100px; margin:25px auto; text-align: left}

Ça doit sûrement se passer dans ce code... J'ai pourtant essayer quelques changements mais rien y fait j'ai toujours mon background qui continue à droite inutilement hmm

Hors ligne

#7 19-04-2010 23:59:35

NoX09
Membre

Re : Background trop large

Bonsoir,

1) Utiliser firebug (extension firefox) smile

Tutoriel de firebug

2) Petit conseil, ne pas dépassé un largeur du site de 1000px, car énormément d'écran sont encore en 1024*768. Sachant quand plus tu rajoutes une marge, cela fait beaucoup !

3) Etant donné que ton image doit se répéter et est régulière : petit trait gris sur carreau bleu, il faudrait répéter cette image réduite à l'horizontale et la verticale
Voir la propriété CSS background-image

Dernière modification par NoX09 (20-04-2010 00:00:31)


Utiliser : FAQ - AIDE - RECHERCHE

Hors ligne

#8 20-04-2010 00:31:49

sanjayrup
Membre

Re : Background trop large

@Nox: "je crois" que le margin est que en hauteur ... le droite gauche est en auto .. donc ça vient pas du margin. parcontre, le width ... apres si il a un grand ecran ... il devrai pas avoir de scrollbar.

Le probleme vient de

@import url(imports/DeepBlue_cs.css);

je parie que si tu remplace "imports/DeepBlue_cs.css" par celui d'origine ton probleme n'est plus la ... (bien que je vois pas comment dans ce fichier).

Autre idée, remet le theme Oxygen, et regarde si ton probleme est toujours la ... voir si ça vient pa d'une otre modif

Dernière modification par sanjayrup (20-04-2010 00:33:46)

Hors ligne

#9 20-04-2010 00:35:37

NoX09
Membre

Re : Background trop large

@sanjayrup : "apres si il a un grand ecran", le problème c'est que tout le monde n'a pas des grands écrans wink
Pour le margin je pense que tu dois avoir raison.

Au final un lien vers le forum serait plus pratique pour débugger ...


Utiliser : FAQ - AIDE - RECHERCHE

Hors ligne

#10 20-04-2010 11:34:31

Raph89
Membre

Re : Background trop large

Problème résolu, ça venait d'une modification antérieure : http://www.punbb.fr/forums/viewtopic.php?id=10665

echo "<div style='float:left;margin-left:42%;margin-top:-33px;width:250px;'>\n";

J'avais mis le width sur 1280 ce qui m'élargissais le background... siffle

NoX09 a écrit :

Bonsoir,

1) Utiliser firebug (extension firefox) smile

Tutoriel de firebug

2) Petit conseil, ne pas dépassé un largeur du site de 1000px, car énormément d'écran sont encore en 1024*768. Sachant quand plus tu rajoutes une marge, cela fait beaucoup !

3) Etant donné que ton image doit se répéter et est régulière : petit trait gris sur carreau bleu, il faudrait répéter cette image réduite à l'horizontale et la verticale
Voir la propriété CSS background-image

Merci pour tes conseils, j'ai fixé mon forum sur 950px

Dernière modification par Raph89 (20-04-2010 11:35:02)

Hors ligne

#11 20-04-2010 15:00:34

NoX09
Membre

Re : Background trop large

No problème wink


Utiliser : FAQ - AIDE - RECHERCHE

Hors ligne

Pied de page des forums