Fork me on GitHub




(1) 2 »


probleme de banniere
Aspirant
Inscrit: 01/07/2006 15:08
De nantes
Messages: 46
j'aimerai mettre une banniere sur mon site donc j'ai créé l'image. j'ai demandé à ce qu'elle prenne 100% de la place. mais avec ça, elle dépasse sur la droite de ma page et m'oblige a avoir un ascenceur horizontale! c très moche! je pense que c'est pcq elle a trop de pixels en largeur mais y a t'il un moyen de l aplatir a la bonne taille sans devoir réduire sa qualité?

Posté le : 10/07/2006 11:29

Edité par Christian sur 10/07/2006 16:39:08
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Aspirant
Inscrit: 29/02/2004 13:59
Messages: 90
Donne l'url de ton site ou remplit ton profil ca permettra de mieux cerner le problème.
Merci

Posté le : 10/07/2006 12:26
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Aspirant
Inscrit: 01/07/2006 15:08
De nantes
Messages: 46

Posté le : 10/07/2006 13:31
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Aspirant
Inscrit: 29/02/2004 13:59
Messages: 90
Ton site est en local.
Il n'est accessible que depuis ta machine.
Donne le code de ton fichier theme.html en précisant le point qui ne va pas!

Posté le : 10/07/2006 13:48
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Aspirant
Inscrit: 01/07/2006 15:08
De nantes
Messages: 46
voici le code. le problème est que ma bannière dépasse de ma page alors que je demande à ce qu'elle prenne 100% de l'écran. ( par la meme occasion, est ce que sa change qqch d'etre en local pour mettre le site sur le net après?)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="Microsoft FrontPage 5.0" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
</head>
<body>
<table cellspacing="0" width="100%">
<tr>
<td id="headerbar" width="100%">
<head>
</head>
<body>
</body>
<head>
</head>
<body>
</body>
<head>
</head>
<body>
</body>
<head>
</head>
<body>
</body>
<head>
</head>
<head>
<head>
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
</body>
<body>
</body>
<head>
</head>
<body>

</body>
</head>
<body>
<table cellspacing="0" width="100%">
<tr id="header">
<td id="headerbanner" width="100%">
<p align="center"><{$xoops_banner}></td>
</tr>
</table>

</body>
</td>
</tr>
</table>
<img src="http://127.0.0.1/xoops/htdocs/themes/default/hbar3.jpg" width="100%" height="20">
<table cellspacing="0">
<tr>
<td id="leftcolumn">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<{include file="default/theme_blockleft.html"}>
<{/foreach}>
<!-- End left blocks loop -->

</td>

<td id="centercolumn">
<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>
<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn">
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn">
<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->
</td>
</tr>
</table>
<{/if}>
<!-- End display center blocks -->
<div id="content">
<{$xoops_contents}>
</div>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<table cellspacing="0">
<{if $xoBlocks.page_bottomcenter}>
<tr><td id="bottomCcolumn" colspan="2">
<{foreach from=$xoBlocks.page_bottomcenter item=block}><{include file="default/theme_blockcenter_c.html"}><{/foreach}>
</td>
</tr>
<{/if}>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
<tr>
<td id="bottomLcolumn">
<{foreach from=$xoBlocks.page_bottomleft item=block}><{include file="default/theme_blockcenter_l.html"}><{/foreach}>
</td>
<td id="bottomRcolumn">
<{foreach from=$xoBlocks.page_bottomright item=block}><{include file="default/theme_blockcenter_r.html"}><{/foreach}>
</td>
</tr>
<{/if}>
</table>
<{/if}>
</td>
<{if $xoops_showrblock == 1}>
<td id="rightcolumn">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<{include file="default/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
</td>
<{/if}>
</tr>
</table>

<table cellspacing="0">
<tr id="footerbar">
<td><a href="http://www.xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a></td>
</tr>
</table>
</body>
</html>

Posté le : 10/07/2006 14:10
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Xoops accro
Inscrit: 04/02/2003 01:54
De Le Mans
Messages: 12273
Il faudrait commencer par nettoyer ton code html afin d'y voir plus clair, car là c'est pas très joli.

une page en html s'écrit ainsi :

<html>
<
head>
....
</
head>
<
body>
......
</
body>
</
html>


Comme tu vois les balises head ou body ne sont pas répétées x fois, elles sont écrites une fois pour l'ouverture et une fois pour la fermeture où elles sont préfixées d'un /.

Si le code n'est pas compréhensible par le navigateur c'est donc normal que le résultat ne soit pas celui attendu.

Posté le : 10/07/2006 14:25
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Aspirant
Inscrit: 01/07/2006 15:08
De nantes
Messages: 46
sa ne change toujours rien. la banière dépasse toujours. ( soit dit en passant, est ce que tu sais si ça change qqch d'etre en local pour le référencement du site?)

Posté le : 10/07/2006 14:37
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Aspirant
Inscrit: 01/07/2006 15:08
De nantes
Messages: 46
sur firefox, la banniere s'affiche normalement quand je met 100% met sur IE elle dépasse. comment faire?

Posté le : 10/07/2006 15:48
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Régulier
Inscrit: 27/01/2005 00:14
De Paris
Messages: 292
Ne peut tu pas changer "100%" en par exemple "450" (px) ?
Ceci fixerai la taille si tu a des bannières de même grandeur.

Autrement tu pe toujour créer deux style css, un pour IE (style.css) et un pour FF (styleNN.css).

Posté le : 10/07/2006 16:14

Les mots des hommes sont nombreux mais la vérité est divine et unique.
Partager Twitter Partagez cette article sur GG+
Re: probleme de banniere
Régulier
Inscrit: 27/01/2005 00:14
De Paris
Messages: 292
Ta source un peu nettoyer :

> theme.html

Citation :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="Microsoft FrontPage 5.0" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
<table cellspacing="0" width="100%">
<tr>
<td id="headerbar" width="100%"><{$xoops_module_header}>
<table cellspacing="0" width="100%">
<tr id="header">
<td id="headerbanner" width="100%"><p align="center"><{$xoops_banner}></td>
</tr>
</table>
<img src="http://127.0.0.1/xoops/htdocs/themes/default/hbar3.jpg" width="100%" height="20">
<table cellspacing="0">
<tr>
<td id="leftcolumn"><!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<{include file="default/theme_blockleft.html"}>
<{/foreach}>
<!-- End left blocks loop -->
</td>
<td id="centercolumn"><!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>
<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2"><!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn"><!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn"><!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->
</td>
</tr>
</table>
<{/if}>
<!-- End display center blocks -->
<div id="content"> <{$xoops_contents}> </div>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<table cellspacing="0">
<{if $xoBlocks.page_bottomcenter}>
<tr>
<td id="bottomCcolumn" colspan="2"><{foreach from=$xoBlocks.page_bottomcenter item=block}><{include file="default/theme_blockcenter_c.html"}><{/foreach}> </td>
</tr>
<{/if}>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
<tr>
<td id="bottomLcolumn"><{foreach from=$xoBlocks.page_bottomleft item=block}><{include file="default/theme_blockcenter_l.html"}><{/foreach}> </td>
<td id="bottomRcolumn"><{foreach from=$xoBlocks.page_bottomright item=block}><{include file="default/theme_blockcenter_r.html"}><{/foreach}> </td>
</tr>
<{/if}>
</table>
<{/if}> </td>
<{if $xoops_showrblock == 1}>
<td id="rightcolumn"><!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<{include file="default/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
</td>
<{/if}> </tr>
</table>
<table cellspacing="0">
<tr id="footerbar">
<td><a href="http://www.xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a></td>
</tr>
</table>
</body>
</html>

Posté le : 10/07/2006 16:20

Les mots des hommes sont nombreux mais la vérité est divine et unique.
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
(1) 2 »



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

21 Personne(s) en ligne (16 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 21 | Plus ...