Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / November 2004



Tip: Looking for answers? Try searching our database.

Bold

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
André Hänsel - 29 Nov 2004 16:24 GMT
When I use a stylesheet:

body, h1
{
font-family: Helvetica, Arial, Verdana, sans-serif;
font-size: 10px;
}
h1
{
font-weight: bold;
}

There is a difference between
<b>Bold Text</b>
and
<h1>Not Bold Text</h1>

Since this is so in IE and Mozilla, it must be my fault.
Barbara de Zoete - 29 Nov 2004 16:35 GMT
> When I use a stylesheet:
>
[quoted text clipped - 14 lines]
>
> Since this is so in IE and Mozilla, it must be my fault.

Sure there is. First one is an inline element. Second is a block element.  
That's one.
Besides that, first one is presentational. Second is semantic. A graphical  
UA may render the h1 element in what ever way it sees fit, but it should  
render the bold element just as that, applying bold to the text of the  
element it is in. Rendering the h1 may include all sorts of other  
presentational features, like padding and margin or letter-spacing and all  
that.

BTW: you are not trying to set h1 element to look like normal bold text  
just to cheat search engines, are you?

Signature

      Weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
  Webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>

Andreas Prilop - 29 Nov 2004 17:06 GMT
On Mon, 29 Nov 2004, Andr? H?nsel wrote:

> From: "Andr? H?nsel" <andre@webkr.de>
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1437

Please read http://piology.org/news/oe-erste-schritte.html
to set up your newsreader^W Outlook Express correctly.

>  font-size: 10px;
>
> [...] it must be my fault.

Yes, it is your fault.
Do not, never ever, specify absolute font sizes in pixels!
Leave the font size of the body text to the reader.
Specify other font sizes in percent.

Signature

Top-posting.
What's the most irritating thing on Usenet?

Jukka K. Korpela - 29 Nov 2004 19:06 GMT
> Do not, never ever, specify absolute font sizes in pixels!

Well, setting font size to 10px is virtually criminal (i.e., it should be a
criminal offence, except by special permission), but the technical problem
is still unsolved. However I don't see the problem itself. Maybe the OP
should specify what happens. On my IE and my Mozilla, <b> is rendered the
same as <h1> when the font size is set to the same. Actually it is
redundant to set the font-weight for h1 to bold, since that's a common
browser default. Maybe we need a URL.

Signature

Yucca, http://www.cs.tut.fi/~jkorpela/

André Hänsel - 29 Nov 2004 19:58 GMT
BTW: I corrected my OE. :) But I will anyway change to Thunderbird the next
days.

>> Do not, never ever, specify absolute font sizes in pixels!
>
> Well, setting font size to 10px is virtually criminal (i.e., it
> should be a criminal offence, except by special permission), but the
> technical problem is still unsolved.

Yes, of course I'm not going to specify font sizes in pixels and of course
this is not the actual stylesheet but was for testing.
But as Jukka wrote, this has _nothing_ to do with the problem.

> However I don't see the problem
> itself. Maybe the OP should specify what happens. On my IE and my
> Mozilla, <b> is rendered the same as <h1> when the font size is set
> to the same. Actually it is redundant to set the font-weight for h1
> to bold, since that's a common browser default. Maybe we need a URL.

Sorry, I found the answer by myself. What was confusing me was that regular
and bold style of a 10px Helvetica is rendered the same since it is too
small to show the difference. (Well, Verdana can...)

Best Regards,
André
Lauri Raittila - 29 Nov 2004 20:31 GMT
> > Well, setting font size to 10px is virtually criminal (i.e., it

> Yes, of course I'm not going to specify font sizes in pixels and of course
> this is not the actual stylesheet but was for testing.

Then why did you write something that stupid?

> But as Jukka wrote, this has _nothing_ to do with the problem.

> What was confusing me was that regular
> and bold style of a 10px Helvetica is rendered the same since it is too
> small to show the difference. (Well, Verdana can...)

So, the 10px actually *was* the problem... It is not good idea to test
stuff using some random code you would never use normally. No matter
what, there is always surprises.

Signature

Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.