Results 1 to 10 of 10

Thread: Why Does A Horizontal Rule Change the Font Size?

  1. #1

    Question Why Does A Horizontal Rule Change the Font Size?

    Please see this page for example — the first paragraph uses the same Normal <P STYLE> that all other paragraphs use, but it has a horizontal line at the start.

    The font size is smaller, and also seems to be Arial instead of Verdana. Why?

    I use Opera 11.64, but Firefox is the same.

    Click image for larger version. 

Name:	Buddhavamsa.png 
Views:	305 
Size:	22.8 KB 
ID:	1260

    This is the source code:
    <H2>Buddhavaṃsa</H2>
    <P STYLE="list-style-type: none;"><HR ID="HRRule3275" WIDTH="100%" ALIGN="CENTER" SIZE="2">The fourteenth book of the <A HREF="./khuddaka_n.htm" TITLE="ku/khuddaka_n.htm">Khuddaka Nikāya</A> (DA.i.17).</P>
    <P STYLE="list-style-type: none;">The <A HREF="./diighabhaanakaa.htm" TITLE="d/diighabhaanakaa.htm">Dīgha-bhāṇakas</A> excluded it from the canon, but it was accepted by the <A HREF="./majjhimabhanaka.htm" TITLE="ma/majjhimabhanaka.htm">Majjhima-bhāṇakas</A> (DA.i.17). </P>
    Last edited by Bhikkhu Pesala; 10-08-2012 at 07:01 PM.
    AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    My Web SiteA Brief NetObjects Fusion XII Review

  2. #2

    Default

    I still need an answer to this. With thousands of hoirizontal rules on my site, its impractical to replace them with something else, but why are they affecting the font and font size.
    Last edited by Bhikkhu Pesala; 10-11-2012 at 07:36 AM.
    AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    My Web SiteA Brief NetObjects Fusion XII Review

  3. #3
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    Maybe you don't get an answer because no one else sees it. I certainly don't. Here's what I see in Firefox:

    Click image for larger version. 

