Vertically center two elements within a div
问题 I am trying to vertically center two <p> elements. I followed the tutorial at phrogz.net but still the elements get placed above the div, below the div, top-aligned within the div. I would try something else but most of the questions here just point back to that tutorial. This snippet is for a banner that is on the top of a web page. .banner { width: 980px; height: 69px; background-image: url(../images/nav-bg.jpg); background-repeat: no-repeat; /* color: #ffffff; */ } .bannerleft { float: