Browsers and CSS viewing.
Author
Discussion

Graham.J

Original Poster:

5,420 posts

289 months

Wednesday 9th February 2005
quotequote all
I'm currently re-designing my website in CSS and my main browser is Firefox (because I use tabs a lot - makes browsing easier). Problem is, when viewing my site in either firefox or netscape, the layout of the page is completely ballsed up, it's only when I view it in IE that it seems to work ok. And the problem with that is that I hate using IE because it has a load of spy/adware from somewhere which I cannot seem to get rid of.

Anyone got any ideas on how I can sort this?

Cheers,

Graham

PetrolTed

34,468 posts

333 months

Wednesday 9th February 2005
quotequote all
Sounds like something ain't right with your CSS. Have you tried validating it?

Graham.J

Original Poster:

5,420 posts

289 months

Wednesday 9th February 2005
quotequote all
The guy who's teaching me CSS (I've only just started) said it was perculiar that it wasn't working.

The test page (no content or working links) is at http://homepage.ntlworld.com/c.hale3/gby/

zaktoo

1,401 posts

270 months

Wednesday 9th February 2005
quotequote all
First advice from me is to create html that conforms to a specific DTD - google for html dtd and you should find one. IMHO the one that makes most sense is to use the html 4.01 strict one, that would be the latest usable definition - xhtml (which technically replaces html 4) has various very technical issues preventing it being really useful at the moment.

Next, validate both css and html. http://validator.w3.org

Lastly, consider the respective roles of html and css in the final rendering process of the browser viewing it.
Oh, and forget Netscape 4 and IE before 5.5 as they're likely to have you pulling your hair out due to incomplete and inconsistent css handling. If the html is reasonable, they'll look bland but hopefully not shite.

HTH

Ciao

Zak

Graham.J

Original Poster:

5,420 posts

289 months

Wednesday 9th February 2005
quotequote all
Thanks for the help, I'll have a proper chat to him tomorrow (he works for a webdesign company) so I'm sure he'll sort something out

_Dobbo_

14,619 posts

278 months

Thursday 10th February 2005
quotequote all
Your problem is in your #content definition - specifically the "padding: 10px" bit.

Firefox renders this in addition to the 700 pixel width, whereas IE renders it inside the 700 pixel width. Hence the problem.

Removing the padding makes it render correctly in both, but doesn't look as good...

Graham.J

Original Poster:

5,420 posts

289 months

Thursday 10th February 2005
quotequote all
Ah I'll see what I can come up with, thanks for the help

rico

7,917 posts

285 months

Thursday 10th February 2005
quotequote all
Having fun Graham?

Graham.J

Original Poster:

5,420 posts

289 months

Thursday 10th February 2005
quotequote all
NO