473,409 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

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
Jul 20 '05 #1
4 1698
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.


You can only centre an image if it is in document.
http://dorward.me.uk/www/centre/

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
ri********@comcast.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

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

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
Steve Pugh <st***@pugh.net> wrote in message news:<o1********************************@4ax.com>. ..
ri********@comcast.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!
Jul 20 '05 #4
ri********@comcast.net (Terry B.) wrote:
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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christopher Scott | last post by:
Anybody know how I can eliminate the ugly-looking border that appears around hyperlinked images in IE5/Mac? I realize that the browser has been discontined but I presume that many are still...
1
by: Shapper | last post by:
Hello, I am adding columns to a datagrid from my aspx.vb code? How to add a column where a thumbnail image is displayed? The url of this image is I the "imageURL" field of the dataset. ...
0
by: Brian Graham | last post by:
I have a report designed in XP with a linked image. No problem. I then imported that report into an Adhoc reporting database. No changes are possible to the imported report. Anyone know of a...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
2
by: Doug | last post by:
Using ASP.NET, is this possible? All I want is something simple, like bold-facing the text. An alternative would be to use plain text links (IE 6.0, so we can rely on CSS and the anchor hover). ...
0
by: wd2006 | last post by:
Hi, I am trying to design a page which has an image at the top and then I want to insert another image on the right hand side and behind the top image. I know with Macromedia Fireworks, you have...
5
by: mattcolenutt | last post by:
Scenario: Have a product form with an "image location" field. The image property uses this field to display the image. Problem: If an image location field has been changed, the image will not...
1
by: bn4 | last post by:
I have been trying to modify a script that i had working in the past but have lost.. ORIGINAL URL: http://www.thescripts.com/forum/thread147097.html STEPS: I want it to do the following:...
0
by: AnagJohari | last post by:
Hello Guys, I have a problem of displaying the image in asp image control, by the way i save the image in a database in byte form now when i retrieve the image from the database & displaying that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.