Closed (fixed)
Project:
Zen
Version:
6.x-2.1
Component:
CSS/SASS/HTML markup
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2012 at 17:15 UTC
Updated:
21 Aug 2013 at 14:25 UTC
Does anyone know how to vertically align the logo and image and keep it left justified?
I tried to do this:
#header {
background-image:url('../images/simontheme/headerbg.png');
background-repeat:repeat-x;
height:114px;
display:table;
width:960px;
}
#name-and-slogan {
display:table-cell;
vertical-align:middle;
}
In my own stylesheet, but it didn't work. Any other ideas?
Comments
Comment #1
sunshinee commentedI haven't tried this, but I think you need to define a height on the element in order for vertical-align to work. If you're building a theme that needs to have vertical aligned elements regardless of whether logo, sitename, and slogan are all enabled, you'll probably want to use something like the jQuery equal heights plugin.
Comment #2
johnalbinclosing old support issues