KahL | Ok
CSS :
Code :
- td {text-align: left; vertical-align: top;}
- b {font-weight: bold;}
- /* links */
- a:link, a:visited, a:active {color: #FFBA00; text-decoration: none;}
- a:hover {text-decoration: underline;}
- a.inv:link, a.inv:visited, a.inv:active {color: #298F00; text-decoration: none;}
- a.inv:hover {color: #FF9600;}
- a.intxt:link, a.intxt:visited, a.intxt:active {color: #555; text-decoration: none;}
- a.intxt:hover {text-decoration: underline;}
- img {border: 0);
- /* colors */
- .wh {color: #FFFFFF;}
- .blk {color: #000000;}
- .gry {color: #888888;}
- .blu {color: #38318A;}
- /* header */
- table.header td {background: #383838;}
- table.header td.div {background: #383838 url(gfx/div-dash.gif) repeat-y;}
- div.menu-item, div.menu-item-sel,
- div.menu-itemhi, div.menu-itemhi-sel {text-align: center; vertical-align:bottom; width: 104px; height: 69px; behavior: url(js/htf-selectmenuitem.htc); -moz-binding: url(js/xbl-selectmenuitem.xml#selectmenuitem);}
- div.menu-item img {margin: 48px 0px 0px 0px;}
- div.menu-item-sel img {margin: 34px 0px 0px 0px;}
- div.menu-itemhi img {margin: 37px 0px 0px 0px;}
- div.menu-itemhi-sel img {margin: 23px 0px 0px 0px;}
- div.menu-item-sel, div.menu-itemhi-sel {background: url(gfx/back-menu-sel.gif) repeat-x;}
- /* fonts */
- td, div, p, dd, dl {color: #FFF; font-size: 11px; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;}
- p {margin: 10px 0px 0px 0px; line-height: 16px;}
- h1 {font-weight: bold; margin: 10px 0px 0px 0px; font-size: 16px;}
- h2 {font-weight: bold; margin: 0px 0px 10px 0px; font-size: 14px;}
- /* main */
- td.div-dash {background: url(gfx/div-dash.gif) repeat-y;}
- img.div-dash1 {background: url(gfx/div-dash1.gif) repeat-x; margin: 4px 0px 4px 0px;}
- img.div-dash2 {background: url(gfx/div-dash1.gif) repeat-x; margin: 10px 0px 10px 0px; width: 50px;}
- p.news-hd {font-weight: bold;}
- p.news-date {font-family: Arial; color:#FFFFFF; font-size:10px; margin: 2px 0px 0px 0px;}
- p.news-lead {font-family: Arial; color:#FFFFFF; font-size:12px; margin: 10px 0px 0px 0px; line-height: 15px;}
- img.news {border: #383838 7px solid; margin: 2px 0px 4px 16px; float:right;}
- img.news1 {border: #383838 7px solid; margin-top: 20px;}
- div.rcol {padding: 0px 20px 0px 0px; text-align: right;}
- div.ccol {padding: 6px 100px 50px 20px;}
- div.ccol1 {padding: 6px 20px 50px 20px;}
- img.coll {border: #383838 7px solid; margin: 2px 16px 4px 0px;}
- img.coll1 {border: #383838 7px solid;}
- br.nofloat {style: no-float;}
- /* forms */
- form {margin: 0px;}
- input, textarea, select {background: #383838; border: 1px solid #777; padding-left: 3px; color: #FFF; font: 11px Verdana, Tahoma, "Arial CE", Arial, Helvetica, sans-serif;}
- input.submit {font-family: Tahoma, Arial, Helvetica, sans-serif;}
- textarea {overflow: auto;}
- input.btn {border-width: 0px; padding: 2px; color: #000; background: #CCC;}
- table.ccol-form td {font: 11px/16px Verdana, Tahoma, "Arial CE", Arial, Helvetica, sans-serif;}
- table.ccol-form td.descr {text-align: right;}
- table.ccol-form td input.btn {padding-left: 0px; border: 0px;}
|
et PHP :
Code :
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
- <meta name="description" content="Créateur de vos dessus-dessous, lingerie pour homme et femme, prêt-à-porter. Des collections créatives, sensuelles et élégantes. Le style imaginé pour vous">
- <meta name="keywords" content="loceanic, oceanic,ocean,creation, creations, chics, dessous, lingerie, body look,manufacturer of lingerie fabrics in eu, market of intimates, nightwear, unterwäsche, underwear, underclothes, urban underwear, wäsche, clothes, damen bekleidung, ladys wear, lingerie, damenwäsche,herren bekleidung, men s wear,herrenwäsche,mode , fashion,bh,büstenhalter, push- up bra,t-shirt, t-shirts,slip,shorty,unterhose,nachthemden,pyjama,schlafanzug,schlüpfer,tanger,mieder,unterhemd,erotische wasche,erotic clothes,erotische bekleidung,neglige,qualitätswaren,quality goods,quality wears,qualitätskleidung,vernünftige preise,franzosische mode,inspiration,reasonable prices,french fashion,soutien-gorge,strings, g-string,string tanger,taille unique,fabricants, technicite et mode,societe entreprise,la rochelle,lingerie homme,lingerie femme,lingerie,push up,tanga,shorty,debardeur ,top,t-shirt,caraco,soutien-gorge,string,slip,taille unique,fabricant,vente,vente en gros,vente en detail,grossiste,distribution,vetements,pret a porter,habillement,fabrication,tissus,soie,microfibre,dentelle,coton,broderie,createur lingerie,vente directe,dessus,dessous,pyjama,sous vetement, show room, représentant, grossiste, Poitou-Charentes, Charente-Maritime, détaillant, vente directe">
- <meta http-equiv="content-language" content="fr">
- <meta name="robots" content="all">
- <title>Locéanic-Créations: Créateur de lingerie et prêt-à-porter pour femme et homme</title>
- <link rel="stylesheet" href="defs.css" type="text/css">
- <script language="JavaScript" src="js/jsf-main.js"></script>
- <script language="JavaScript" type="text/javascript">
- <!--
- if (document.all) document.writeln('<link rel="stylesheet" href="defs-ie.css" type="text/css">');
- else if (document.getElementById) document.writeln('<link rel="stylesheet" href="defs-nn.css" type="text/css">');
- pageid = new PageID(0);
- function init() {}
- //-->
- </script>
- </head>
- <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="init(); initMain();">
- <script src="AC_RunActiveContent.js" type="text/javascript"></script>
- <script language="JavaScript" src="js/ft-header-fr.js"></script>
- <div style="display:none;">Loceanic-Creation: manufacturer of lingerie fabrics in EU.</div>
- <div style="display:none;">loceanic, oceanic,ocean,creation, creations, chics, dessous, lingerie, body look,manufacturer of lingerie fabrics in eu, market of intimates, nightwear, unterwäsche, underwear, underclothes, urban underwear, wäsche, clothes, damen bekleidung, ladys wear, lingerie, damenwäsche,herren bekleidung, men s wear,herrenwäsche,mode , fashion,bh,büstenhalter, push- up bra,t-shirt, t-shirts,slip,shorty,unterhose,nachthemden,pyjama,schlafanzug,schlüpfer,tanger,mieder,unterhemd,erotische wasche,erotic clothes,erotische bekleidung,neglige,qualitätswaren,quality goods,quality wears,qualitätskleidung,vernünftige preise,franzosische mode,inspiration,reasonable prices,french fashion,soutien-gorge,strings, g-string,string tanger,taille unique,fabricants, technicite et mode,societe entreprise,la rochelle,lingerie homme,lingerie femme,lingerie,push up,tanga,shorty,debardeur ,top,t-shirt,caraco,soutien-gorge,string,slip,taille unique,fabricant,vente,vente en gros,vente en detail,grossiste,distribution,vetements,pret a porter,habillement,fabrication,tissus,soie,microfibre,dentelle,coton,broderie,createur lingerie,vente directe,dessus,dessous,pyjama,sous vetement, show room</div>
- <div style="width: 700px;"><div style="padding: 12px 15px 15px 15px; background: #383838;">
- <div style="text-align: right; margin-bottom: 6px;">Sélection langue <a href="index-fr.php"><img src="gfx/flag-fr_.gif" alt="française" width="22" height="14" border="0"></a> <a href="index-de.php"><img src="gfx/flag-de.gif" alt="deutsch" width="22" height="14" border="0"></a> <a href="index-en.php"><img src="gfx/flag-en.gif" alt="english" width="22" height="14" border="0"></a></div>
- <script type="text/javascript">AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','500','height','395','src','video/video','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','video/video' );</script>
- <noscript>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="395">
- <param name="movie" value="video/video.swf">
- <param name="quality" value="high">
- <embed src="video/video.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="395"></embed>
- </object>
- </noscript>
- </div></div>
- <br><br>
- <table width="700" border="0" cellspacing="0" cellpadding="0"><tr><td width="50%">
- <img src="gfx/txt-ourorigins-fr.gif" alt="où sommes-nous"><br>
- <a href="aboutus-fr.html"><img src="gfx/front-mapka-2.gif" alt="qui sommes-nous"></a>
- </td><td class="div-dash"><img src="gfx/px.gif" width="1" height="1"><br></td><td width="50%" style="padding-left: 15px;">
- <a href="news.php?lang=fr"><img src="gfx/txt-news-fr.gif" alt="actualités"></a><br>
- <?php
- include"mysql.php";
- $db= new DB();
- $db->query("select * from news where lang='fr' order by datenews desc" );
- $db->close();
- if($db->num_rows())
- {
- $row = $db->next_record();
- $date = explode(" ", $row['datenews']);
- $d = explode("-",$date[0]);
- $date = $d[2]."/".$d[1]."/".$d[0];
- $titre = $row['titre'];
- $txt = $row['txt'];
- ?>
- <p class="news-hd"><a href="news.php?datenews=<?php echo $row['datenews']; ?>&lang=fr"><?php echo stripslashes($titre); ?></a></p>
- <p class="news-date"><?php echo $date; ?></p>
- <p class="news-lead">
- <?php echo stripslashes(substr($txt,0,300)); ?> [...]<br>
- <a href="news.php?datenews=<?php echo $row['datenews']; ?>&lang=fr">[en savoir plus]</a>
- </p>
- <?php
- }
- else
- {
- echo "Aucune actualité actuellement.";
- }
- ?>
- </td></tr></table>
- <script language="JavaScript" src="js/ft-footer.js"></script>
- </body></html>
|
là où ça marche pas c'est pour les balise < p > avec les classes css news-date et news-lead ... avec les autres ça fonctionne !!! |