Jump to content

Galerie Foto In Css


gaby

Recommended Posts

Nu este foarte greu de realizat o galerie foto in CSS.

In pagina in care doriti sa creati galeria intre tag-urile <head></head> introduceti codul CSS:

<style type="text/css">

.popup{
position: relative;
z-index: 0;
}

.popup:hover{
background-color: transparent;
z-index: 80;
}

.popup span{
position: absolute;
background-color: #CCCCCC;
padding: 5px;
left: -1000px;
border: 1px dotted;
visibility: hidden;
color: black;
text-decoration: none;
}

.popup span img{
border-width: 0;
padding: 5px;
}

.popup:hover span{
visibility: visible;
top: 0;
left: 80px;
}

</style>[/html]

Apoi intre tag-urile [b][color=orange]<body></body>[/color][/b] introduceti:

[html]<a href="#link-ul vostru" target="_blank" class="popup"><img src="poza_voastra1.jpg" width="100" height="100" border="1" /><span><img src="poza_voastra1.jpg" width="170" height="150" /><br />Descriere sau un titlu aici.</span></a>

<a href="#link-ul vostru" target="_blank" class="popup"><img src="poza_voastra2.jpg" width="100" height="100" border="1" /><span><img src="poza_voastra2.jpg" width="170" height="150" /><br />Descrierea voastra sau un titlu aici.</span></a>

Puteti adauga mai multe poze repetand codul(bineinteles inlocuind numele pozei descrierea si link-ul):

<a href="#link-ul vostru" target="_blank" class="popup"><img src="poza_voastra2.jpg" width="100" height="100" border="1" /><span><img src="poza_voastra2.jpg" width="170" height="150" /><br />Descrierea voastra sau un titlu aici.</span></a>

Sper sa va placa, succes :-h

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

  • 7 months later...

nu, acolo pui un link catre o pagina care vrei sa se deschida atunci cand vei da click pe poza.

daca nu vrei sa ai nici un link la poza, ori pui # daca nu vrei sa se deschida nici o pagina, ori inlaturi legatura catre pagina; stergi codul:

<a href="#link-ul vostru" target="_blank" class="popup"></a>

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.