Log in

View Full Version : trying to get image links centered inside div.



bretlee
01-28-2009, 06:55 AM
hi, i have a series of horizontal image links, and i want to try to center them in their containing div. as it is, they are floated to the left on a white background div. im not sure how to get them centered. any help greatly appreciated again.

here is the css for the page.
Code:
@charset "utf-8";
/* CSS Document */

body {
margin: 0; /* clear for browsers */
padding: 0;
background-color: #517E86;
}
#container {
margin: 0 auto 0 auto;
width: 800px;
overflow: auto;
}

#header {
background-image: url(header.gif);
background-repeat: no-repeat;
width: 800px;
height: 96px;
}
#navigation {

width: 800px;
height: 20px;

}

#imgnavigation {
width: 800px;
height: 122px; /* images height*/
background-color: #ffffff;.

Can any body solve it.
thanks

coothead
01-28-2009, 08:42 PM
Hi there bretlee,

I gave a very similar reply to your dilemma here. ;)...
http://www.htmlforums.com/css/t-trying-to-get-image-links-centered-inside-div-112556.html

coothead