Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perfect in IE but not in FF 1

Status
Not open for further replies.

aspvbnetnerd

Programmer
May 16, 2006
278
SE
The site is exacly what I want it to be with Internet Explorer, but when I view it with firefox. It looks ugly as hell.

The site
I have tried to fix as much as I can, but it doesn't get better then this.

Could anyone please try to help me?

George
 
Every time I ask a question I get the same answer.
Fix the validation and come back later :).

Now all the error are fixed.

Could you please help me now?

George
 
First, IE still renders your page in quirks mode, because IE cannot have anything above the doctype. Your xml declaration throws IE off but does nothing else.

Next, your container cannot be 100% because a percentage container must need to have a parent with a defined height. According to standards, the canvas is html element, so giving html and body 100% height would help your container be 100% in standards compliant browsers.

Finally, in CSS you need to provide units for every value. This [tt]margin:110 0 0 5px[/tt] says there should be 5px margin on the right, but all the other margin units are omitted and as such the browser is confused. With 0 values omitting is ok, but 110 of what is your top margin? The final pixel applies only to the final value, not to the all line.

That should help a bit.
 
Vragabond, thanks for explanation.
I changed it to position:absolute; and now it all my divs looks the same in FF and IE.

One problem remains if you could help me with it. I would be very thankful.

Why isn't my <div class="test"> White?
This is my class test in style.css
.test
{
height:100%;
width:775px;
background-color: #FFFFFF;
border-right:1px solid #cccccc;
}

gmmastros, to be honest I have never thought about validating the CSS and thanks for the nice link?
I will install that later after the last problem is solved?

Any ideas?


George
 
One of the worst things to do is not to read the suggestions people give you. Please check my 'Next' paragraph -- it deals with exactly that.
 
I'm sorry vragabond. I read your post and so changed it to height:600px; in the test class and then it worked.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top