Name:	buddhavamsa.png 
Views:	278 
Size:	73.6 KB 
ID:	1265

    Taking the word "the" from each and comparing (I've reversed on to examine the "t" in particular) shows they are identical. Same size. Same font.

    Click image for larger version. 

Name:	thethe.jpg 
Views:	262 
Size:	29.9 KB 
ID:	1266

    The problem is with your computer or browser configuration, perhaps due to the magnifier features you have enabled. It is NOT an NOF issue.
    Ray Cambpell
    Sounds In Sync
    Linked in

  4. #4

    Default

    The lines are different fonts and sizes in Firefox too, and SRWare Chrome Iron, but not in IE8.
    AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    My Web SiteA Brief NetObjects Fusion XII Review

  5. #5
    Joe Rotello
    Guest

    Default Re: Why Does A Horizontal Rule Change the Font Size?

    On 10/5/2012 4:34 AM, Bhikkhu Pesala wrote:
    > Please see 'this page for example'
    > (http://www.aimwell.org/DPPN/buddhavamsa.htm) — the first paragraph uses
    > the same Normal <P> style that all other paragraphs use, but it has a
    > horizontal line at the start.
    >
    > The font size is smaller, and also seems to be Arial instead of
    > Verdana. Why?
    >
    > I use Opera 11.64, but Firefox is the same.
    >
    >
    >
    > AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    >
    > 'My Web Site' (http://www.aimwell.org/index.html) • 'A Brief NetObjects
    > Fusion XII Review' (http://www.softerviews.org/NOF%20XII.html)
    >

    Horizontal rules by their lonesome do not change font sizes.

    It's far more likely that the Horiz Rule is butted up against an
    invisible <CR> or non-visual <space> and the character font and size is
    being adopted, that is, joined between the character(s) and the Horiz
    Space..

    That happens in RTF editors, word processors and in truly WYSIWYG
    web-tools as well.

    Separate the Horiz Rule above and below, size it, and keep it our of the
    text stream entirely, making sure that the separation isn't done with a
    CRTL or SHIFT <space>, that tends to link the two or three
    lines...characters, Horiz Rule, characters.

    See if that doesn't solve the problem or make the root cause more apparent.

    Joe

  6. #6
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    Quote Originally Posted by Bhikkhu Pesala View Post
    The lines are different fonts and sizes in Firefox too, and SRWare Chrome Iron, but not in IE8.
    In your Firefox they may be different. When I look at it in Firefox, they are identical. See screen grabs in my previouse post. I'm not sure what would cause that, but it is not NOF. It relates to how your browser is rendering the page. Joe's suggestion may bear fruit -- give it a try.
    Ray Cambpell
    Sounds In Sync
    Linked in

  7. #7

    Default

    Joe's suggestion is of no help. As I said, with many thousands of rules on my site (3,884 pages) it is impractical to change them. Adding a carriage return would fix the issue, but it should not be happening, and it doesn't for you, so I wonder why not?

    Adding a carriage return also changes the line-spacing.

    See this page for example — there's no carriage returns because I don't want to waste vertical space, but for me every paragraph is in the smaller and different font.
    Last edited by Bhikkhu Pesala; 10-11-2012 at 08:03 PM.
    AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    My Web SiteA Brief NetObjects Fusion XII Review

  8. #8
    Joe Rotello
    Guest

    Default Re: Why Does A Horizontal Rule Change the Font Size?

    On 10/11/2012 3:55 PM, Bhikkhu Pesala wrote:
    > Joe's suggestion is of no help. As I said, with many thousands of rules
    > on my site (3,884 pages) it is impractical to change them. Adding a
    > carriage return would fix the issue, but it should not be happening, and
    > it doesn't for you, so I wonder why not?
    >
    >
    >
    > AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    >
    > 'My Web Site' (http://www.aimwell.org/index.html) • 'A Brief NetObjects
    > Fusion XII Review' (http://www.softerviews.org/NOF%20XII.html)
    >

    One thing many have learned:

    1. Internet Explorer 8, and some say 9 too, is NOT a well-done browser,
    neither in code nor display problems

    2. It is NOT worth it coding expressly to use in IE 8, and that
    absolutely everything must work or look flawlessly in IE 8 One is
    wasting manifold resources and efforts when doing that.

    3.Horizontal Rules are almost ALLAYS separated by <CR> or even by
    <SHIFT> + <CR> and the NOF paragraph symbols that display show the
    different symbols for those two different separations.

    4. In fact, situation #3 above is how most all web-page tools have done
    it...and that's how HTML capable Email apps do it as well.

    That is, there is deliberately a certain "space" above and below a
    Horizontal rule when it's done right. Nothing is ever actually joined to
    the Horizontal Rule itself, no matter whether it might be something
    "invisible" or not.

    Joe

  9. #9
    Senior Member
    Join Date
    Apr 2010
    Location
    Sydney
    Posts
    2,000

    Default

    here is how it works well for me

    1. I set space above and space below to 0px in case of using normal P
    http://www.videoproductions.com.au/N...bove-below.png

    2. I separate each text block with carriage return and I place cursor at the end of each paragraph (or at the beginning), press CTRL+T and insert <HR>
    http://www.videoproductions.com.au/NOF12/insert-HR.png

    the result looks perfect
    http://www.videoproductions.com.au/N...sulting-HR.png
    Last edited by antonsvideo; 10-13-2012 at 03:36 AM.

  10. #10

    Default

    Quote Originally Posted by antonsvideo View Post
    1. I set space above and space below to 0px in case of using normal P

    2. I separate each text block with carriage return and I place cursor at the end of each paragraph (or at the beginning), press CTRL+T and insert <HR>[/url]
    However, its not what I want, nor does it answer my question.

    What I want is one line of spacing between paragraphs, but minimal spacing between sections that are seperated by a rule. A carriage return adds the extra line, so I don't want to use it between sections where there is a rule.

    The site is all but finished now, and I could not possiblly edit each page again. In design view the spacing is as I want it, and when it is published, but when published the font size and typeface changes. My browser font settings are all set to Verdana 16, so I have no idea why the font changes. This also happens in Chrome and Firefox.
    The paragraph after the horizontal rule in this forum thread uses the same font as other paragraphs. The <HR> code is at the start of the paragraph, as it is in NOF.
    Last edited by Bhikkhu Pesala; 10-14-2012 at 12:14 PM.
    AMD 64 3500 • 1 Gbyte RAM • onboard GeForce graphics Windows XP Home SP3
    My Web SiteA Brief NetObjects Fusion XII Review

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •