473,569 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE font-size

I have a site up and running (www.solsoft.gr). I tested it with FF2 and
IE6 and works ok with some IE hacks.

Ok the CSS isn't good cause I started designing it with another look and
the customer ended up wanting a 3-column layout.

Now I see that IE7 mess things up. First of all there's a left margin
which I don't know why it exists. Secondly when I see the page the fonts
are way too big. I first had body{font-size:0.62em} but now changed it
to 11px. If I reload the page (in IE7) the fonts shows good. But why do
I have to reload? (I don't override the CSS with IE7).

Any help is appreciated.

thanks
Dec 4 '06 #1
24 5328
Harris Kosmidis wrote:
I have a site up and running (www.solsoft.gr). I tested it with FF2 and
IE6 and works ok with some IE hacks.
....possibly depending on what you mean by "OK." I can't resize your text
in IE6, and if I resize text in FF or try to make my viewport smaller
than around 890px, the layout breaks.
>
Ok the CSS isn't good cause I started designing it with another look and
the customer ended up wanting a 3-column layout.

Now I see that IE7 mess things up. First of all there's a left margin
which I don't know why it exists.
*where* is the left margin?
Secondly when I see the page the fonts
are way too big.
Funny, for me, they're kind of small. But you mean only in IE7, which I
don't have here.
I first had body{font-size:0.62em} but now changed it
to 11px.
Ooh, *this* can't be the best solution, can it? (Although starting off
with .6em is kind of funny, too.) Now I know why the text is
non-resizable in IE6.
If I reload the page (in IE7) the fonts shows good. But why do
I have to reload? (I don't override the CSS with IE7).
I'm not sure what you mean about overriding here.
>
As mentioned, I haven't seen your page in IE7, but I did look at your
CSS. I see you have some attempts at using the underscore hack, as in
_margin-left:-6px;. Perhaps you are not aware that IE7 will ignore this
rule. Have a read through this article, for some discussion of that and
other IE7-CSS specialities:
http://msdn.microsoft.com/library/de...css_compat.asp
Ooh, yuck; long URL. Try this: http://tinyurl.com/b245h.

By the way, most of your page is in dark red text, on a garish pink
background, because that's what I currently have as my default. But your
sollogo.gif image assumes a white background, and things don't look so
nice. Something (else) to think about!

Run your page through the W3C validator. Also, I don't know why you want
to ust transitional; it looks like you could use 4.01, strict.

HTH
--
John
Dec 4 '06 #2
So what's the suggestion about font-size? .6em? The problem is that IE7
renders the page quite good if I press reload. If you visit a link the
fonts are big. If you reload the fonts are small. I can't understand
this "reload" behavior.

The other problem (not mentioned in my first post) is the <div
id="address"(no t the webdesign part, but the previous with the
telephone). I want to center it to the main middle div. I have put it
there but while FF renders it where it should be bith IE6/7 doesn't.

John Hosking wrote:
Harris Kosmidis wrote:
>I have a site up and running (www.solsoft.gr). I tested it with FF2 and
IE6 and works ok with some IE hacks.

...possibly depending on what you mean by "OK." I can't resize your text
in IE6, and if I resize text in FF or try to make my viewport smaller
than around 890px, the layout breaks.
>>
Ok the CSS isn't good cause I started designing it with another look and
the customer ended up wanting a 3-column layout.

Now I see that IE7 mess things up. First of all there's a left margin
which I don't know why it exists.
*where* is the left margin?
>Secondly when I see the page the fonts
are way too big.
Funny, for me, they're kind of small. But you mean only in IE7, which I
don't have here.
>I first had body{font-size:0.62em} but now changed it
to 11px.
Ooh, *this* can't be the best solution, can it? (Although starting off
with .6em is kind of funny, too.) Now I know why the text is
non-resizable in IE6.
>If I reload the page (in IE7) the fonts shows good. But why do
I have to reload? (I don't override the CSS with IE7).
I'm not sure what you mean about overriding here.
>>

As mentioned, I haven't seen your page in IE7, but I did look at your
CSS. I see you have some attempts at using the underscore hack, as in
_margin-left:-6px;. Perhaps you are not aware that IE7 will ignore this
rule. Have a read through this article, for some discussion of that and
other IE7-CSS specialities:
http://msdn.microsoft.com/library/de...css_compat.asp

Ooh, yuck; long URL. Try this: http://tinyurl.com/b245h.

By the way, most of your page is in dark red text, on a garish pink
background, because that's what I currently have as my default. But your
sollogo.gif image assumes a white background, and things don't look so
nice. Something (else) to think about!

Run your page through the W3C validator. Also, I don't know why you want
to ust transitional; it looks like you could use 4.01, strict.

HTH
Dec 5 '06 #3
..oO(Harris Kosmidhs)
>So what's the suggestion about font-size? .6em?
1em / 100%

Micha
Dec 5 '06 #4
Michael Fesser wrote:
.oO(Harris Kosmidhs)
>So what's the suggestion about font-size? .6em?

1em / 100%

Micha
then I get *extremely* huge letters
Dec 5 '06 #5

Harris Kosmidhs wrote:
Michael Fesser wrote:
So what's the suggestion about font-size? .6em?
1em / 100%

then I get *extremely* huge letters
Then set _your_ browser to use a more sensible default text size.

The rest of us (and there are more of us) get a sensible default size
at 1em and we get unreadably small text at 0.6em
The default for "1" is "1". It's a default. It means don't mess with
it, don't change it, just leave it at "1 times" the default size.

Dec 5 '06 #6
..oO(Harris Kosmidhs)
>Michael Fesser wrote:
>.oO(Harris Kosmidhs)
>>So what's the suggestion about font-size? .6em?

1em / 100%

then I get *extremely* huge letters
It just depends on your personal browser settings and the used font on
the site. Of course Verdana will look way too big at 100%, which is one
reason to avoid Verdana at all. Other fonts are sized more reasonably.

Micha
Dec 5 '06 #7
Harris Kosmidhs <hk******@remov e.me.softnet.tu c.grwrites:
Michael Fesser wrote:
>.oO(Harris Kosmidhs)
>>So what's the suggestion about font-size? .6em?

1em / 100%

Micha

then I get *extremely* huge letters
If your browser's default is too large, adjust the default in your browser.

Marking up the pages you create to compensate for your browser's setting
will result in *you* seeing what you want to see on *your* browser, but
the type will then be tiny for everyone else.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Dec 5 '06 #8
Harris Kosmidhs wrote:
Michael Fesser wrote:
>>
1em / 100%

then I get *extremely* huge letters
*extremely* huge letters can result in IE when fonts are set in em
units. It's a well-known bug. Use % units instead (100% for normal
paragraph text) and font scaling is more rational. If you're so
concerned about the type size, stay away from Verdana or other fonts
that have a larger than average aspect ratio.

