Title: vertically aligning text via css
Last modified: August 18, 2016

---

# vertically aligning text via css

 *  [shorn](https://wordpress.org/support/users/shorn/)
 * (@shorn)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/)
 * I am in the process of producing my own theme and i’m really quite pleased with
   it so far.
 * Please have a look here [http://movieblogger.net/](http://movieblogger.net/)
 * Im a bit stuck at teh moment as I need to vertically align the side bar headings(
   i.e. categories, archives etc) so that the text is in the centre of the bar (
   if you look at the moment they are all slightly lower than they should be.
 * Can anyone help with this???
 * Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [richsipe](https://wordpress.org/support/users/richsipe/)
 * (@richsipe)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530443)
 * Your images are causing the text to be pushed down. You can either float the 
   images and then valign everything, set the padding to move the text around, or
   set the align on the image to Absolute Middle using align=”absmiddle”
 * –[sig moderated]–
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530467)
 * absmiddle? Blimey.
 *  Thread Starter [shorn](https://wordpress.org/support/users/shorn/)
 * (@shorn)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530513)
 * yea that didnt work!? Any takers?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530515)
 * [This always works.](http://www.jakpsatweb.cz/css/css-vertical-center-solution.html)
 *  Thread Starter [shorn](https://wordpress.org/support/users/shorn/)
 * (@shorn)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530516)
 * Thank you for the link, I have seen similar articles to this but im still not
   really sure how to implement it.
 * Here is my css section for the sidebar, any chance of any1 demonstrating how 
   it should be altered?
 *     ```
       .sidenav {
       	float: right;
       	width: 210px;
       	background-color:#D6D6D6;
       }
   
       .sidenav h2 {
       	color: #FFFFFF;
       	font: bold 1em Arial, Helvetica, sans-serif;
       	line-height: 30px;
       	margin: 0px;
       	padding-left: 24px;
       	padding-bottom: 0px;
       	background-image:url(img/sidenavbar.jpg);
       }
   
       .sidenav h3 {
       	color: #FFFFFF;
       	font: bold 1em Arial, Helvetica, sans-serif;
       	line-height: 26px;
       	margin: 0px;
       	padding-left: 24px;
       	padding-bottom: 0px;
       	background-image:url(img/sidenavbar1.jpg);
       }
       .sidenav ul {
       	padding: 0;
       	border-top: 0px solid #d6d6d6;
       	background-color:#a0a0a0;
       }
       .sidenav li {
       	background-color: #a0a0a0;
       	list-style:none;
       	border-bottom: 0px solid #d6d6d6;
       }
       .sidenav li a {
       	font-size: 1.1em;
       	color: #FFFFFF;
       	display: block;
       	padding: 4px 0 4px 6%;
       	text-decoration: none;
       	width: 94%;
       	background-color: #a0a0a0;
       }
       .sidenav li a:hover {
       	color: #FFFFFF;
       	text-decoration: none;
       	background-image:url(img/sidenavbarhover.jpg);
       	width: 94%;
       }
       ```
   
 *  Thread Starter [shorn](https://wordpress.org/support/users/shorn/)
 * (@shorn)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530542)
 * still looking for assitance with this one if anyone is able to help!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘vertically aligning text via css’ is closed to new replies.

## Tags

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [text](https://wordpress.org/support/topic-tag/text/)

 * 6 replies
 * 4 participants
 * Last reply from: [shorn](https://wordpress.org/support/users/shorn/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/vertically-aligning-text-via-css/#post-530542)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
