Simple margin?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Able

    Simple margin?

    Dear friends

    I want to draw a small margin at top with a different color, ex. grey color,
    on a single page just like the Outlook preview look. Somebody help me?

    Regards Able


  • Neal

    #2
    Re: Simple margin?

    On Mon, 26 Jan 2004 21:58:55 +0100, Able <able@epost.n o> wrote:
    [color=blue]
    > Dear friends
    >
    > I want to draw a small margin at top with a different color, ex. grey
    > color,
    > on a single page just like the Outlook preview look. Somebody help me?
    >
    > Regards Able
    >
    >[/color]


    Many ways to do this. Do you want text in it? Or is it merely decorative?

    If decorative, put the whole body in <div id="wrapper"></div> and style:

    #wrapper {
    margin-top: (size) gray solid;
    width: 100%;
    }

    Might need to do other adjustments, of course, to get it just right.

    If you want text in it, better put that text at the top of the body in
    <div id="headbar"></div> and style it like this:

    #headbar {
    width: 100%;
    color: black;
    background-color: gray;
    }

    Then put following text which is not in the gray bar in a separate div.

    Comment

    • Mark Parnell

      #3
      Re: Simple margin?

      On Mon, 26 Jan 2004 17:06:51 -0500, Neal <neal413@spamrc n.com> declared
      in comp.infosystem s.www.authoring.html:
      [color=blue]
      > margin-top: (size) gray solid;[/color]

      border-top perhaps?

      --
      Mark Parnell

      Comment

      • Neal

        #4
        Re: Simple margin?

        On Tue, 27 Jan 2004 13:26:08 +1100, Mark Parnell
        <webmaster@clar kecomputers.com .au> wrote:
        [color=blue]
        > On Mon, 26 Jan 2004 17:06:51 -0500, Neal <neal413@spamrc n.com> declared
        > in comp.infosystem s.www.authoring.html:
        >[color=green]
        >> margin-top: (size) gray solid;[/color]
        >
        > border-top perhaps?
        >[/color]


        Ah, not enough coffee. I stand corrected. Sorry 'bout that.

        Comment

        Working...