Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Lightbox appearing at bottom of screen

COW Forums : Adobe Dreamweaver

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index


Alex DunbarLightbox appearing at bottom of screen
by on Feb 23, 2012 at 6:37:29 pm

Hey all, my lightbox is appearing at the bottom of my screen for some reason. Here is the code for my page (and immediately following that, my js for the lightbox):


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- InstanceBegin template="/Templates/MP_Template.dwt" codeOutsideHTMLIsLocked="false" -->


<!-- InstanceBeginEditable name="doctitle" -->
Untitled Document
<!-- InstanceEndEditable -->

<!--
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background: #42413C;
margin: 0;
padding: 0;
color: #000;
background-color: #CCC;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
padding: 5 px;
margin: 12 px;
}
.Link1 {
font-size: 12px;
font-weight: bold;
color: #666;
text-align: center;
}
.heading {
color: #810E29;
font-size: 16px;
font-weight: bold;
}
p {
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 20px;
padding-left: 20px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
color: #42413C; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
text-decoration: none;
}
a:visited {
color: #6E6C64;
text-decoration: none;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
text-decoration: none;
}

/* ~~ this fixed width container surrounds the other divs ~~ */
.container {
width: 780px;
background: #FFF; /* the auto value on the sides, coupled with the width, centers the layout */
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}

/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
.header {
background: #ADB96E;
width: 780px;
height: 123px;
}

/* ~~ This is the layout information. ~~

1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.

*/

.content {
padding: 10px 0;
font-size: 11px;
}

/* ~~ The footer ~~ */
.footer {
padding: 10px 0;
font-size: 9px;
background-color: #CCC;
}

/* ~~ miscellaneous float/clear classes ~~ */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class can be placed on a or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.div1 {
height: 359px;
width: 780px;
}
.table1 {
padding: 20px;
text-align: center;
margin: 20px;
}
-->

<!-- InstanceBeginEditable name="head" -->




<!-- InstanceEndEditable -->



a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}






<!-- end .header -->


<!-- InstanceBeginEditable name="EditableRegion" -->

 




// BeginWebWidget lightbox_gallery

$(function() {
$('#gallery1 a').lightBox();
});


// EndWebWidget lightbox_gallery

 


<!-- end .content -->



<!-- InstanceEndEditable -->

© 2012 Merit Pump & Equipment CO. All rights reserved. | Home | About | Contact | FE Myers | Kobe Triplex | 975 Lincoln Way West, Wooster, OH 44691 | PO Box 960


<!-- end .footer -->

<!-- end .container -->


var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});


<!-- InstanceEnd -->



CSS for lightbox gallery:

@charset "utf-8";
/* CSS Document */
/* jQuery lightBox plugin - Gallery style */
/* This layout is for sample purposes
Feel free to edit it to suit your needs
*/
.lbGallery {
background-color: #FFF;
padding: 10px;
width: 520px;
text-align: center;
}
.lbGallery ul { list-style: none; }
.lbGallery ul li { display: inline; }
.lbGallery ul img {
border-top-width: 5px;
border-right-width: 5px;
border-bottom-width: 20px;
border-left-width: 5px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #FFF;
border-right-color: #FFF;
border-bottom-color: #FFF;
border-left-color: #FFF;
}
.lbGallery ul a:hover img {
color: #fff;
border-top-width: 5px;
border-right-width: 5px;
border-bottom-width: 20px;
border-left-width: 5px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #F00;
border-right-color: #F00;
border-bottom-color: #F00;
border-left-color: #F00;
position: absolute;
}
.lbGallery ul a:hover {
color: #fff;
border-top-color: #C09;
position: absolute;
}


Posts Index
Reply   Like  
Share on Facebook


Current Message Thread:
  • Lightbox appearing at bottom of screen by Alex Dunbar on Feb 23, 2012 at 6:37:29 pm




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]