Cross browser Problem...

liunx

Guest
Ok so I've been having troubles view this on site correctly on different browsers. I designed it in deamweaver with firefox in mind. So the site was working fine in firefox but was not working right in Safari or IE. I have been working on, changing the div configurations and changing the image slices around and I have it working properly now in Firefox and Safari but IE is still a no go. Can someone please explain how I can make the site work properly in all 3 browsers. The url is below:

<!-- m --><a class="postlink" href="http://www.urbanstreetannouncement.com/CostaRica/SusFuture.html">http://www.urbanstreetannouncement.com/ ... uture.html</a><!-- m -->

Also, for some reason the font is different in IE as well, which I dont understand why.

Thanks,
Cesar
<!-- m --><a class="postlink" href="http://www.urbanstreetannouncement.comPlease">http://www.urbanstreetannouncement.comPlease</a><!-- m --> fix your HTML errors. (<!-- m --><a class="postlink" href="http://validator.w3.org/check?verbose=1&uri=http%3A//www.urbanstreetannouncement.com/CostaRica/SusFuture.html">http://validator.w3.org/check?verbose=1 ... uture.html</a><!-- m -->)

IDs should be unique. (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html401/struct/global.html#adef-id">http://www.w3.org/TR/html401/struct/global.html#adef-id</a><!-- m -->) You could use a class instead. (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#class-html">http://www.w3.org/TR/REC-CSS2/selector.html#class-html</a><!-- m -->)

<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"crstyle.css">
should be
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"crstyle.css">Ok thanks for the tip, but that did not solve the problem with the layout in IE. Also where should I been using classes instead of ID's, the text? Sorry if these are "simple" question but Im new at CSS.

Thanks again for the help,
CesarFor example, you have more than one element with the "h3" ID. You should use a class instead of an ID for those elements.

Validating doesn't always fix problems, but it does rule out X/HTML errors as the cause of the problem.Ok so I changed the IDs to Classes but it did not solve to DIV position problem in IE : _ ( I do not undestand this, IE browser basically sucks but I want know how to fix this problem. Sorry if I am being annoying with this problem.

Thanks for the help,
CesarDid you try the !important hack (<!-- m --><a class="postlink" href="http://www.dithered.com/css_filters/css_only/important_property.html">http://www.dithered.com/css_filters/css ... perty.html</a><!-- m -->)?You may need to use some validators W3C validator , or smart validator from :

<!-- m --><a class="postlink" href="http://www.smartvi.com/sec.htmHi">http://www.smartvi.com/sec.htmHi</a><!-- m --> -
In IE 6._, it looks like "spacer.gif" is causing the big problem -
or maybe IE is choking on the margins:
#Spacer{
width: 86px;
height: 4px;
margin-top: -207px;
margin-left: 610px;
background-image: url(spacer.gif);
background-repeat: no-repeat;
}

Also noticed that the white text on blue is hard to read & gets cut off -
and the 'more' links in the green boxes are not uniform in spacing.
Good start of your design, though.

ElWell one problem in IE is caused by it wrongly not allowing elements to have a height less than the line-height.

#Spacer{
width: 86px;
height: 4px;
font-size:3px;
line-height:4px;
margin-top: -207px;
margin-left: 610px;
background-image: url(spacer.gif);
background-repeat: no-repeat;
}Ok Kravvitz thanks for the input so far, I tried adding those two lines of code and now the Spacer div will not show in IE, still works fine under Firefox. Any other suggestions?? Would you think reslicing it a different manner would work?

Thanks again,
CesarYou're welcome :)

The problem in IE is caused by the height of #Content.Ahh, that makes so much sense. Because in firefox the text is within the content box but IE it overflows so it probably messes up the hieght which in turn messes up the positioning of the boxes to the right of it.

Dude thanks again Ill have to work on it when I get back from work today,
CesarYou're welcome :)

Actually, it overflows in Firefox too. Firefox just handles overflowing text differently than IE -- IE wrongly expands the container.Ok sweet, thanks to Kravvitz help I was able to make the layout work both in Firefox and IE. The problem was that the text was overflowing and the SPACER div needed the font-size and line-height code. I also got ride of some float attributes. But I still have another question : ) So I changed the font type and size to fit IE but the main Content box still display the text in different sizes. Is there a script code maybe that I can use to resize for the browser or should I just play around with different fonts until one works in both??

Thanks again everyone. This has help me out a great deal understand how exactly CSS works.

Cesar*sigh* Making the font size smaller is a bad solution. The web is not print. People are free to change the font size to whatever they want. You need to design layouts that can accomodate more than just the font size you set.Ok, so I was able to fix the font problem by using Kravvitz suggestion of Line-Height form previous post. I would just like to thank everyone for their help.

Thanks again,
Cesar
<!-- m --><a class="postlink" href="http://www.urbanstreetannouncement.com">http://www.urbanstreetannouncement.com</a><!-- m -->
 
Back
Top