Jump to content

Button Wont Center


Teapips
 Share

Recommended Posts

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

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.

Edited by Deirdre's Dad
Link to comment
Share on other sites

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!! Edited by Teapips
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...