pleek Posted March 20, 2009 Share Posted March 20, 2009 i have this code table <TABLE class="bar"> <TR> <TD> Hello <A HREF="http://craigh.tlcrepair.net/smf2/index.php?action=profile;u=1" class="menu">Pleek</A> <IMG SRC="LogOut2.png"> </TD> </TR> </TABLE> but when i view it in ff the image doesn't line up right. its higher than all the text. If i put it in a new <td> it aligns right but then its way off to the side. How do i fix this? Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/ Share on other sites More sharing options...
dropfaith Posted March 20, 2009 Share Posted March 20, 2009 <TABLE class="bar"> <TR> <TD> Hello <A HREF="http://craigh.tlcrepair.net/smf2/index.php?action=profile;u=1" class="menu">Pleek</A> <IMG SRC="LogOut2.png" ALIGN="MIDDLE"> </TD> </TR> </TABLE> i think thats right Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/#findComment-789081 Share on other sites More sharing options...
pleek Posted March 20, 2009 Author Share Posted March 20, 2009 when adding that to my code, the imaged drops below the text. Any other ideas? Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/#findComment-789931 Share on other sites More sharing options...
Hostile Posted March 21, 2009 Share Posted March 21, 2009 when adding that to my code, the imaged drops below the text. Any other ideas? What do you have for your 'bar' class in CSS? Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/#findComment-789983 Share on other sites More sharing options...
pleek Posted March 21, 2009 Author Share Posted March 21, 2009 .bar { background: url(barbg.jpg); width: 100%; height: 30px; position: fixed; top: 0px; left: 0px; right: 0px; color: white; padding-left: 10px; float: left; clear:both; text-align:left; } and this is what it looks like. i need the text and the image to be even, each thing i try moves it some but doesn't make them line up. Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/#findComment-790007 Share on other sites More sharing options...
pleek Posted March 22, 2009 Author Share Posted March 22, 2009 so, nobody knows i guess. Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/#findComment-791079 Share on other sites More sharing options...
fry2010 Posted March 23, 2009 Share Posted March 23, 2009 you could try styling the image direct i.e. <img src="...." id="bar_image" /> Then try to give it style such as: float:right; bottom: 0px; or if the bottom: doesnt push it to the bottom, then try doing: float: right; top: 10px; try a few things out dont give up. Quote Link to comment https://forums.phpfreaks.com/topic/150257-problem-aligning-image-in-table/#findComment-791646 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.