Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problème en CSS

Featured Replies

Posté(e)

Salut tout le monde,

j'ai quelques petits prob en CSS avec mon site :

quand le bloc du milieu (corps dans la css, et news sur l'écran) s'agrandit, tout est décallé avec, ça fait que j'ai un grand espace entre la fin du bloc et le bas du site.

De même, quand je veux mettre padding-right: 15px pour que le texte rentre bien dans le fond noir, il ne se passe rien.

Voici ma CSS :

/* CSS Document */
BODY {
background-color: #d2d2d2;
margin: 0;
color: #ffffff;
}
#header {
background-image: url('gfx/haut.jpg');
width: 783px;
height: 191px;
}
#menu_haut {
background-image: url('gfx/menu_haut.jpg');
width: 195px;
height: 90px;
}
#menu_bg {
background-image: url('gfx/menu_bg.gif');
width: 173px;
height: 100%;
padding-left: 12px;
}
#menu_bas {
background-image: url('gfx/menu_bas.jpg');
width: 185px;
height: 202px;
}
#corps_haut {
background-image: url('gfx/corps_news.gif');
width: 563px;
height: 24px;
margin-left: 205px;
margin-top: 20px;
float: left;
}
#corps {
text-align: justify;
background-image: url('gfx/corps_bg.gif');
width: 548px;
margin-left: 205px;
background-repeat: repeat-y;
padding-left: 15px;
float: left;
}
#corps_bas {
background-image: url('gfx/corps_bas.gif');
width: 563px;
height: 15px;
margin-left: 205px;
float: left;
}
#footer {
background-image: url('gfx/bas.jpg');
width: 783px;
height: 63px;
}

Et ma page xhtml :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>// Gamers Enjoy</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="defaut.css" />
</head>

<body>
<div id="header">
</div>
<!-- CORPS DU SITE -->
<div id="corps_haut">
</div>
<div id="corps">
un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site un petit test du corps du site
</div>
<div id="corps_bas">
</div>
<!-- // CORPS DU SITE -->
<!-- MENU -->
<div id="menu_haut">
</div>
<div id="menu_bg">

test de menu
</div>
<div id="menu_bas">
</div>

<div id="footer">
</div>
</body>
</html>

De même, est-ce qu'il y aurait possibilité d'alleger le code ?

Merci d'avance pour vos réponses :transpi:.

Modifié par koskoz

Posté(e)

Déjà, met

text-align:justify;

pour le paragraphe dans le texte. On y verra un peu plus claire.

Sinon essais de faire :

border:0px solid;

pour le div dans lequel est le texte.

En esperant avoir été utile .....

Modifié par Sarvok

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.