Skip to content Skip to sidebar Skip to footer

Navigation Bar Messing With Other Elments In Css

Hi there i had a nav bar which was working perfectly. Then i added a lightbox effect. Both work perfectly however in my css they are messing up. When i added some css to lightbox e

Solution 1:

Apply the lightbox CSS only to elements inside the lightbox:

.lightboxa{
  border:3px solid #ccc;
  display:block;
  float:left;
  margin:10px;
}

.lightboxaimg{
  margin:3px;
}

.lightboxa:hover{
  border:3px solid #666;
}
.lightboximg{
  display:block;
}

Demo: http://jsfiddle.net/42BjW/ (I don't have the lightbox JS, so obviously the lightbox itself is not working)

Solution 2:

just add .lightbox in front of your later classes , the lightbox css

Post a Comment for "Navigation Bar Messing With Other Elments In Css"