Jump to content

No Border In Firefox? Also Having Alignment Issues.


therschbach

Recommended Posts

I have a border in my primary container div which contains all other divs. The border shows in IE 7 and Opera but not Firefox.Also, the border is causing my position:relative divs to be misaligned in Opera and Firefox.You can see it here....Dirtjournal TestYou can see in IE everything looks as I want (for now anyway). If you look in Opera, you'll see a border, but there is a space to the left of the intro paragraph. In Firefox, there is no border and there is a space.CSS is here.Any ideas? I'm a newb so if you see anything else that's going to hose me sooner or later, let me know.

Link to comment
Share on other sites

1. It sounds like you're developing in IE and then checking the appearance in Firefox etc. This is not recommended. Develop in a standards-compliant browser like Firefox, then tinker to make it work in IE.2. If you want consistency, you'll need to add a doctype at the top of your document, before the <html> tag. It should be a strict doctype, also. That looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"	"http://www.w3.org/TR/html4/strict.dtd">

You can find a complete doctype listing here: http://www.w3.org/QA/2002/04/valid-dtd-list.html3. You must write standards-compliant HTML. For now, you can see the errors in your code by visiting the W3 validator. Here is a direct link that evaluates your page:http://validator.w3.org/check?uri=http%3A%...ine&group=0

Link to comment
Share on other sites

Excellent! I didn't know about any of this stuff.Ok, I made some edits to the HTML and it is now passing with no errors. Some things got messed up in the process so I have to go make some CSS adjustments before I'll know if I'm having the same problem.You are correct about using IE to check my code. I started doing that, but soon realized IE was doing some auto formatting that shouldn't have been happening. It could be because I didn't have a doctype specified, I don't know. But I'll start using Firefox as the primary.Thanks a bunch, I'm sure I'll be back with more questions soon. :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...