Teapips Posted August 1, 2011 Share Posted August 1, 2011 Hey Guys,I'm working on this site for my mate and I've been having extreme difficulties with getting this button to center. For some reason it just wont center and I tried a-z index as someone once suggested but it didn't do anything.Does anyone know where I'm going wrong?Site: http://www.tahnaiya.com/clients/enroll/e-index.phpCSS: http://www.tahnaiya.com/clients/enroll/css/e-main.cssThanks! Link to comment Share on other sites More sharing options...
jeffman Posted August 2, 2011 Share Posted August 2, 2011 Look at these 3 CSS rules. I've cut the rules between them for easier reading, but this is their actual sequence: img { float:left;}img { float:left; }img { float:right; } The last one does the damage. It instructs every image element in the document to float right. Remove it, and the previous rules tell every image element in the document to float left. Neither is what you want. Link to comment Share on other sites More sharing options...
Teapips Posted August 2, 2011 Author Share Posted August 2, 2011 Look at these 3 CSS rules. I've cut the rules between them for easier reading, but this is their actual sequence:img { float:left;}img { float:left; }img { float:right; } The last one does the damage. It instructs every image element in the document to float right. Remove it, and the previous rules tell every image element in the document to float left. Neither is what you want. Interesting. I had it like that for the 3 paragraphs. Thank you, I will try that!Just added: It worked and I think I love you!!! Thanks so much! It was so easy all along!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.