473,785 Members | 2,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS Problems - Browser Compatibility

i'm having strange problems with browser compatibility between firefox and internet explorer,

----------------------------------------
The following is the CSS:
----------------------------------------

body {
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 80%;
background-color: #FFFFFF;
color: #111111;
font-weight: normal;
text-align: center;
margin: 0px;
}

#logo {
text-align: left;
width: 750px;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
height: 100px;
background-color: #D25400;
background-image:url("../images/image1.jpg");
background-repeat: none;
border-bottom: 1px solid #EEB211;
}

#main_content {
position: absolute;
width: 750px;
margin: 100px;
margin-left: auto;
margin-right: auto;
background-image:url("../images/image2.jpg");
background-repeat: no-repeat;
border-bottom: 1px solid #EEB211;
height: 450px;
}

#main_content .enter {
width: 150px;
font-size: 125%;
font-weight: bold;
margin: 315px 0px 0px 250px;
height: 18px;
padding: 1px;
text-align: center;
color: #FFFFFF;
}

#main_content .enter a {
color: #FFFFFF;
display: block;
}

#main_content .enter a:hover {
color: #EEB211;
}

---------------------------------
The HTML is:
---------------------------------

<html>
<head>
<title>Web Page Title :: Introduction</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet " type="text/css" href="styles/index.css" />
<script type="text/javascript" src="javascript/functions.js"></script>
</head>
<body>
<div id="main_conten t">
<div class="enter">< a href="introduct ion.php">Click Here to Enter Site</a></div>
</div>
<div id="logo"></div>
</body>
</html>

-------------------------------------------------------------------------------
In Internet Explorer the display is fine, however in Firefox the background image isn't appearing at all
and the layout looks completely wrong.

Any Ideas?

Cheers

Kev
Jul 21 '05 #1
3 2501
Kevin Matthews wrote:
i'm having strange problems with browser compatibility between firefox and internet explorer,

----------------------------------------
The following is the CSS:
----------------------------------------
Please place your example somewhere and post a link to it. Far better
than asking everyone to create a local page, and rearrange your code.
Besides, we don't have a copy of image1.jpg and image2.jpg so any
efforts will likely be fruitless.
body {
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 80%;
80% of my desired viewing size? I don't have Verdana (a very large
font) so I get 80% of Arial, nearly impossible to read. Drop Verdana
and use font-size: 100%.
background-color: #FFFFFF;
color: #111111;
font-weight: normal; <-- default
text-align: center;
margin: 0px;
}

#logo {
text-align: left;
width: 750px; <-- is fixed size necessary?
margin-top: 0px;
margin-left: auto;
margin-right: auto;
height: 100px;
Consider setting sizes for everything but borders in em units so that
when we increase your small fonts, the containers will stretch to
accommodate your text.
background-color: #D25400;
background-image:url("../images/image1.jpg");
background-repeat: none;
border-bottom: 1px solid #EEB211;
}

#main_content {
position: absolute;
width: 750px;
margin: 100px;
margin-left: auto;
margin-right: auto;
background-image:url("../images/image2.jpg");
background-repeat: no-repeat;
border-bottom: 1px solid #EEB211;
height: 450px;
}

#main_content .enter {
width: 150px;
font-size: 125%;
font-weight: bold;
margin: 315px 0px 0px 250px;
height: 18px;
padding: 1px;
text-align: center;
color: #FFFFFF;
}

#main_content .enter a {
color: #FFFFFF;
display: block;
}

#main_content .enter a:hover {
color: #EEB211;
}

---------------------------------
The HTML is:
---------------------------------
No DOCTYPE. For new pages I suggest HTML 4.01 Strict.
See: http://www.w3.org/QA/2002/04/valid-dtd-list.html
<html>
<head>
<title>Web Page Title :: Introduction</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet " type="text/css" href="styles/index.css" />
<script type="text/javascript" src="javascript/functions.js"></script>
Although the JavaScript may not be relevant to your problem (I don't
see any calls to it) we don't have it.
</head>
<body>
<div id="main_conten t">
<div class="enter">< a href="introduct ion.php">Click Here to Enter Site</a></div>
</div>
<div id="logo"></div>
</body>
</html>

-------------------------------------------------------------------------------
In Internet Explorer the display is fine, however in Firefox the background image isn't appearing at all
and the layout looks completely wrong.


Again, without your images, we cannot tell. Put up a test case and
come back, please.

I know your code is a test, but "Click Here" is poor choice of link
text. Google for that. <g>

