A very simple HTML question

Discussion in 'HTML' started by richard d, Dec 7, 2006.

  1. richard d

    richard d Guest

    (Although I'm beginning to despair of ever getting an answer)

    The document below illustrates with two examples. Either way I'm trying
    to get the backgorund boxes to line up top and bottom and just simply
    can't :-(

    All help gratefully received.

    Richard

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <head>
    <title> help help </title>
    </head>
    <style type="text/css"><!--
    body { background: white; font-size: 150%; }
    ..style1 { font-family: monospace; background:gray; }
    ..style2 { font-family: serif; background:aqua; }
    --></style>
    <body>
    <div><span class="style1">mono</span><span
    class="style2">serif</span></div>
    <br>
    <div class="style2"><span class="style1">mono</span>serif</div>
    </body>
    richard d, Dec 7, 2006
    #1
    1. Advertising

  2. richard d wrote:
    > (Although I'm beginning to despair of ever getting an answer)
    >
    > The document below illustrates with two examples. Either way I'm trying
    > to get the backgorund boxes to line up top and bottom and just simply
    > can't :-(


    Do you mean so they are one on top of another with no space?


    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > <head>
    > <title> help help </title>
    > </head>
    > <style type="text/css"><!--
    > body { background: white; font-size: 150%; }
    > .style1 { font-family: monospace; background:gray; }
    > .style2 { font-family: serif; background:aqua; }
    > --></style>
    > <body>
    > <div><span class="style1">mono</span><span
    > class="style2">serif</span></div>
    > <br>

    ^^^^
    Then delete this!
    > <div class="style2"><span class="style1">mono</span>serif</div>
    > </body>
    >



    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 7, 2006
    #2
    1. Advertising

  3. richard d

    richard d Guest

    No, I need them next to each other, with the background boxes lined up.

    Richard
    richard d, Dec 7, 2006
    #3
  4. Jonathan N. Little, Dec 7, 2006
    #4
  5. richard d

    Day Brown Guest

    Wouldnt it be gonzo simpler just to make a .jpg or .gif with a paint
    program and then <img src="yourscreen.gif">
    at whatever size you want? Or- is there a problem with links listed
    inside the area of the graphic?
    Day Brown, Dec 8, 2006
    #5
  6. richard d

    richard d Guest

    Thanks for the suggestion but it didn't work I'm afraid.

    I think this is a sizing issue more than a positioning one.

    The problem is that the serif font is taller than the mono font, even
    though they are the same font-size, so the enclosing backgrounds are a
    different size and don't match up when placed side by side (or one
    inside the other).

    One possibility could be to manually draw background boxes but I would
    have to be able to determine how big to make them by somehow or another
    finding out the size of a particular font on whatever browser it was
    that I was running on.

    Richard

    Jonathan N. Little wrote:
    > richard d wrote:
    > > No, I need them next to each other, with the background boxes lined up.
    > >

    >
    > Float the first DIV left. See
    > http://www.w3.org/TR/CSS21/visuren.html#propdef-float
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIO
    > http://www.LittleWorksStudio.com
    richard d, Dec 8, 2006
    #6
  7. richard d wrote:
    > Thanks for the suggestion but it didn't work I'm afraid.
    >
    > I think this is a sizing issue more than a positioning one.
    >
    > The problem is that the serif font is taller than the mono font, even
    > though they are the same font-size, so the enclosing backgrounds are a
    > different size and don't match up when placed side by side (or one
    > inside the other).
    >
    > One possibility could be to manually draw background boxes but I would
    > have to be able to determine how big to make them by somehow or another
    > finding out the size of a particular font on whatever browser it was
    > that I was running on.
    >


    Not sure what you are really trying to accomplish here, a URL to a page
    with your attempt might help.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 8, 2006
    #7
  8. Day Brown wrote:
    > Wouldnt it be gonzo simpler just to make a .jpg or .gif with a paint
    > program and then <img src="yourscreen.gif">
    > at whatever size you want? Or- is there a problem with links listed
    > inside the area of the graphic?
    >



    I have no idea what you are talking about!

    Firstly, this in *not* GoogleGroups but Usenet, you are just using
    GoogleGroups to view Usenet which reformats the thread as a single
    webpage with all comments listed in a column. This is *not* how it is
    with us how use a newsreader.

    Secondly, that means we do not see previous posts above which you are
    commenting to.

    Thirdly, you are supposed to quote the bits of previous posts to which
    you are directly responding to to give readers context and complete the
    "dialog". It would be very helpful here, because your comments do not
    seem to relate at all to this thread...

    Maybe you should try again, eh?


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 8, 2006
    #8
  9. richard d

    Day Brown Guest

    It was not important enough to bother quoting. So I wont try again.

    And no, I dont much care for groups.google either, but my new server,
    hughes.net dont have a newserver. The other satellite ISP
    (wildblue.com) does, but they aint taking new customers just yet.

    If you have not followed the thread, why should you care what I say?
    Day Brown, Dec 9, 2006
    #9
  10. In alt.html, Day Brown wrote:

    > It was not important enough to bother quoting. So I wont try again.


    http://oakroadsystems.com/genl/unice.htm#quote

    > And no, I dont much care for groups.google either, but my new server,
    > hughes.net dont have a newserver. The other satellite ISP
    > (wildblue.com) does, but they aint taking new customers just yet.


    http://news.individual.net/
    very good and only 10 Euros per year (~$13).

    > If you have not followed the thread, why should you care what I say?


    Don't you realize that - other than the OP and yourself - Jonathan is
    the only person who has responded in this thread?

    My question is why did you cross-post this thread to alt.community ?

    --
    -bts
    -Motorcycles defy gravity; cars just suck
    Beauregard T. Shagnasty, Dec 9, 2006
    #10
  11. Day Brown wrote:
    > It was not important enough to bother quoting. So I wont try again.
    >
    > And no, I dont much care for groups.google either, but my new server,
    > hughes.net dont have a newserver. The other satellite ISP
    > (wildblue.com) does, but they aint taking new customers just yet.
    >
    > If you have not followed the thread, why should you care what I say?
    >

    No, you are missing the point, in a newsreader I do not see ^^^^^ this
    above in your message to which you are referring printed above like in
    GoogleGroups. Depending on the complexity of the tread, where in it you
    reply to, and whether on not I have read messages filtered or not I have
    to hunt back in the thread tree to find the "referred to" message to
    follow your response.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 9, 2006
    #11
  12. richard d

    Day Brown Guest

    On Dec 9, 3:45 pm, "Beauregard T. Shagnasty"
    <> wrote:
    > My question is why did you cross-post this thread to alt.community ?

    Nobody else uses it. There's lotsa dead usenet groups. If you crosspost
    all your own posts to one of them, then you get to see only those
    replies to your own posts.

    As for the issue at hand, the dude could use a paint program to make
    whatever he wants the reader to see, whatever fonts in whatever places.
    I do something like that on a website I'm putting together right now:
    http://www.dc-pc.org which uses a custom font that I designed along
    with color control that'd be really difficult, if possible, in html.

    You present the reader with a screenshot. If you need to have links on
    it, then have the screenshot as a backgound img.

    I've been online for over 20 years, and remember BBS forums with my
    first VGA in *text* mode. The qwkmail reader had a single line toolbar
    at the top, which let me & you have 49 lines of text to look at in a
    message. This google window gives me about 20. sux. Another thing some
    BBS groups provided was ANSI color. Your words'd be say green, mine
    yellow, Johnathan's red, and so on. It was easy to see just who was
    saying what. Nobody bitched about being misquoted. it didnt fill up the
    screen with ">>>" and didnt need to wordwrap stubs. All that dos
    functionality was lost going to windoze gui interfaces.
    Day Brown, Dec 10, 2006
    #12
  13. In alt.html, Day Brown wrote:

    > On Dec 9, 3:45 pm, "Beauregard T. Shagnasty"
    > <> wrote:
    >> My question is why did you cross-post this thread to alt.community ?


    > Nobody else uses it. There's lotsa dead usenet groups. If you crosspost
    > all your own posts to one of them, then you get to see only those
    > replies to your own posts.


    Seemed pretty active to me. I just looked at it; there's over 3,800
    posts on my news server.

    > As for the issue at hand, the dude could use a paint program to make
    > whatever he wants the reader to see, whatever fonts in whatever places.
    > I do something like that on a website I'm putting together right now:
    > http://www.dc-pc.org


    My eyes! Oh my eyes!

    > which uses a custom font that I designed along
    > with color control that'd be really difficult, if possible, in html.


    ... and very hard to read. Dang near impossible.

    > You present the reader with a screenshot. If you need to have links on
    > it, then have the screenshot as a backgound img.
    >
    > I've been online for over 20 years, and remember BBS forums with my
    > first VGA in *text* mode. The qwkmail reader had a single line toolbar
    > at the top, which let me & you have 49 lines of text to look at in a
    > message. This google window gives me about 20. sux. Another thing some
    > BBS groups provided was ANSI color. Your words'd be say green, mine
    > yellow, Johnathan's red, and so on. It was easy to see just who was
    > saying what. Nobody bitched about being misquoted. it didnt fill up the
    > screen with ">>>" and didnt need to wordwrap stubs. All that dos
    > functionality was lost going to windoze gui interfaces.


    Use a real newsreader and retain all that "dos" functionality.

    --
    -bts
    -Motorcycles defy gravity; cars just suck
    Beauregard T. Shagnasty, Dec 10, 2006
    #13
  14. Day Brown wrote:
    >
    > On Dec 9, 3:45 pm, "Beauregard T. Shagnasty"
    > <> wrote:
    >> My question is why did you cross-post this thread to alt.community ?

    > Nobody else uses it. There's lotsa dead usenet groups. If you crosspost
    > all your own posts to one of them, then you get to see only those
    > replies to your own posts.


    That is not how you should use a NG. Filter on your own end. I have
    corrected the follow up. Didn't notice it at first...

    >
    > As for the issue at hand, the dude could use a paint program to make
    > whatever he wants the reader to see, whatever fonts in whatever places.
    > I do something like that on a website I'm putting together right now:
    > http://www.dc-pc.org which uses a custom font that I designed along
    > with color control that'd be really difficult, if possible, in html.


    Horrid idea! Totally unreadable to a text only browser or screen
    reader...(an in a graphic browser)

    >
    > You present the reader with a screenshot. If you need to have links on
    > it, then have the screenshot as a backgound img.
    >
    > I've been online for over 20 years, and remember BBS forums with my
    > first VGA in *text* mode. The qwkmail reader had a single line toolbar
    > at the top, which let me & you have 49 lines of text to look at in a


    Ah, but this is *not* a forum, but a newsgroup. Each posting is a
    separate entity which may or may not be still accessible form the
    server. You could conceivably replay to a message no long cached on the
    server...

    > message. This google window gives me about 20. sux. Another thing some
    > BBS groups provided was ANSI color. Your words'd be say green, mine
    > yellow, Johnathan's red, and so on. It was easy to see just who was
    > saying what. Nobody bitched about being misquoted. it didnt fill up the
    > screen with ">>>" and didnt need to wordwrap stubs. All that dos
    > functionality was lost going to windoze gui interfaces.
    >


    You should quote responsibly, and trim out the bits not being commented on.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 10, 2006
    #14
  15. Beauregard T. Shagnasty wrote:

    > Use a real newsreader and retain all that "dos" functionality.
    >

    LOL!

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 10, 2006
    #15
  16. richard d

    Bergamot Guest

    Jonathan N. Little wrote:
    > Day Brown wrote:
    >>
    >> http://www.dc-pc.org which uses a custom font that I designed along
    >> with color control that'd be really difficult, if possible, in html.

    >
    > Horrid idea! Totally unreadable to a text only browser


    It's pretty unreadable to us humans, too. ;)

    --
    Berg
    Bergamot, Dec 10, 2006
    #16
  17. richard d

    dorayme Guest

    In article <>,
    Bergamot <> wrote:

    > Jonathan N. Little wrote:
    > > Day Brown wrote:
    > >>
    > >> http://www.dc-pc.org which uses a custom font that I designed along
    > >> with color control that'd be really difficult, if possible, in html.

    > >
    > > Horrid idea! Totally unreadable to a text only browser

    >
    > It's pretty unreadable to us humans, too. ;)


    It is quite awful... trying to think of a font it reminds me of
    (but a professional one that is readable, bit zany.... um... Los
    Angeles?)

    --
    dorayme
    dorayme, Dec 11, 2006
    #17
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    454
    Raymond Hettinger
    Jul 27, 2003
  2. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,595
    Merrill & Michele
    Oct 19, 2004
  3. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    410
    jacob navia
    Oct 17, 2004
  4. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    505
    Dave Thompson
    Feb 14, 2005
  5. olivier.melcher

    Help running a very very very simple code

    olivier.melcher, May 12, 2008, in forum: Java
    Replies:
    8
    Views:
    2,249
Loading...

Share This Page