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
24 5338
In article <45************ ***********@aut hen.yellow.read freenews.net>,
Johannes Koch <ko**@w3develop ment.dewrote:
VK schrieb:
The hint #1: 200% of say one pound is not the same as 200% of one
ounce.
The hint #2: the initial value where %% are applied to in IE depends on
the current mode (BackCompat vs CSS1Compat). While in the quirk mode
it's counted from Medium, in the "standard compliant" one it's counted
from Smaller.
So you say that the basis for the calculation of the font size defined
in em or % are different where they should be equal (the parent
element's font size)?
But isn't % based on the height, while em is based on the width of
_a specific character_ ? So % and em, while valid size units, would
NOT be expected to give the same vertical screen size for text.
I would call this a bug.
I would call it a misconception. To borrow from hint #1 above, it
would be more like calculating relative amounts of weight versus
volume, rather than simply weight in different units.
..oO(David Stone)
>But isn't % based on the height, while em is based on the width of _a specific character_ ?
Not in CSS:
| The 'em' unit is equal to the computed value of the 'font-size'
| property of the element on which it is used.
Micha
Johannes Koch wrote:
>So you say that the basis for the calculation of the font size defined in em or % are different where they should be equal (the parent element's font size)?
VK <sc**********@y ahoo.comwrote:
em and % are *relative* inits. It means that no matter what: there must
be at least one *absolute* unit somewhere (implicit or explicit) from
which all other calculations are made.
Exactly.
With body{font-size:100%} where do you propose to look for to calculate
100% of? html element? * html? :-)
The absolute unit *should* be the font size the user's browser is
configured to use. That's the whole point of using relative units for font
sizes. As Todd Fahrner wrote some time ago:
The font size chosen by the user as a comfortable default (1 em)
provides more truly useful information about the rendering
environment than all the resolution-sniffing, window-querying,
"open-this-wide" logic you can throw at the problem.
And in this sense, 100% and 1em are equivalent. The only practical
difference is that MSIE has a nasty bug in its implementation of em units,
which can be worked around by specifying "body {font-size: 100%}" in the
document style sheet.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/
"I used to have a handle on life, but it broke."
Darin McGrew wrote:
The absolute unit *should* be the font size the user's browser is
configured to use.
Right. And on my current 1024x768 96dpi LCD it's 12pt (Medium). But on
my other 1280x1024 I'm comfortable with 14pt (Larger).
Please note: 12 and 14 pt (points), not px (pixels) - because these are
initial values for IE's font size switch.
And in this sense, 100% and 1em are equivalent. The only practical
difference is that MSIE has a nasty bug in its implementation of em units,
which can be worked around by specifying "body {font-size: 100%}" in the
document style sheet.
No, Mister, what you *really* want to do it's to enforce a tiny
per-pixel step scale on IE users because "proper" UAs are using it. So
you want them to have their Largest just like if I press Ctrl+0 and
then twice Ctrl++ in Firefox.
If you worked for me and I catched you on the act, that would be a full
business week w/o doughnuts to you - and that's just for the first time
:-) :-|
VK wrote:
>
With body{font-size:100%} where do you propose to look for to calculate
100% of?
Whatever the user's browser default font size is. That may be any one of
IE's selectable values from smallest to largest, not a fixed 'Medium'
(or whatever) as you claim. Other browsers give the user more precise
control than IE does.
And again, 1em is the same initial value.
--
Berg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 different Name than the LOGFONT.
|
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
(&#8730;), prime (&#8242;) and double prime (&#8243;).
|
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();
|
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 object?
--
Wim
|
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 anywhere in
the inner code... What am I doing wrong?
| |
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!
|
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 written if the font is already one
that is installed in the system. But if the private font that I...
|
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);
|
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 the fonts i want. If i cahnge the printer to the printer that
|
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
|
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 usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |