Author Topic: Easy to make photo gallery:: CSS  (Read 6487 times)

bbasujon

  • Administrator
  • VIP Member
  • *****
  • Posts: 1826
  • I want to show my performance at any where
    • View Profile
    • Higher Education
Easy to make photo gallery:: CSS
« on: January 11, 2012, 06:46:35 AM »

Easy to make photo gallery:: CSS

সহজেই বানিয়ে ফেলি ছবির গ্যালারী: সিএসএস (CSS)



এখানে মূলত: হোভার বক্সের উপর কাজ করা হয়েছে।
যখন মাউস পয়েন্টারটি কোন ছবির উপরে যায় তখনই ছবিটির সাইজের পরিবর্তিত রুপ দেখা যায়। এ কাজটি করতে নিচের কোড ব্যবহার করা হয়েছে।

*
{
border: 0px none;
margin: 0;
padding: 0
}

/* =Basic HTML, Non-essential
----------------------------------------------------------------------*/

a
{
text-decoration: none;
}

body
{
background: #fff;
color: #777;
margin: 0 auto;
padding: 50px;
position: relative;
width: 620px;
}

h1
{
background: inherit;
border-bottom: 1px dashed #ccc;
color: #933;
font: 17px Georgia, serif;
margin: 0 0 10px;
padding: 0 0 5px;
text-align: center;
}

p
{
clear: both;
font: 10px Verdana, sans-serif;
padding: 10px 0;
text-align: center;
}

p a
{
background: inherit;
color: #777;
}

p a:hover
{
background: inherit;
color: #000;
}

/* =Hoverbox Code
----------------------------------------------------------------------*/

.hoverbox
{
cursor: default;
list-style: none;
}

.hoverbox a
{
cursor: default;
}

.hoverbox a .preview
{
display: none;
}

.hoverbox a:hover .preview
{
display: block;
position: absolute;
top: -33px;
left: -45px;
z-index: 1;
}

.hoverbox img
{
background: #fff;
border-color: #aaa #ccc #ddd #bbb;
border-style: solid;
border-width: 1px;
color: inherit;
padding: 2px;
vertical-align: top;
width: 100px;
height: 75px;
}

.hoverbox li
{
background: #eee;
border-color: #ddd #bbb #aaa #ccc;
border-style: solid;
border-width: 1px;
color: inherit;
display: inline;
float: left;
margin: 3px;
padding: 5px;
position: relative;
}
/* ছবির উপরে মাউস পয়েন্টারের ইফেক্ট  */
.hoverbox .preview
{
border-color: #000;
width: 200px;
height: 150px;
}
প্রজেক্টটি ডাউনলোড করে নিজে নিজে কাজ করুন। attachments below
Acquire the knowledge and share the knowledge so that knowing,learning then sharing - all are the collection