Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- How to Centralize Div Box


franciscrick - 7:49 am on Jun 25, 2012 (gmt 0)


hi guys,

i need some advice on how to tweak the css code to make the text box aligned to the middle of the slideshow stroller here.

As you can see, the caption is always aligned left of the picture. This is frustrating because it doesn't look nice from a user stand point.

Could anyone help with offering advice to centralizing the caption?

frnkc

This is the code from the CSS file below...


/*Caption Version*/
.scrollgallery .imageareaContent .caption_container{
position:relative;
display:inline;
margin:0px 5px 0px 5px;
}
.scrollgallery .imageareaContent .caption_container div {
position:absolute;
display:inline;
padding:5px 10px 5px 10px;
background-color:#fff;
margin:0px;
margin-top:0px;
z-index:auto;
top:0px;
left:0px;
line-height:13px;
}

[edited by: alt131 at 5:11 pm (utc) on Jun 25, 2012]
[edit reason] Thread Tidy [/edit]


Thread source:: http://www.webmasterworld.com/css/4469119.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com