Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 10-05-2007, 01:47 AM Browser Hell
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
So I created this page that I'm happy with. Images in the background in tables, with CSS images super-imposed perfectly over them. In IE for PC everything looks fine. But whenever I view it in every other browser, the CSS image appears a bit higher on the page. Why is this happening?! And what do I do so that the CSS images appears in the same position for alll browsers? Help!
Hans G. is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-05-2007, 04:34 AM Re: Browser Hell
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I'd suggest you work the other way around and design and test in A.N. Other browser THEN tweak for IE with conditional comments
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-05-2007, 02:09 PM Re: Browser Hell
Super Talker

Posts: 131
Trades: 0
Multiple style sheets.
<!--[if IE]>
<link rel="stylesheet" href="stylesheet-ie.css" type="text/css" media="all" />
<![endif]-->

Change whatever you need to change for that specific browser in the stylesheet that goes with it.
soap is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 02:43 PM Re: Browser Hell
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
so would the following work for firefox?

<!--[if FF]>
<link rel="stylesheet" href="stylesheet-ff.css" type="text/css" media="all" />
<![endif]-->
Hans G. is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 02:50 PM Re: Browser Hell
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
No, you don't need conditional comments for Firefox - or Opera - or Safari (or any other standards-compliant browser), you ONLY need separate stylesheets to kick IE into doing what they others do correctly !

Like Chris said, do not design with IE as your guide, it will lie to you - design so it's right in FF, or Opera FIRST, then wrangle with IE - it'll get you out of browser hell a lot faster !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 02:59 PM Re: Browser Hell
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
Below is the code. Each of these browsers interpret the code differently: IE for PC, FF for PC, IE for MAC, Netscape for MAC, Opera for MAC,Safari for MAC.

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
body {font-family: Arial, Helvetica, sans-serif; color: #000; margin:0px; padding:0px;}
#Content {
position:absolute;
left:50%;
width:100px;
margin-top:-303px;
margin-left:15px;
text-align:left;
padding:5px;
line-height: 0.0em;
z-index:2
}
h1 {
font-size:12px
}
p {
font-size:10px
}
</style>
</head>
<body>
<table width="801" height="558" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
</tr>
<tr>
<td height="55" bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td>&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCCCC">&nbsp;</td>
</tr>
</table>
<div id="Content">
<h1>Gray Box</h1>
<p>Bla, bla, bla</p>
<p>Bla, bla, bla</p>
</div>
</body>
</html>
Hans G. is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 04:25 PM Re: Browser Hell
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Don't even worry about IE for MAC, it's a D-E-A-D browser and most MAC users will have left it in the dust a long time ago now that MS has abandoned it.

You are never going to get pixel-prefect rendering across all browsers, not happening. One of your first mistakes is in using position:absolute, you're better off using the normal document flow and floats than trying nail things in place.

I can pick this apart later after work, but it would help to see have the images, or see the images for the effect you're after.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-05-2007, 06:02 PM Re: Browser Hell
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
thanks, does my doc type have anything to do with this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Hans G. is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Browser Hell
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.90016 seconds with 12 queries