lightbox

Reply

Join Date: Sep 2009
Posts: 11
Reputation: whiteberry is an unknown quantity at this point 
Solved Threads: 0
whiteberry whiteberry is offline Offline
Newbie Poster

lightbox

 
0
  #1
Sep 2nd, 2009
In terms of web design, how do you prevent a lightbox taking on the CSS style for the whole webpage?

When developing a website and want users to click thumbnail images and the the bigger version of the image opens up in a lightbox but because of the css for the website the image is off to the right instead of in the middle of the lightbox box.

How do you prevent the lightbox taking on the CSS style for the rest of the website so that the images display properly in the lightbox?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 101
Reputation: valonesal is an unknown quantity at this point 
Solved Threads: 2
valonesal's Avatar
valonesal valonesal is offline Offline
Junior Poster

Re: lightbox

 
0
  #2
Sep 3rd, 2009
Have you tried assigning a css style to the lightbox div if you are using one.

This should override your other css and allow you to format it the way you want.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 79
Reputation: rudevils is an unknown quantity at this point 
Solved Threads: 9
rudevils rudevils is offline Offline
Junior Poster in Training

Re: lightbox

 
0
  #3
Sep 4th, 2009
i think u should make different style for your lightbox
ex :
HTML and CSS Syntax (Toggle Plain Text)
  1. .lightbox {
  2. text-align: center;
  3. etc ....
  4. }
  5. .lightbox image {
  6. border: 0;
  7. etc ....
  8. }
so it will not affect your main image class
If love is blind, why there's a bikini ??

Post your article at Bali Side Notes share your knowledge
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 482 | Replies: 2
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC