将文本定位在居中图像上的问题 [英] Problem positioning text over an centered image

查看:83
本文介绍了将文本定位在居中图像上的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个800px宽的页面。也就是说,我有一张

800px图像。我希望页面的内容居中。我能做到这一点

罚款。在顶部,我想要一个带有文本菜单的图像徽标放在顶部。

现在我在Mozilla中工作得很好,在IE中也很糟糕。

该页面验证CSS和HTML都很好。这应该很简单,但不知怎的,我只是没有定位。


这是该页面的链接: http://www.nyccure.com/test/ptest.html


任何建议,假设它们在解剖学上是可能的,

赞赏。

TIA。

-

Matt Silberstein


今天就达尔富尔种族灭绝事件做点什么


种族灭绝是新闻|做证人
http://www.beawitness.org


达尔富尔:种族灭绝我们可以停止
www。 darfurgenocide.org


Save Darfur.org ::苏丹达尔富尔地区的暴力和苦难
http://www.savedarfur.org/

解决方案

Matt Silberstein写道:

我正在尝试制作一个800px宽的页面。




< http:// allmyfaqs。 com / faq.pl?AnySizeDesign>


2005年9月22日星期四22:18:21 GMT,

comp.infosystems。< a rel =nofollowhref =http://www.authoring.htmltarget =_ blank> www.authoring.html ,Leif K-Brooks

< eu *****@ecritters.biz>在< N4 ******************* @ monger.newsread.com>

写道:

Matt Silberstein写道:

我正在尝试制作一个800px宽的页面。



< http://allmyfaqs.com/faq .pl?AnySizeDesign>




不是我的问题,但很好。那么我该如何处理图像标识?

让我重新解释一下这部分问题。我想显示徽标,

图像,我希望它居中,我想在图像右侧的

右侧覆盖文本菜单。

-

Matt Silberstein


今天就达尔富尔种族灭绝事件做点什么


种族灭绝是新闻|做证人
http://www.beawitness.org


达尔富尔:种族灭绝我们可以停止
www。 darfurgenocide.org


Save Darfur.org ::苏丹达尔富尔地区的暴力和苦难
http://www.savedarfur.org/


9月22日星期四2005年,Matt Silberstein写道:

2005年9月22日星期四22:18:21 GMT,在
comp.infosystems。 www.authoring.html ,Leif K-Brooks
写道:

Matt Silberstein写道:

我正在尝试制作一个800px宽的页面。
< http://allmyfaqs.com/faq.pl?AnySizeDesign>




这也是我的反应......

不是我的问题,但很好。那么我该如何处理图片
logo?




不要宽800px。


如果你有一个必须存在的图像本身,让我们说

2,000px宽,那么我不会和你争论anysizedesign。对于

例如,如果您正在开设放射线摄影课程,那么这些图像只需要包含足够的细节来确定其临床要点。那些没有碰巧显示宽度为2,000px的b
$必须尽可能地滚动为
。这就是问题领域的现实。所以说:

它是证明规则的例外。


*但是*对于一个公共或花园网页,不同考虑适用,

如果你坚持在我的

选择的浏览器窗口中显示你的公司徽标800px(可能大约650px宽,或者我的

最后选择了它,然后你不太可能吸引这个

特定客户。


你真的没有太明确了(草稿的网址可能有

有助于更准确地了解您的要求),但ISTM

如果您定义了可能会造成更少的伤害您的徽标作为CSS

背景,而不是试图将其作为HTML内容进行限制。


祝你好运


I am trying to make a page that will be 800px wide. That is, I have an
800px image. I want the content of the page centered. I can do that
fine. On the top, I want an image logo with a text menu placed on top.
Right now I have that working just fine in Mozilla and horrible in IE.
The page validates just fine for both CSS and HTML. This should be
easy, but somehow I just don''t get positioning.

Here is the link to the page: http://www.nyccure.com/test/ptest.html

Any suggestions, assuming they are anatomically possible, are
appreciated.
TIA.
--
Matt Silberstein

Do something today about the Darfur Genocide

Genocide is news | Be A Witness
http://www.beawitness.org

"Darfur: A Genocide We can Stop"
www.darfurgenocide.org

Save Darfur.org :: Violence and Suffering in Sudan''s Darfur Region
http://www.savedarfur.org/

解决方案

Matt Silberstein wrote:

I am trying to make a page that will be 800px wide.



<http://allmyfaqs.com/faq.pl?AnySizeDesign>


On Thu, 22 Sep 2005 22:18:21 GMT, in
comp.infosystems.www.authoring.html , Leif K-Brooks
<eu*****@ecritters.biz> in <N4*******************@monger.newsread.com>
wrote:

Matt Silberstein wrote:

I am trying to make a page that will be 800px wide.



<http://allmyfaqs.com/faq.pl?AnySizeDesign>



Not the question I had, but fine. So how do I deal with an image logo?
Let me rephrase that part of the issue. I want to display the logo, an
image, I want it centered, and I want to overlay a text menu on the
right side of the image.
--
Matt Silberstein

Do something today about the Darfur Genocide

Genocide is news | Be A Witness
http://www.beawitness.org

"Darfur: A Genocide We can Stop"
www.darfurgenocide.org

Save Darfur.org :: Violence and Suffering in Sudan''s Darfur Region
http://www.savedarfur.org/


On Thu, 22 Sep 2005, Matt Silberstein wrote:

On Thu, 22 Sep 2005 22:18:21 GMT, in
comp.infosystems.www.authoring.html , Leif K-Brooks
wrote:

Matt Silberstein wrote:

I am trying to make a page that will be 800px wide.
<http://allmyfaqs.com/faq.pl?AnySizeDesign>



Which was pretty much my reaction too...
Not the question I had, but fine. So how do I deal with an image
logo?



Don''t make it 800px wide.

If you have an image that has to be, in and of itself, let''s say
2,000px wide, then I won''t argue with you about anysizedesign. For
example if you''re giving a course on radiography, the images simply
/have/ to contain enough detail to make their clinical point. Those
who don''t happen to have a display 2,000px wide will have to scroll as
best they can. That''s the reality of the problem domain. So to say:
"it''s the exception that proves the rule".

*But* for a common or garden web page, different considerations apply,
and if you insist on displaying your company logo at 800px in my
chosen browser window (which might be about 650px wide, or whatever I
last chose it to be), then you''re unlikely to appeal to this
particular customer.

You haven''t really been too definite (the URL of a draft might have
helped to get a more concrete idea of your requirement), but ISTM that
you might cause less harm if you defined your logo as a CSS
background, rather than trying to cramp it in as HTML content.

good luck


这篇关于将文本定位在居中图像上的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