• 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/

    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)
  • 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]–

    absmiddle? Blimey.

    Thread Starter shorn

    (@shorn)

    yea that didnt work!? Any takers?

    Thread Starter shorn

    (@shorn)

    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

    (@shorn)

    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.