HighDots Forums  

Have a linked image arrive--centered.

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Have a linked image arrive--centered. in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Have a linked image arrive--centered. - 11-06-2003 , 10:37 PM






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

Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Have a linked image arrive--centered. - 11-07-2003 , 02:30 AM






Terry B. wrote:

Quote:
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.
You can only centre an image if it is in document.
http://dorward.me.uk/www/centre/

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


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Have a linked image arrive--centered. - 11-07-2003 , 04:22 AM



riprap1951 (AT) comcast (DOT) net (Terry B.) wrote:

Quote:
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.
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 (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Have a linked image arrive--centered. - 11-08-2003 , 09:15 PM



Steve Pugh <steve (AT) pugh (DOT) net> wrote

Quote:
riprap1951 (AT) comcast (DOT) net (Terry B.) wrote:

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.

Use Opera instead. It centres stand alone images.

Steve
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!


Reply With Quote
  #5  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Have a linked image arrive--centered. - 11-09-2003 , 01:03 PM



riprap1951 (AT) comcast (DOT) net (Terry B.) wrote:

Quote:
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.
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 (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.