Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 01-26-2012, 05:38 AM   #1
Bronze Member
 
Join Date: Jan 2012
Location: Chicago
Posts: 63
Default Absolute Postion and Cross Browser

I saw here:http://www.webmasterworld.com/css/4355744.htm
that absolute position could solve my <hr> issue, but IE and FF won't agree on how far from the top any amount of pixels is...

I asked this question with the details here:

http://answers.yahoo.com/question/in...5223007AAb07eS
mjrzasa is offline   Reply With Quote


Old 01-26-2012, 11:49 AM   #2
Gold Member
 
CaldwellYSR's Avatar
 
Join Date: Jun 2011
Location: Riverton, WY
Posts: 443
Send a message via AIM to CaldwellYSR Send a message via Skype™ to CaldwellYSR
Default

I have the perfect solution for IE. First in the <head> of your html you put

HTML Code:
<!--[if lt IE9 ]>
  <script type="text/javascript">
    window.location = 'ie.html';
  </script> 
<![endif]-->
then your ie.html looks like this.

HTML Code:
<!DOCTYPE html>
<html>
<head>
  <title>Internet Explorer Sucks!</title>
  <script>
    alert("I'm terribly sorry but your browser isn't up to web standards. Please visit on of the following links for a better browser");
  </script>
</head>
<body>
  <h2>I'm terribly sorry but your browser isn't up to web standards. Please visit on of the following links for a better browser</h2>
  <ul>
    <li><a href="http://www.mozilla.com/en-US/firefox/new/">Mozilla Firefox</a></li>
    <li><a href="http://www.google.com/chrome/">Google Chrome</a></li>
    <li><a href="http://www.opera.com/">Opera</a></li>
    <li><a href="http://www.apple.com/safari/">Safari</a></li>
  </ul>
</body>
</html>
Of course this doesn't work for people using IE and not using javascript but let's be honest if you're using IE and javascript is disabled then you probably are too technologically retarded to read the web page anyways so it's not worth worrying about all 5 of those people that will be visiting your site.
CaldwellYSR is offline   Reply With Quote
Old 01-27-2012, 03:30 AM   #3
Bronze Member
 
Join Date: Jan 2012
Location: Chicago
Posts: 63
Default

Maybe you are trying to joke, but does that jsut tell them not to use IE?
mjrzasa is offline   Reply With Quote
Old 01-27-2012, 04:07 AM   #4
Gold Member
 
CaldwellYSR's Avatar
 
Join Date: Jun 2011
Location: Riverton, WY
Posts: 443
Send a message via AIM to CaldwellYSR Send a message via Skype™ to CaldwellYSR
Default

Yes that's exactly what it does!

It's a joke answer because I'm sure that's not what you wanted but it's what I do.
CaldwellYSR is offline   Reply With Quote
Old 01-27-2012, 06:56 AM   #5
Bronze Member
 
Join Date: Jan 2012
Location: Chicago
Posts: 63
Default

Ha, happy at least I could understand it xD
mjrzasa is offline   Reply With Quote


Old 01-27-2012, 02:05 PM   #6
Gold Member
 
CaldwellYSR's Avatar
 
Join Date: Jun 2011
Location: Riverton, WY
Posts: 443
Send a message via AIM to CaldwellYSR Send a message via Skype™ to CaldwellYSR
Default

I use it on my site because I have alot of absolute positioning. Plus I pretty much refuse to build for anything less than IE 9.
CaldwellYSR is offline   Reply With Quote
Old 01-27-2012, 08:40 PM   #7
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

First off, avoiding a problem is NOT solving it.
IE can be awkward, yes, but a skilled designer/front dev knows how to overcome this challenge

I agree with the accepted response on Yahoo Answers and recommend using conditional statements. I'm curious though, is the the difference that significant that it requires all this attention? Do you have a link to the site? And lastly, why are you using AP (absolute position) for your headings?
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Old 01-28-2012, 04:29 AM   #8
Bronze Member
 
Join Date: Jan 2012
Location: Chicago
Posts: 63
Default

Yes, this is what is the difference, pretty substantial.
http://imageshack.us/photo/my-images/444/88776155.jpg/
mjrzasa is offline   Reply With Quote
Old 01-28-2012, 04:46 AM   #9
Bronze Member
 
Janja's Avatar
 
Join Date: Jul 2011
Location: Vista, CA
Posts: 65
Send a message via MSN to Janja Send a message via Skype™ to Janja
Default

IE will have a default margin. I usually put this code into my style sheet at the top, so I can reset all default margins. That way, I have all the control over each element in my css. Hope that helps.

html, body, div, span, applet, object, iframe, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, hr, {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
}
__________________
JANJAWATSON
www.jewel-webdesign.com

Last edited by Janja; 01-28-2012 at 04:53 AM.
Janja is offline   Reply With Quote
Old 01-28-2012, 06:49 AM   #10
Bronze Member
 
Join Date: Jan 2012
Location: Chicago
Posts: 63
Default

Interesting, but doesn't body {margin: 0;
padding: 0;
border: 0;
font-size: 100%;}
do all that since the entire page is within <body> </body> ?
mjrzasa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:00 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.