Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 07/12/2010, 07h29   #1
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
Par défaut cadre photo original

Bonjour j'ai de simples photos que j'aimerais embellir en y mettant une touche de css.

Un peu de ce style :

http://www.pixenli.com/image1291673924003418300.html

Ou si vous avez mieux langue , je suis preneur.

merci d'avance pour votre aide.
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/12/2010, 11h33   #2
Membre actif
 
Avatar de Meloooo
 
Mélanie
Inscription : novembre 2008
Messages : 275
Détails du profil
Informations personnelles :
Nom : Mélanie
Âge : 22

Informations forums :
Inscription : novembre 2008
Messages : 275
Points : 178
Points : 178
Bonjour,
Tu peux peut être utiliser la libraire Jquery qui permet de faire des effets plutôt pas mal...
Voici un lien avec plusieurs exemples et script permettant de faire une galerie photo :
http://www.htmldrive.net/categorys/show/Image-Effects/4
Meloooo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/12/2010, 13h45   #3
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
ben au fait c'est le css qui m'intéresse....
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/12/2010, 09h07   #4
Membre actif
 
Avatar de Meloooo
 
Mélanie
Inscription : novembre 2008
Messages : 275
Détails du profil
Informations personnelles :
Nom : Mélanie
Âge : 22

Informations forums :
Inscription : novembre 2008
Messages : 275
Points : 178
Points : 178
Bonjour,
Je viens d'en trouver une sympa :
http://www.admixweb.com/2010/03/08/h...ery-with-css3/
Puis tu peux rajouter une bordure pour chaque image (car j'ai vu que dans ton exemple il y avait des bordures)
Puis tu peux faire des coins arrondis également :
http://designshack.developpez.com/tu...-bordures/#LII
Meloooo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/12/2010, 11h16   #5
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
OK, merci.

ça ne sera pas compatible le css3 ?...
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/12/2010, 11h31   #6
Membre actif
 
Avatar de Meloooo
 
Mélanie
Inscription : novembre 2008
Messages : 275
Détails du profil
Informations personnelles :
Nom : Mélanie
Âge : 22

Informations forums :
Inscription : novembre 2008
Messages : 275
Points : 178
Points : 178
Les coins arrondis font parti du CSS3
Meloooo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/12/2010, 15h34   #7
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
Bonjour,

voilà ce que j'ai fais :

http://www.pixenli.com/image1291991610094998100.html


mais je suis sûr qu'il y a moyen de faire mieux..
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/12/2010, 16h03   #8
Membre actif
 
Avatar de Meloooo
 
Mélanie
Inscription : novembre 2008
Messages : 275
Détails du profil
Informations personnelles :
Nom : Mélanie
Âge : 22

Informations forums :
Inscription : novembre 2008
Messages : 275
Points : 178
Points : 178
Bonjour,
Peut être en tentant de faire un dégradé de couleurs :
Code :
1
2
3
 
	background:-moz-linear-gradient(90deg, #c1efc4, #abd3ae); /* Firefox */
	background:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc)); /* Webkit */
Et également des ombres portées :
Code :
1
2
3
4
5
 
  border: 5px solid #fff;
  box-shadow: 0 0 6px #979797;
  -moz-box-shadow: 0 0 6px #979797;  
  -webkit-box-shadow: 0 0 6px #979797;
Ca pourrait rendre pas mal
Qu'en dis tu ?
Meloooo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/12/2010, 17h30   #9
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
Voici mon html :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
 
<div class="isol_142_first">
	<div class="cadre_arrondi_haut_140">
		Cagnes sur mer <br />France
	</div>
<div class="isol_142_int">
<img src="images/photo/12/1.jpeg" class="img_142">
</div>
	<div class="cadre_arrondi_bas_145">
 
	</div>
</div>
et mon css

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
 
 
 
.isol_142_first
{
margin-left:10px;
width:145px;
height:142px;
/*border:1px solid blue;*/
/*border:none;*/
float:left;
display:inline;
}
 
 
/* ci dessous non interprété par IE */
html>body .isol_142_first
{
height: auto;
min-height:142px;
overflow:hidden;
}
 
 
 
 
.isol_142_int
{
width:145px;
height:100px;
/*border:1px solid red;*/
border:none;
background-image: url('../images/background_145.jpg');
/*background-repeat:repeat-y;*/
}
 
 
/* ci dessous non interprété par IE */
html>body .isol_142_int
{
height: auto;
min-height:100px;
overflow:hidden;
}
 
 
 
.cadre_arrondi_bas_145
{
width:145px;
height:20px;
border:none;
background-image: url('../images/cadre_arrondi_bas_145.jpg');
}
 
 
.img_142
 {
height:100px;
margin-left:auto;
margin-right:auto;
margin-top:5px;
}
 
 
 
.cadre_arrondi_haut_140
{
width:145px;
height:25px;
/*height:35px;*/
/*border:1px solid black;*/
color:#1220B1;
font-weight:bold;
/*background-color:#ECECEC;*/
background-image: url('../images/cadre_arrondi_top_145.jpg');
text-align:center;
font-size:10px;
}
Tu le mettrais à quel niveau ton code ?
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/12/2010, 10h30   #10
Membre actif
 
Avatar de Meloooo
 
Mélanie
Inscription : novembre 2008
Messages : 275
Détails du profil
Informations personnelles :
Nom : Mélanie
Âge : 22

Informations forums :
Inscription : novembre 2008
Messages : 275
Points : 178
Points : 178
Bonjour,
Le code pour le dégradé soit tu peux le mettre dans l'entête :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
.cadre_arrondi_haut_140
{
width:145px;
height:25px;
/*height:35px;*/
/*border:1px solid black;*/
color:#1220B1;
font-weight:bold;
/*background-color:#ECECEC;*/
background-image: url('../images/cadre_arrondi_top_145.jpg');
text-align:center;
font-size:10px;
background:-moz-linear-gradient(90deg, #c1efc4, #abd3ae); /* Firefox */
	background:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc)); /* Webkit */
   border: 5px solid #fff;
  box-shadow: 0 0 6px #979797;
  -moz-box-shadow: 0 0 6px #979797;  
  -webkit-box-shadow: 0 0 6px #979797;  
 
}
soit le mettre également "derrière" l'image
Meloooo est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 19h11.


 
 
 
 
Partenaires

Hébergement Web