user435295
user435295

Reputation: 23

Text centering in all browsers but Internet Explorer (Link included)

I am having trouble getting the text to center inside of a list item. This seems to only be happening in internet explorer and I just can't figure out why... Any help would be greatly appreciated.

Image Example:

issue https://img.skitch.com/20110301-p9hg9ihgimd6srraa9cirnqcdp.jpg

Site (see problem area at bottom): http://www.levelsetsolutions.com/optimize/swa/

Upvotes: 2

Views: 63

Answers (2)

Tim Hettler
Tim Hettler

Reputation: 1256

The width you set on the A tags is too small.

I'd recommend moving all the CSS properties having to do with dimensions (height, width, margin, padding, etc.) to the LI tag and adding a BR tag between each word in the list items. This is the only way to guarantee the line-break will happen where you want it to.

Upvotes: 0

jeroen
jeroen

Reputation: 91752

IE is entering in quirks mode. You can avoid that using a doctype like for example:

<!doctype html>

Upvotes: 3

Related Questions