--
Berg
Dec 5 '06 #9
VK
Bergamot wrote:
*extremely* huge letters can result in IE when fonts are set in em
units. It's a well-known bug. Use % units instead (100% for normal
paragraph text) and font scaling is more rational.
IE's font scaling is very rational taking into account that its Font
Size switch has only five grades: Largest, Larger, Medium (default),
Smaller, Smaller - against of 14-20 grades on other UAs. This way it's
pre-programmed to make bigger "jumps" on size switch. Using %% allows
to break this behavior so align the "jumps" with other UAs - but I
would *not* suggest doing it because it doesn't add extra grades to the
switch so IE users with big monitors even with the font size Biggest
will not be able to get the desired size. I already had several request
of "how to make my font bigger for this site" and each time it was
either px size or %%.
If one really wants to use %% then don't forget to add custom size
switch on the page for IE users.
If you're so concerned about the type size, stay away from Verdana or other fonts
that have a larger than average aspect ratio.
Sorry to say, but what a strange (softest to say) advise.

Dec 5 '06 #10

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

Similar topics

1
4158
by: Justin Van Patten | last post by:
Hello, I am having trouble converting a LOGFONT structure to a System.Drawing.Font object. I'm calling SystemParametersInfo to get the LOGFONT lfntSMCaptionFont from a NONCLIENTMETRICS structure. I seem to be doing this correctly, but when I try to create a System.Drawing.Font object with the Font.FromLogFont, the new Font object has a...
10
4036
by: Richard R Plourde | last post by:
I've got a problem that IE doesn't seem to use the entire font unicode subgroups from a hinted font file. When I display the following web page in IE 6 as opposed to Firefox 1.0 PR. Check out the web page in question... http://clientserver.home.comcast.net/unicode.html If you examine, for a few examples, characters such as square root...
3
7181
by: Barry Anderberg | last post by:
I'm using the .NET Memory Profiler by Sci Tech and I wrote a little test application to verify something odd I observed and it appears that System.Drawing.Font fails to dispose of its FontFamily. I run the following code: // BEGIN while( true ) { System.Drawing.Graphics dc=lblClock.CreateGraphics();
3
26544
by: Wim | last post by:
I would like to store the ListView font in the XML config file. So I have a string variable listFont that stores the font (font.ToString()). It must be a string variable because a Font object cannot be written to the XML config file. Next time the program is started the font is read from the config file. But how to convert the string to a Font...
3
3653
by: pnp | last post by:
I have created a coposite user control of a text box and a label. I have exposed the font of the textbox property through a property of the control but every time I try to change that through the property grid of the designer when I use the composite control in a form, after a rebuild the changes seem to get lost! I don't see the Font property...
4
1931
by: BobAchgill | last post by:
Is it possible to use a font that is not stored in the windows font directory? I would like to use a font that is stored in my application directory... But this does not seem to work... rtbMyRichTextBox.SelectionFont = New Font(CurDir() + "\" + "MyFont.ttf", 12, FontStyle.Bold) Thanks!
6
8085
by: BobAchgill | last post by:
Has anyone had success with writing text using a private font that was not already installed to the system? When I try the example code in NET Framework Developer's Guide called “Creating a Private Font Collection” .... I only see a default font written to the form NOT the private font that was loaded. Ofcourse I see the right font...
1
2717
by: Henry Jones | last post by:
I found some code to change the font on a button to bold: private void btnBold_Click(object sender, System.EventArgs e) { btnCalculate.Font = new Font(btnCalculate.Font, btnCalculate.Font.Style | FontStyle.Bold);
24
2822
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available with the printer that i am printing to(Zebra TLP2844). When i open Word and look at the fonts available for the default printer, it does not show...
16
1859
by: carlbernardi | last post by:
Hi, I was wondering if there is way use a font that is somehow kept in the code instead of having to load it? I am working on a single script that so far can produce images and html but I have not been able to figure out a way that it can also produce a font. Thanks Carl
0
7697
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, well explore What is ONU, What Is Router, ONU & Routers main...
0
7924
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. ...
1
7672
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...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
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...
0
937
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...

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.