sciencebear Posted May 12, 2010 Share Posted May 12, 2010 Hi everyone. I'm doing a mockup of a new design for my site and I'm having a bit of a problem getting something to align in Firefox. It works fine in IE7, but it doesn't work at all in Firefox. The site is linked below: http://veffle.com/newlayout.php The problem I'm having is to the right of the lorem ipsum, with the speech bubble with the "8" inside. I want it to align centered with the items below it, but it's aligning to the left. Any help? Link to comment https://forums.phpfreaks.com/topic/201494-ff-align-problem/ Share on other sites More sharing options...
sciencebear Posted May 12, 2010 Author Share Posted May 12, 2010 This problem occurs in Chrome as well. Link to comment https://forums.phpfreaks.com/topic/201494-ff-align-problem/#findComment-1057266 Share on other sites More sharing options...
haku Posted May 13, 2010 Share Posted May 13, 2010 Add: margin:0 auto; to div.comments As a side note - you will find life much easier if you program first in FF, then adjust for IE. IE works differently than every other browser out there, as it is not standards-compliant. The other major browsers are all standards-compliant, and 99.9% of the time, if it works in one, it will work in all. So by coding in IE first, then fixing for FF, you are coding for a single non-compliant browser then fixing for all other browsers. It's easier to code for all browsers then fix for the non-compliant browser. As another side note - you are missing two closing div tags in your code. Link to comment https://forums.phpfreaks.com/topic/201494-ff-align-problem/#findComment-1057519 Share on other sites More sharing options...
sciencebear Posted May 13, 2010 Author Share Posted May 13, 2010 Thank you very much! Your solution worked perfectly, and I also appreciate pointing out my failure to close those div tags-a careless mistake on my part. I do generally try to write for FF first, but this specific instance when I added that element I noticed it worked in IE but not in FF. Link to comment https://forums.phpfreaks.com/topic/201494-ff-align-problem/#findComment-1057686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.