I have this in my style sheet:
..intro {
font-size:1.2em;
font-family:"Comic Sans MS", cursive;
letter-spacing:0.1em;
}
p.intro:first-letter {
color:#e90;
background-color:transpare nt;
margin-left:-0.1em;
padding:0px;
font-family:Georgia, Palatino,serif;
font-size:2.8em;
line-height:0.8em;
}
[no comments on the Comic Sans please, it's a temporary page just for
my daughter's birthday, and she really likes using that font]
The paragraph displays differently in Opera 7.01, MSIE 6 and Mozilla
1.4. In Opera the whole paragraph is in Comic Sans (font-family for
the first-letter is ignored); in Mozilla first-letter is serif and the
rest Comic Sans; and in IE first-letter is serif and the rest is
sans-serif (the default for the page), but removing the 'p' from the
first-letter style makes IE display the same as Mozilla.
Which browser is displaying correctly? Mozilla displays what I
expected, but it wouldn't be the first time I've been mistaken.
--
Pete Gray
while ($cat!="home"){ $mice=="play";} 3 4698
On Thu, 23 Oct 2003 16:15:58 +0100, Pete Gray wrote: I have this in my style sheet:
.intro { font-size:1.2em; font-family:"Comic Sans MS", cursive; letter-spacing:0.1em; }
p.intro:first-letter { color:#e90; background-color:transpare nt; margin-left:-0.1em; padding:0px; font-family:Georgia, Palatino,serif; font-size:2.8em; line-height:0.8em; }
[no comments on the Comic Sans please, it's a temporary page just for my daughter's birthday, and she really likes using that font]
The paragraph displays differently in Opera 7.01, MSIE 6 and Mozilla 1.4. In Opera the whole paragraph is in Comic Sans (font-family for the first-letter is ignored); in Mozilla first-letter is serif and the rest Comic Sans; and in IE first-letter is serif and the rest is sans-serif (the default for the page), but removing the 'p' from the first-letter style makes IE display the same as Mozilla.
Which browser is displaying correctly? Mozilla displays what I expected, but it wouldn't be the first time I've been mistaken.
Mozilla, AFAICT.
The first letter should be in Georgia, the rest Comic Sans.
Incidentally, I think there's a new version of Opera out, if you like
upgrading :-)
The 'p' shouldn't make any difference in this case (assuming it's a <p>
in the HTML).
Mozilla is generally the best, and the support for :first-letter isn't
that great in any case.
Happy birthday to your daughter.
--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
On Thu, 23 Oct 2003 19:12:52 +0100, Matt <ma**********@h otmail.com>
wrote: On Thu, 23 Oct 2003 16:15:58 +0100, Pete Gray wrote:
I have this in my style sheet:
.intro { font-size:1.2em; font-family:"Comic Sans MS", cursive; letter-spacing:0.1em; }
p.intro:first-letter { color:#e90; background-color:transpare nt; margin-left:-0.1em; padding:0px; font-family:Georgia, Palatino,serif; font-size:2.8em; line-height:0.8em; }
The paragraph displays differently in Opera 7.01, MSIE 6 and Mozilla 1.4. In Opera the whole paragraph is in Comic Sans (font-family for the first-letter is ignored); in Mozilla first-letter is serif and the rest Comic Sans; and in IE first-letter is serif and the rest is sans-serif (the default for the page), but removing the 'p' from the first-letter style makes IE display the same as Mozilla.
Which browser is displaying correctly? Mozilla displays what I expected, but it wouldn't be the first time I've been mistaken. Mozilla, AFAICT.
The first letter should be in Georgia, the rest Comic Sans.
Thanks for that. So it's Opera that completely screws it up. Not that
it's so crucial, I have a pretty relaxed attitude to display blips
like this. Incidentally , I think there's a new version of Opera out, if you like upgrading :-)
I may do, but at the moment I'm in love with Firebird (and I notice
that 0.7 is now out -- must pay more attention). The 'p' shouldn't make any difference in this case (assuming it's a <p> in the HTML).
It is...and that's where IE screws up, in a way that doesn't make a
whole lot of sense. Mozilla is generally the best, and the support for :first-letter isn't that great in any case.
Good enough for the simplistic uses I make of it. Nice to know what I
was expecting was correct. Happy birthday to your daughter.
Thanks.
--
Pete Gray
while ($cat!="home"){ $mice=="play";}
On Thu, 23 Oct 2003 19:12:52 +0100, Matt <ma**********@h otmail.com>
wrote: The paragraph displays differently in Opera 7.01, MSIE 6 and Mozilla 1.4. In Opera the whole paragraph is in Comic Sans (font-family for the first-letter is ignored); in Mozilla first-letter is serif and the rest Comic Sans; and in IE first-letter is serif and the rest is sans-serif (the default for the page), but removing the 'p' from the first-letter style makes IE display the same as Mozilla.
Which browser is displaying correctly? Mozilla displays what I expected, but it wouldn't be the first time I've been mistaken.
Mozilla, AFAICT.
The first letter should be in Georgia, the rest Comic Sans.
Incidentally , I think there's a new version of Opera out, if you like upgrading :-)
Yes, it works OK in the new Opera 7.21. One or two other CSS
bugs/restrictions also seem to have been cured, compared to 7.11. The
7.0x versions were a bit iffy by Opera standards, so I´d recommend
upgrading.
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Topley |
last post by:
Hi,
I'm trying to create a pure CSS layout using DIVs. I have three DIVs (in
one column) down the left hand side of my page, with a ten pixel
vertical gap between each of them (the content is on the right). At the
moment these DIVs are all using absolute positioning, with dimensions
and co-ordinates specified in pixels. How can I make it so that if the
user increases the font size the DIVs enlarge to accommodate the content
but still...
|
by: Peter Foti |
last post by:
Simple question... which is better to use for defining font sizes and why?
px and em seem to be the leading candidates. I know what the general answer
is going to be, but I'm hoping to ultimately get some good real world
examples.
Fire away! :)
Regards,
Peter Foti
|
by: Fabian Neumann |
last post by:
Hi!
I got a problem with font-family inheritance. Let's say I have CSS
definitions like:
p {
font:normal 10pt Verdana;
}
strong {
font:normal 14pt inherit;
|
by: J |
last post by:
I've run CSSCheck on my style sheets and I always get a warning
similar to this:
"font: bold 9pt/100% sans-serif
Warning: Absolute length units should not generally be used on the Web ..."
Yet if I use 'x-small' instead of 9pt, I get bigger type on IE6 and smaller
type on
Mozilla. My choices seem to be:
|
by: Patrick |
last post by:
Hi
I have what seems to be a simple problem but i can't figure it out. I
need to make a header real big so i used the font-size with % and it
gets my header to be the size i want, but right under it i want a
<HR>.
It all works fine in I.E. 6.0 and Opera but not in Mozilla or of
course N.N.
Run the code below in I.E. and then in either Mozilla or N.N. and you
will see my <HR> being way too low below the "Paragraph" in Mozilla or
| |
by: Cezar |
last post by:
Hi there.
On this page:
http://www.helpdeskics.com/
in the blue menu and footer font size in Opera is less than in other
browsers. Why ? I don't know how can I set correct font size for Opera.
--
Regards, Cezar.
|
by: PhilM |
last post by:
I am attempting to have a floating image below page content, but above
<body>
In order to get this to work with mozilla+opera, am I required to have all
page content set at z-index>(some number).??
When I started, I used negative z-index for my floating image, all worked in
opera, not mozilla. Google indicated must set <body>
position:relative;top:0;left:0;float:left; but then that broke opera.. image
didn't come more than 1/3 of page,...
|
by: Dan |
last post by:
Hi,
I just started using this DTD statement (auto-inserted by Dreamweaver MX
2004):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Suddenly, the font sizes on my pages decreased by one level (e.g., from
small to x-small). I tested this by increasing them in the .css, and they
looked OK again.
|
by: Diogenes |
last post by:
Hi All;
I, like others, have been frustrated with designing
forms that look and flow the same in both IE and Firefox.
They simply did not scale the same.
I have discovered, to my chagrin, that IE7 does not seem
to offer any way to control the font size of a text input
element.
|
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s 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: 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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |