Jump to content

I Need Help Onces Again


Recommended Posts

ok i create a slideshow "from an tuts" which works pretty well with words, but when it comes to images it doesnt really center and keep the height that i want 0.o how do i fix this? or am i missing something, anywho ill go buggin around with it, n if i fix it ill show wat i did or explain wat i did but i would like some opinions tho :D i work better with opinions

Link to post
Share on other sites
Give the images the same height!
was trying to avoid resizing the images but i guess i got no other choose huh? what about getting it to be in the middle of the slideshow? cause at the moment its to the left 0.o i try changing it but it keeps on messin up the dam buttons but ill try something and c if that works n let ya know
Link to post
Share on other sites

To center images, use text-align. To center them vertically, use vertical-align and set the line-height of the container to be equal to the height of the container. You can use CSS to apply a max-height to the images to make sure they don't exceed the height of the container.

.gallery_container {   height: 500px;  line-height: 500px;  text-align: center;}.gallery_container img {  max-height: 490px;}<div class="gallery_container">  <img src="" alt=""></div>

Link to post
Share on other sites
To center images, use text-align. To center them vertically, use vertical-align and set the line-height of the container to be equal to the height of the container. You can use CSS to apply a max-height to the images to make sure they don't exceed the height of the container.
.gallery_container {    height: 500px;  line-height: 500px;  text-align: center;}.gallery_container img {  max-height: 490px;}<div class="gallery_container">  <img src="" alt=""></div>

alrite thanks ill try that n let u know wat happen
Link to post
Share on other sites

yaaaaaaaaaaaay i got it to work 0.o i use the max-height and since i was using the <p> tag i added an align to it which pushes the image to the center of the frame 0.o awwwww all smiley to me lol thanks guys

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...