Have a linked image arrive--centered.

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

    Have a linked image arrive--centered.

    I'm a newbie, so please forgive the naive request here--but I haven't
    been able to figure this out...Isn't there a way in CSS, to have a
    plain-old medium-sized (say, 2- or 300-pixels square) image that you
    set a link to, when it appears in new window, to be already centered
    on page? I have no trouble getting a pic to appear, but they're always
    in the upper-left corner, and I can't figure out what tag or
    declaration or correct sequence to use to change this to CENTER.

    Thanks in advance.
    Terry
  • David Dorward

    #2
    Re: Have a linked image arrive--centered.

    Terry B. wrote:
    [color=blue]
    > I'm a newbie, so please forgive the naive request here--but I haven't
    > been able to figure this out...Isn't there a way in CSS, to have a
    > plain-old medium-sized (say, 2- or 300-pixels square) image that you
    > set a link to, when it appears in new window, to be already centered
    > on page? I have no trouble getting a pic to appear, but they're always
    > in the upper-left corner, and I can't figure out what tag or
    > declaration or correct sequence to use to change this to CENTER.[/color]

    You can only centre an image if it is in document.


    --
    David Dorward http://dorward.me.uk/

    Comment

    • Steve Pugh

      #3
      Re: Have a linked image arrive--centered.

      riprap1951@comc ast.net (Terry B.) wrote:
      [color=blue]
      >I'm a newbie, so please forgive the naive request here--but I haven't
      >been able to figure this out...Isn't there a way in CSS, to have a
      >plain-old medium-sized (say, 2- or 300-pixels square) image that you
      >set a link to, when it appears in new window, to be already centered
      >on page? I have no trouble getting a pic to appear, but they're always
      >in the upper-left corner, and I can't figure out what tag or
      >declaration or correct sequence to use to change this to CENTER.[/color]

      Use Opera instead. It centres stand alone images.

      Steve

      --
      "My theories appal you, my heresies outrage you,
      I never answer letters and you don't like my tie." - The Doctor

      Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

      Comment

      • Terry  B.

        #4
        Re: Have a linked image arrive--centered.

        Steve Pugh <steve@pugh.net > wrote in message news:<o1pmqv8ut 03s02ht75b0eqcr 5ahd6jjbbu@4ax. com>...[color=blue]
        > riprap1951@comc ast.net (Terry B.) wrote:
        >[color=green]
        > >I'm a newbie, so please forgive the naive request here--but I haven't
        > >been able to figure this out...Isn't there a way in CSS, to have a
        > >plain-old medium-sized (say, 2- or 300-pixels square) image that you
        > >set a link to, when it appears in new window, to be already centered
        > >on page? I have no trouble getting a pic to appear, but they're always
        > >in the upper-left corner, and I can't figure out what tag or
        > >declaration or correct sequence to use to change this to CENTER.[/color]
        >
        > Use Opera instead. It centres stand alone images.
        >
        > Steve[/color]

        Much thanks to David and Steve for the concise, helpful answers! I was
        assuming that there was/is a simple, straightforward method to achieve
        the linked-image-autocentered effect, but now that you've told me it's
        just another oddball 'hole' in CSS capabilities I feel not-as-dense.

        Thanks for your time and attention to detail!

        Comment

        • Steve Pugh

          #5
          Re: Have a linked image arrive--centered.

          riprap1951@comc ast.net (Terry B.) wrote:
          [color=blue]
          >Much thanks to David and Steve for the concise, helpful answers! I was
          >assuming that there was/is a simple, straightforward method to achieve
          >the linked-image-autocentered effect, but now that you've told me it's
          >just another oddball 'hole' in CSS capabilities I feel not-as-dense.[/color]

          It's not a hole in CSS.

          You apply CSS to every HTML document by associating a stylesheet to it
          (via <link> or <style> or style="").
          You then link to a JPG (for example) file. The browser loads that file
          into the window in place of the HTML page. Obviously there's no
          stylesheet associated with the JPG file.

          You might as well ask how to apply CSS to an HTML page without
          including any actual CSS code.

          If you want to apply CSS to how the image is displayed then follow
          David's advice and place the image in a web page.

          Steve

          --
          "My theories appal you, my heresies outrage you,
          I never answer letters and you don't like my tie." - The Doctor

          Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

          Comment

          Working...