Frederickasemelb
New Member
I have a css problem. Im trying to vertically center the text in a div, which is overlaying another div, but the text won't budge. EDIT: Here's teh JSFiddle url: http://jsfiddle.net/wgSEw/3/The html is as follows:\[code\]<div id="footer-top"> <div id="footer-top-left"> <div id="footer-logo"> </div> </div> <div id="footer-top-transition"></div> <div id="footer-top-right"></div> <div id="footer-top-bullets"> <div id="site-map" class="footer-bullet"> <img src="http://stackoverflow.com/questions/14064340/<?php echo BASE_IMG_URL .'bulletlight.png'; ?>" alt="some_text"> <span class="footer-bullet-text">Site Map</span> </div> <div id="report-issue" class="footer-bullet"> <img src=http://stackoverflow.com/questions/14064340/<?php echo BASE_IMG_URL .'bulletlight.png'; ?> alt="some_text"> <span class="footer-bullet-text">Report an Issue</span> </div> <div id="submit-professor" class="footer-bullet"> <img src=http://stackoverflow.com/questions/14064340/<?php echo BASE_IMG_URL .'bulletblack.png'; ?> alt="some_text"> <span class="footer-bullet-text">Submit Professor</span> </div> <div id="submit-school" class="footer-bullet"> <img src=http://stackoverflow.com/questions/14064340/<?php echo BASE_IMG_URL .'bulletblack.png'; ?> alt="some_text"> <span class="footer-bullet-text">Submit a School</span> </div> </div></div>\[/code\]and the current css is:\[code\]#footer-top{ position: relative; width: 960px; height: 63px; float: left; background-image:url('midtilefooter.png');}#footer-top-left{ width: 466px; height: 63px; float: left;}#footer-logo{ width: 265px; height: 63px; float: left; background-image:url('leftlogo.png');}#footer-top-transition{ width: 27px; height: 63px; float: left; background-image: url('midblacktransition.png');}#footer-top-right{ width: 467px; height: 63px; float: left; background-color: black;}#footer-top-bullets{ position: absolute; float: left; width: 960px; height: 63px; margin-left: 265px;}.footer-bullet{ float: left; height: 63px; width: 173px; color: white;}.footer-bullet-text{ height: 63px; color: white; top: 50%; margin-top: -31px; vertical-align: middle;}\[/code\]This essentially, creates a basic background for the top part of the footer, then overlays a div of bullets onto that background, so that it overlays without obscuring or messing with the background. The bullets are displaying in the correct places and, the text is correctly placed horizontally, but I can't get it to center vertically at all. Any help would be appreciated, as well as any general advice on css, Im pretty new to it, and it's giving me a run for my money. Thansk a lot!