MDanz Posted July 16, 2010 Share Posted July 16, 2010 i have an image in a ul tag and even though i have put align='left' in the div... it is still centered in the div. whats the correct css? <div id="navpos" align="left"><ul><li><img src="test.jpg" /></li></ul></div> #navpos { position:absolute; left:159px; top:6px; width:350px; height:50px; } Link to comment https://forums.phpfreaks.com/topic/207907-align-ul-in-div/ Share on other sites More sharing options...
joePHP Posted July 16, 2010 Share Posted July 16, 2010 Hi, I am not sure if I fully understand what you are asking, but I'm thinking you are talking about the default left padding the ul tag has. So just remove it like this: ul { margin: 0; padding: 0; } I hope that helps, Joe Link to comment https://forums.phpfreaks.com/topic/207907-align-ul-in-div/#findComment-1087074 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.