The outermost DIV for the gallery is relatively positioned, which can be difficult to center in some browsers. First, ensure your page contains a valid doctype at the top, such as:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
Then, use CSS's margin property in your CSS and applied to the outermost DIV of the gallery to center it, for example:
Code:
/*Make sure your page contains a valid doctype at the top*/
#simplegallery1{ //CSS for Simple Gallery Example 1
position: relative; /*keep this intact*/
visibility: hidden; /*keep this intact*/
border: 10px solid darkred;
margin: 0 auto;
}
Bookmarks