--
-bts
-This space intentionally left blank.
Jul 21 '05 #2
I actually fixed the problem, What I didn't put in the prevoius post was that I was using comments in my CSS. For some reason i was using <!-- --> for comments in CSS instead of /* */. That was the problem!

Thanks anyway
"Kevin Matthews" <no**@blueyonde r.co.uk> wrote in message news:mL******** **********@fe1. news.blueyonder .co.uk...
i'm having strange problems with browser compatibility between firefox and internet explorer,

----------------------------------------
The following is the CSS:
----------------------------------------

body {
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 80%;
background-color: #FFFFFF;
color: #111111;
font-weight: normal;
text-align: center;
margin: 0px;
}

#logo {
text-align: left;
width: 750px;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
height: 100px;
background-color: #D25400;
background-image:url("../images/image1.jpg");
background-repeat: none;
border-bottom: 1px solid #EEB211;
}

#main_content {
position: absolute;
width: 750px;
margin: 100px;
margin-left: auto;
margin-right: auto;
background-image:url("../images/image2.jpg");
background-repeat: no-repeat;
border-bottom: 1px solid #EEB211;
height: 450px;
}

#main_content .enter {
width: 150px;
font-size: 125%;
font-weight: bold;
margin: 315px 0px 0px 250px;
height: 18px;
padding: 1px;
text-align: center;
color: #FFFFFF;
}

#main_content .enter a {
color: #FFFFFF;
display: block;
}

#main_content .enter a:hover {
color: #EEB211;
}

---------------------------------
The HTML is:
---------------------------------

<html>
<head>
<title>Web Page Title :: Introduction</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet " type="text/css" href="styles/index.css" />
<script type="text/javascript" src="javascript/functions.js"></script>
</head>
<body>
<div id="main_conten t">
<div class="enter">< a href="introduct ion.php">Click Here to Enter Site</a></div>
</div>
<div id="logo"></div>
</body>
</html>

-------------------------------------------------------------------------------
In Internet Explorer the display is fine, however in Firefox the background image isn't appearing at all
and the layout looks completely wrong.

Any Ideas?

Cheers

Kev
Jul 21 '05 #3
Kevin Matthews wrote:
I actually fixed the problem, What I didn't put in the prevoius
post was that I was using comments in my CSS. For some reason i was
using <!-- --> for comments in CSS instead of /* */. That was the
problem!
...which we would have seen immediately, had the page been online.
Thanks anyway


No comments about the rest of my comments? :-)

--
-bts
-This space intentionally left blank.
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3018
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum compatibility with the standard browsers, supplied on all platforms: We live in the pre-press industry where folk use diverse platforms such as Sparc, Mac, PC (mnimum Win2K, or XP), using Netscape and Internet Explorer, etc.
3
2025
by: Rob Oldfield | last post by:
Just a quick and hopefully straightforward question.... are there any issues with web sites based on .Net not working correctly (or at all) for clients using non IE browsers (Mozilla and Firefox being the two major concerns obviously)? Thanks
4
1450
by: George Hester | last post by:
http://pages.ebay.com/help/new/browser-recommendations.html The reason being that other browsers are just plain buggy. Netscape 6+ surely is. Opera I do not know much about but I hear it can run in IE simulated mode. For me to spend time on browser compatibility takes time away from what is to be learned what IE can do. It's just the way the World turns. When something buggy is made it is just a matter of time before it is no longer...
5
3097
by: Trenqo 0 | last post by:
Instead of doing repetitive checks throughout my code, or defining new methods that won't work unless they are included, I have taken the approach of redefining existing methods in order to make them as cross browser compatible as possible. For example: if(!document.getElementById) { if(document.all)
32
4541
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with the content (MIME) type specified as text/html (http://keystonewebsites.com/articles/mime_type.php). These pages are then loaded on to their Server where they are served to Rendering Agents (browsers) as HTML (SGML application) documents with no...
18
6521
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > <html
2
3043
by: G2 | last post by:
Hi We are dealing with significant browser compatibility issues with Netscape 5.x+ browsers and Mac IE. I am sure most web developers have faced similar issues in the past. Can anyone give me their thoughts on how they were able to address these issues ? Are there any best practices published by MS on how to ensure browser compatibility when coding asp.net Thanks for any input.
4
4299
by: Maxwell2006 | last post by:
Hi, I am struggling with making my website compatible with multiple browsers and versions. Is there any tool that shows me how my pages look like in different browsers
27
2751
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such as IE6, IE7, Firefox 1.5/2, Opera 8/9, Safari 2, etc. How old must a browser be before you stop worrying about it? Anybody here still test on IE4? Thanks,
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.