Forum Moderators: open

Message Too Old, No Replies

FF is perfect, IE is. well. far from it.

         

spire8118

7:44 am on Nov 26, 2007 (gmt 0)

10+ Year Member



Hi, having a slight problem, dunno if anyone could direct me to a good website that will show me how to do this or possibly advise me.
I have just started to build my first website and have been viewing it in firefox for the past few weeks. Just today I looked at my site in Internet Explorer, and its a complete mess. I knew about differences in browsers and such, but this takes the p*ss.
I thought I was writting everything in correctly but the text size is HUGE in IE, spacing is HUGE, there is a double up on my footer: in one area it is like a box slapped randomly in the middle of the page, the other is where it should be at the bottom.
My banner has been di-sected. To get to all the content I have to spend a couple of minuites scrolling down the page to get to it all. I have specified a doc-type for it which is :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
and i fort maybe this was doing something, so deleted it but nothin has changed. Maybe I have too many Divs? or shud I be specifying widths and margins for every element and div, and text size? who knows?
Can anyone help?

tedster

9:04 am on Nov 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First step - have you validated your html and css?

W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]

Trying to fix cross-browser problems with any errors in the code can be extremely frustrating and sometimes, not even possible! This is because each browser has its own error recovery routine, and they don't all work the same way.

spire8118

4:28 pm on Nov 26, 2007 (gmt 0)

10+ Year Member



Have just dont that. Thanks for links. Still have a few problems but I think I should be ok with these. Thanks again, Spire.

spire8118

2:41 am on Nov 27, 2007 (gmt 0)

10+ Year Member



Ok so starting to sort out most problems, but somthing very strange has happened.
While building site I encloused sections of the site in a red border such as:
#sect1 {
border: 1px solid red;
}

Now I have removed all the red borders, yet they still appear in IE and FF. I have tried refreshing, closing down and re-opening, checking for sily mistakes etc but nothing is working. I have specified:
#sect1 {
border: none;
}
which does actually remove the borders, but I dont really want to put that in every ID, as it probably isnt the correct way to do things. It must mean there is some other problem so wondered if this was a common thing to happen? Maybe my computer has a problem, i dunno...

phranque

5:21 am on Nov 27, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], spire8118!

you should download and try Web Developer 1.1.4 for Firefox, which has several tools for debugging CSS problems.

rocknbil

6:45 am on Nov 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Clear your cache and reload the page.

If it's still there,

#sect1 {
border: 1px solid red;
}

What is sect1? A div, table, paragraph, what? Do you have a border selector somewhere on an element? is #sec1 part of a class that still has a border?

div {
border: 1px solid red;
}

.some-class {
border: 1px solid red;
}

spire8118

7:14 pm on Nov 28, 2007 (gmt 0)

10+ Year Member



thanks for the responses. It was a really stupid mistake, that'l teach me for workin on it late. I had specified 2 style sheets and didnt remove the old one after validating, lol. I just couldnt see it at the time so appologees for time wasting.

phranque

2:16 am on Nov 29, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you would have found this immediately with Web Developer 1.1.4