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; } Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/207907-align-ul-in-div/#findComment-1087074 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.