28173 sujets

CSS et mise en forme, CSS3

Bonjour je veux faire un design fluid avec cette image :
http://img178.imageshack.us/img178/6913/block570bleuzt3.png

J'ai commencer a faire ca :
Xhtml
a écrit :

<div id="block-570-bleu">
<h4>Titre</h4>
<div id="block">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div id="bas">
</div>
</div>


CSS
a écrit :

#block-570-bleu
{
width: 570px;
margin-bottom: 10px;
}

#block-570-bleu h4
{
background: url('images/block-570-bleu.png') no-repeat;
height: 19px;
font-size: 13px;
color: #FFF;
padding: 3px;
padding-left: 10px;
margin: 0px;
}

#block-570-bleu #block
{
padding: 2px;
width: 566px;
color: #FFF;
font-size: 12px;
overflow: hidden;
}

#block-570-bleu #bas
{
height: 12px;
background: url('images/block-570-bleu.png') no-repeat 0 -26px;
}


Le probleme c'est que j'arrive pas a mettre le bg pour le milieu c'est a dire pour #block...

Si Quelqu'un a une idée merci d'avance...
Modifié par pas4 (27 Oct 2007 - 13:46)