|
|
#1 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
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 |
|
|
|
|
|
#2 |
|
Gold Member
![]() |
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]--> 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> |
|
|
|
|
|
#3 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
Maybe you are trying to joke, but does that jsut tell them not to use IE?
|
|
|
|
|
|
#4 |
|
Gold Member
![]() |
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. |
|
|
|
|
|
#5 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
Ha, happy at least I could understand it xD
|
|
|
|
|
|
#6 |
|
Gold Member
![]() |
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.
|
|
|
|
|
|
#7 |
|
Super Moderator
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
|
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 |
|
|
|
|
|
#8 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
Yes, this is what is the difference, pretty substantial.
http://imageshack.us/photo/my-images/444/88776155.jpg/ |
|
|
|
|
|
#9 |
|
Bronze Member
![]() |
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%; } Last edited by Janja; 01-28-2012 at 04:53 AM. |
|
|
|
|
|
#10 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
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> ? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|