Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 31st, 2008, 06:17 PM
Newbie
 
Join Date: Sep 2007
Posts: 16
Default Won't position correctly in IE

Can someone take a look at his page and code in an IE browser. For some reason I cannot get the h1 text to position down from the box I have it set in. It looks fine in Firefox and Safari both on MAC and PC.

I set an IE browser hack but it's not working. Here is the url:

http://www.efotolab.com/home2.htm

Thanks
Mike
Reply
  #2  
Old August 31st, 2008, 10:54 PM
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 815
Default

It might have something to do with the HMTL and CSS errors. I would suggest that you validate both first.

--Kevin
Reply
  #3  
Old August 31st, 2008, 11:34 PM
David Laakso's Avatar
Expert
 
Join Date: Aug 2008
Location: US
Posts: 302
Default

Code:
h1 {
margin: 20px 0 0 0;<--------------------------- :: add
}
When you say you got a problem in IE, please be specific -- state the OS and browser version (s) of IE in question -- some of us run more than one version of that browser on more than one OS, and they ain't all the same...

BTW, nothing wrong with setting pixel font-sizes. Too bad Redmond does not cooperate in scaling them unless font-sizes are ignored. And, fwiw, line height when set in pixels trips all versions of IE and Opera (vertical overlap with font-scaling scaling). Best off using a raw number for line-height....
Reply
  #4  
Old September 1st, 2008, 03:03 PM
Newbie
 
Join Date: Sep 2007
Posts: 16
Default

When you say raw number are you referring to ems and/or percentages? I tired ems for line spacing and still have the problem.

Thanks
Mike
Reply
  #5  
Old September 1st, 2008, 04:22 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

Neither. If you use a "raw number", such as 'line-height:1;' then the value is used as a multiplier of the font-size.
Reply
  #6  
Old September 1st, 2008, 04:35 PM
David Laakso's Avatar
Expert
 
Join Date: Aug 2008
Location: US
Posts: 302
Default

By raw number for line-height I mean use no unit of measure.
Some examples:
Code:
line-height :  1;
line-height :  1.1;
line-height :  1.2;
line-height :  1.3
line-height :  1.4;
line-height :  1.5;
line-height :  1.6;
line-height :  1.7;
line-height :  1.8;
line-height :  1.9
line-height :  2.0;
and so on...
All versions of Opera and all versions of IE will be more cooperative when the fonts are scaled.

Right now you have the fonts frozen in all versions of IE as well. In order for children of all ages to read your mousetype some of those users will have to put their browser in "accessiblity" mode, check the "ignore font-sizes specified" box, and check font-size "largest" to scale pixel based fonts.

A more user friendly method, if you're up for it , is to set a base 100% on the body declaration and set a percent font-size (rather than pixel) for selectors thereafter throughout the style sheet.

Something like this::
Code:
body {font: 100%/1.4 helvetica, arial, sans-serif;}
Reply
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles