6 replies [Last post]
mko
Offline
newbie
Last seen: 16 years 31 weeks ago
Joined: 2006-04-26
Posts: 4
Points: 0

Hi,

My page is displayed right in IE and in FF or Netscape I get totally different display. I am trying to find out what am I doing wrong in css.., here is the link http://www.galileo.hr/newhome.aspx

Thanks

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 13 years 37 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

Wrong displayed in FF and Netscape

Hi MKO,

Couple of things you need to do:

1. On your 'bodywrapper' change your margin to '10px auto 0 auto;' and add 'overflow:hidden;'

2. Your Doctype is written incorrectly. I think you are wanting this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

3. It is very important to validate. You have a lot of errors. Many of them have to do with uppercase tags which are not allowed with xhtml and ID's that are being used more than once on the same page. http://validator.w3.org

Hope this helps. Smile

- r

mko
Offline
newbie
Last seen: 16 years 31 weeks ago
Joined: 2006-04-26
Posts: 4
Points: 0

Wrong displayed in FF and Netscape

Thanks for your reply.

I made all the changes you suggested, by nothing really changed. I still have couple of major problems such as background images not showing, page not centered, bottom half of page not showing.

Should I change the document type? How to decide should I use id or class when forming a style for an element?

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 13 years 37 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

Wrong displayed in FF and Netscape

I don't have time to look at the site at the moment. Someone may be able to check it out before I can to see what is causing your issues.

As far as ID vs. Class? an ID is meant to be a unique style that can be only applied once per page, but if you have several elements on a page using the same style, you should use a class for it is meant to be used more than once. Smile

- r

mko
Offline
newbie
Last seen: 16 years 31 weeks ago
Joined: 2006-04-26
Posts: 4
Points: 0

Wrong displayed in FF and Netscape

I run validator.w3.org and most of the error were of type

element "BR" undefined
end tag for "BR" omitted, but OMITTAG NO was specified

Could you tell me what does it imply on?

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 31 weeks 1 day ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Wrong displayed in FF and Netscape

Verschwindende wrote:
  • CSS doesn't make pies

mko
Offline
newbie
Last seen: 16 years 31 weeks ago
Joined: 2006-04-26
Posts: 4
Points: 0

Wrong displayed in FF and Netscape

ok, i have changed <BR> to <br/>, but still, ff apperance is very poor.