View Full Version : Centering Text
StudioVoxPop
Apr-24-2007, 02:50 PM
Hi there,
If you click on my Galleries tab, you will notice that the names of the galleries are not centered under the thumbnails. They are just slightly to the right.
If you click on a gallery, you will notice that the names of the photos are not centered under the thumbnails. They are just slightly to the left.
In my CSS code to make the galleries line up 2 in a row, I have text-align:center; included.
Any idea why they are off? :scratch
Justin
www.studiovoxpop.com
scwalter
Apr-24-2007, 06:55 PM
Hi there,
If you click on my Galleries tab, you will notice that the names of the galleries are not centered under the thumbnails. They are just slightly to the right.
If you click on a gallery, you will notice that the names of the photos are not centered under the thumbnails. They are just slightly to the left.
In my CSS code to make the galleries line up 2 in a row, I have text-align:center; included.
Any idea why they are off? :scratch
Justin
www.studiovoxpop.com (http://www.studiovoxpop.com)
Change the first one to 120px for width (it was 115px) and add width:120px to the .photo part and it should work.
.miniBox {
width:120px;
padding:0 0 5em 0;
margin:0 120px 0;
}
.miniBox .photo {
height:auto;
_height:1px;
width:120px;
}
-Scott
StudioVoxPop
Apr-24-2007, 07:14 PM
Change the first one to 120px for width (it was 115px) and add width:120px to the .photo part and it should work.
.miniBox {
width:120px;
padding:0 0 5em 0;
margin:0 120px 0;
}
.miniBox .photo {
height:auto;
_height:1px;
width:120px;
}
-Scott
Hi Scott,
Thanks for the help! This has centered the names of the galleries under the gallery thumbnail images. But, the names of the individual photos within the galleries are still sitting off center. How can I get the names of the photos within the galleries to center under their thumbnails?
Any ideas would be appreciated.
Justin
Allen
Apr-24-2007, 08:50 PM
Hi Scott,
Thanks for the help! This has centered the names of the galleries under the gallery thumbnail images. But, the names of the individual photos within the galleries are still sitting off center. How can I get the names of the photos within the galleries to center under their thumbnails?
Any ideas would be appreciated.
Justin
This should center the captions under the photos in the galleries.
#caption_bottom {text-align:center;}
StudioVoxPop
Apr-24-2007, 09:10 PM
This should center the captions under the photos in the galleries.
#caption_bottom {text-align:center;}
Hi Allen,
This centered the title of the photo underneath the large photo but I'm trying to center the name of the photo underneath the thumbnail view.
Right now, if I click on a gallery I see thumbnails of my images and their names underneath. The names of the photos underneath the thumbnails are not centered.
Any ideas?
Justin
Allen
Apr-24-2007, 09:16 PM
Hi Allen,
This centered the title of the photo underneath the large photo but I'm trying to center the name of the photo underneath the thumbnail view.
Right now, if I click on a gallery I see thumbnails of my images and their names underneath. The names of the photos underneath the thumbnails are not centered.
Any ideas?
Justin Every gallery I looked at has the caption centered under the thumbs.:scratch
They are all set to traditional style. You have a gallery that's not centered? and what browser
are you using?
StudioVoxPop
Apr-24-2007, 09:36 PM
Every gallery I looked at has the caption centered under the thumbs.:scratch
They are all set to traditional style. You have a gallery that's not centered? and what browser
are you using?
Netscape...if you look in the Abstract gallery, it's clear when you look at the "Scary Monster 1" thumnail. The title "Scary Monster 1" is just slightly too far to the left.
Whaddya think?
Allen
Apr-24-2007, 09:53 PM
Netscape...if you look in the Abstract gallery, it's clear when you look at the "Scary Monster 1" thumnail. The title "Scary Monster 1" is just slightly too far to the left.
Whaddya think?
Checked NS7.2 and Firefox and you're right, about half an "S" to the left.
Just for grins add this in front of the caption.
Scary Monster 1
Tell the truth, when I looked I didn't notice till you pointed it out.:D
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.