Jump to content

FF Align Problem


sciencebear

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.