![]() |
Centring text horizontally & vertically
I am trying to center the text displayed at the top of the larger pop ups that scroll on the slider. This is the title of the page. I was able to center them horizontally, but not vertically. Can anyone help me out? In the css, this is .banner h2
http://174.120.16.66/~thomasse/ Thanks |
1 Attachment(s)
Add #about-us and #meet-the-team in the html (see attachment, sorry photobucket won't upload right now)
Add to CSS: Code:
#about-us h2, |
|
Hmmm, not quite there yet. Let me tinker with this a bit. Thanks for the tips
|
OK, I don't see a slider.
Perhaps this will help - centering both vertically and horizontally with examples. http://www.willmaster.com/library/we...g-with-css.php Will |
Thanks everyone. I am not sure what is going on with my code, but I can not get this to be 100% correct. I have tried several different css possibilities, but it never gets there..close but no cigar. Can anyone give me a hand with this. Hopefully, seeing the correct method will cement in my mind what I have been doing wrong & it will be a permanent lesson I will be able to use in the future. Thanks
|
http://www.youtube.com/watch?v=jUI0mVusn1A
you can also just use a class and add it to each one: Code:
.slide-vertical-center { |
Quote:
|
There is the vertical-align table hack which is what youtube uses. Wrap the <h2> in two <div>'s like so:
Code:
<div class="vcenter-container">Code:
.vcenter-container {Code:
.banner .vcenter-container { |
| All times are GMT +1. The time now is 03:58 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.