挑剔的酒吧高度问题 [英] Picky bar height question

查看:55
本文介绍了挑剔的酒吧高度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站位于 www.simi-therapy.com

我的CSS位于 http://www.simi- therapy.com/simitherapy-screen.css


问题 - 关于海滩图片下的深蓝色条形图,一个更改

导致另一个意想不到的,我似乎无法弄明白。


我添加了短语......独立从业者协会,

并在一些帮助下,让它与右边对齐。但现在,蓝色

栏比文字高度高出我想要的高度。我好像b $ b似乎无法弄清楚修复。


任何帮助表示赞赏 - 我是新手。

Deborah

My website is at www.simi-therapy.com
My CSS is at http://www.simi-therapy.com/simitherapy-screen.css

Question -- on the dark blue bar under the beach image, one change
caused another unanticipated one, and I can''t seem to figure it out.

I added the phrase "...an association of independent practitioners",
and with some help, got it to align to the right. But now, the blue
bar is taller by about the height of the text than I want it to be. I
can''t seem to figure out the fix.

Any help appreciated -- I''m a novice.

Deborah

推荐答案

dtmfcc写道:
dtmfcc wrote:

我的网站是 www.simi-therapy.com


问题 - 在海滩图像下的深蓝色条形图上,一次更改

引起了另一个意料之外的事情,我似乎无法弄明白。


我添加了短语......独立从业者协会,

并在一些帮助下,让它与右边对齐。但现在,蓝色

栏比文字高度高出我想要的高度。我好像b $ b似乎无法弄清楚修复。
Question -- on the dark blue bar under the beach image, one change
caused another unanticipated one, and I can''t seem to figure it out.

I added the phrase "...an association of independent practitioners",
and with some help, got it to align to the right. But now, the blue
bar is taller by about the height of the text than I want it to be. I
can''t seem to figure out the fix.



您有:

< div class =" right">< a href =" disclaimer.html"> ; ...

独立从业者协会< / a>< / div>

< div class =" spacer">& nbsp;< ; / div>


如果没有spacer div,你会不会更快乐?


spacer div做了两件事for ;你:(1)通过包含在其中的另一个块级元素来增加你的

子头的高度;并且

(2)阻止后续元素排列在菜单旁边和

免责声明文本。如果您确实需要清算,请添加清除:两者;你的subHeader规则是
,但我认为你根本不需要它。测试一下!

You have:
<div class="right"><a href="disclaimer.html">... an association of
independent practitioners</a></div>
<div class="spacer">&nbsp;</div>

Wouldn''t you be happier without the spacer div?

The spacer div is doing two things "for" you: (1) adding height to your
subHeader by being another block-level element contained within it; and
(2) preventing subsequent elements from lining up next to your menu and
disclaimer text. If you really need the clearing, add clear: both; to
your subHeader rule, but I think you don''t need it at all. Test and see!


>

任何帮助表示感谢 - 我是新手。
>
Any help appreciated -- I''m a novice.



*任何*帮助?哈!你陷入了我的小陷阱!我想指出

a其他可能对你有帮助的东西。


如果你是新手,你很可能更好的编码HTML 4.01

严格而不是XHTML。原因经常在这里和其他NG中讨论,但是在你获得整个

网站之前,现在可能有所改变......哦,哎呀。太晚了。


好​​吧,如果你坚持使用XHTML,或者即使你使用HTML,你也应该用b $ b验证你的代码和CSS:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/


在CSS中我看到:

font-size:77%; / *在MSIE中启用字体大小缩放* /


因为你已经启用缩放(好!)为什么不使用100%的身体'

文字,而不仅仅是我们的访客为我们的

默认设置设置的3/4?我们可以向下改变大小(即使在IE中,谢谢!)如果我们需要
,但我们可能*不必*如果我们可以先读取文本

一览,因为它正是我们的首选尺寸。


你的网站看起来非常好,Deborah。我怀疑你有一个熟练的专业做主要工作,是吗?有相当多的*类*,
但该网站似乎很好地结合在一起。除此之外,该网站友好且令人放心;我会自信地打电话或拜访你的练习。

HTH。 GL!

-

John

*Any* help? Ha! You''ve fallen into my little trap! I''d like to point out
a couple of other things which may help you.

If you''re a novice, you''re probably better off coding in HTML 4.01
strict rather than XHTML. The reasons are often discussed here and in
other NGs, but it might help to change now, before you get the whole
site... oh, oops. Too late.

Well, if you do stay with XHTML, or even if you use HTML, you ought to
validate your code and CSS:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

In your CSS I see:
font-size: 77%; /* Enables font size scaling in MSIE */

Since you''ve enabled scaling (good!) why not use 100% for the body''s
text, rather than only 3/4 of what we visitors have set for our
defaults? We can change the size downwards (even in IE, thanks!) if we
need to, but we might *not* have to if we can read the text at first
glance because it''s exactly our preferred size.

Your site looks extremely good, Deborah. I suspect you had a skilled
professional do the main work, yes? There are rather a *lot* of classes,
but the site seems to hold together very well. Beyond that, the site is
friendly and reassuring; I would confidently call or visit your practice.
HTH. GL!
--
John


John


谢谢你的详细回复!我的反应很长 - 我希望'没关系。


我应该在顶部提到我使用的模板来自
http://www.oswd.org/design/preview/id/1165/ 。它实际上是

备用屏幕css。当我下载它时,我很确定它是有效的,但是你是对的,我应该再次运行它。但有时候法律会产生意想不到的后果,而且我自己也会遇到问题,我不知道怎么解决。稍后会详细介绍。


如果你看一下screen-alt CSS代码中的超级头文件CSS,我很想知道你是否可以帮助我通过在那里看到解决方案,相比之下

到我的subheader代码结束了。


John Hosking写道:
John

Thank you for your detailed reply! My reponse is long -- I hope that''s ok.

I should mention right at the top that I used a template from
http://www.oswd.org/design/preview/id/1165/ . It is actually the
alternate screen css . I''m pretty sure it was valid when I downloaded
it, but you''re right, I should run it again. But sometimes then the law
of unintended consequences applies, and I cause myself problems that I
don''t always know how to solve. More on that later.

If you look at the superheader CSS in the screen-alt CSS code, I''m
wondering if you can help me by seeing the solution there, in comparison
to my subheader code as it ended up.

John Hosking wrote:

dtmfcc写道:
dtmfcc wrote:

>我的网站位于 www.simi-therapy.com


>问题 - 在海滩下的深蓝色酒吧图片,一个变化引起另一个意料之外的事情,我似乎无法弄明白。

我添加了短语......独立从业者协会,<在一些帮助下,让它与右边对齐。但现在,蓝色
栏的高度与文字的高度相比要高得多。我似乎无法弄清楚修复。
>Question -- on the dark blue bar under the beach image, one change
caused another unanticipated one, and I can''t seem to figure it out.

I added the phrase "...an association of independent practitioners",
and with some help, got it to align to the right. But now, the blue
bar is taller by about the height of the text than I want it to be. I
can''t seem to figure out the fix.



您有:

< div class =" right">< a href =" disclaimer.html"> ; ...

独立从业者协会< / a>< / div>

< div class =" spacer">& nbsp;< ; / div>


如果没有spacer div,你会不会更快乐?


spacer div做了两件事for ;你:(1)通过包含在其中的另一个块级元素来增加你的

子头的高度;并且

(2)阻止后续元素排列在菜单旁边和

免责声明文本。如果您确实需要清算,请添加清除:两者;你的subHeader规则是
,但我认为你根本不需要它。测试一下!


You have:
<div class="right"><a href="disclaimer.html">... an association of
independent practitioners</a></div>
<div class="spacer">&nbsp;</div>

Wouldn''t you be happier without the spacer div?

The spacer div is doing two things "for" you: (1) adding height to your
subHeader by being another block-level element contained within it; and
(2) preventing subsequent elements from lining up next to your menu and
disclaimer text. If you really need the clearing, add clear: both; to
your subHeader rule, but I think you don''t need it at all. Test and see!



为了让这个排成一行,我实际上已经从这个新闻组的某人那里得到了一些帮助。我想。删除了spacer div导致

栏变得几乎看不见,文字几乎消失了。

基本上我只看到了一切的最高边缘。


有趣的是,在最初的Sinorca备用

视图中,超级头代码具有左右对齐,并且两者都是

superheader和subheader bars是正确的高度。我只使用

子标题,直到我添加了右对齐的

免责声明,这是正确的高度。文本。所有这一切,我不知道

In order to get this to line up, I had actually received some help from
someone on this newsgroup, I think. Removed the spacer div causes the
bar to become almost invisible, and the text to almost disappear.
Basically then I see just the top edge of everything.

What is interesting about this is that in the original Sinorca alternate
view, the superheader code has the left and right alignment, and both
the superheader and subheader bars are the right height. I only use the
subheader, and it was the right height until I added the right-aligned
"disclaimer" text. All that to say, "I dunno"


>
>

>>
任何帮助表示赞赏 - 我是新手。
>>
Any help appreciated -- I''m a novice.



*任何*帮助?哈!你陷入了我的小陷阱!我想指出

a其他可能对你有帮助的东西。


如果你是新手,你很可能更好的编码HTML 4.01

严格而不是XHTML。原因经常在这里和其他NG中讨论,但是在你获得整个

网站之前,现在可能有所改变......哦,哎呀。太晚了。


好​​吧,如果你坚持使用XHTML,或者即使你使用HTML,你也应该用b $ b验证你的代码和CSS:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/



我会非常谨慎地尝试。我知道这是必要的,但是我这时候还是很害怕。

I will attempt, with great caution. I know it''s needed, but I''m a
little afraid at this point.


>

在CSS中我看到:

font-size:77%; / *在MSIE中启用字体大小缩放* /


因为你已经启用缩放(好!)为什么不使用100%的身体'

文字,而不仅仅是我们的访客为我们的

默认设置设置的3/4?我们可以向下改变大小(即使在IE中,谢谢!)如果我们需要
,但我们可能*不必*如果我们可以先读取文本

一览无余,因为它正是我们的首选尺寸。
>
In your CSS I see:
font-size: 77%; /* Enables font size scaling in MSIE */

Since you''ve enabled scaling (good!) why not use 100% for the body''s
text, rather than only 3/4 of what we visitors have set for our
defaults? We can change the size downwards (even in IE, thanks!) if we
need to, but we might *not* have to if we can read the text at first
glance because it''s exactly our preferred size.



再次出现意想不到的后果。当我这样做的话,那么我的midheader

图形或它背后的区域搞砸了,图形仍然很好,但是出现了一条窄蓝带(中间标题和副标题之间的侧栏文本

color。我知道强加文字大小是不礼貌的

,但是我不够熟练来修复那部分。

它也是模板上有什么,所以我不知道设计师是否有同样的问题。

Unintended consequences again. When I do that, then my midheader
graphic or the area behind it gets messed up, The graphic is still
fine, but there appears a narrow band of light blue (side bar text
color) between the mid-header and the subheader. I know it''s "impolite"
to impose the text size, but I''m not skilled enough to fix that part.
It''s also what was on the template, so I don''t know if the designer had
the same issue or not.


>

你的网站看起来非常好,Deborah。我怀疑你有一个熟练的专业做主要工作,是吗?有相当多的*类*,
但该网站似乎很好地结合在一起。除此之外,该网站友好且令人放心;我会自信地打电话或访问你的练习。
>
Your site looks extremely good, Deborah. I suspect you had a skilled
professional do the main work, yes? There are rather a *lot* of classes,
but the site seems to hold together very well. Beyond that, the site is
friendly and reassuring; I would confidently call or visit your practice.



谢谢,但请再看一遍。这是一个非常好的模板;非常好

简单干净。你对很多课程都是正确的,但是从我阅读1本CSS书的专业知识来看,我该抱怨谁?我来了

意识到CSS是一个非常空间的东西。语言,并在几何上受到挑战我不能总是保持盒子内的盒子。正确的想象

在我脑海里。

Thank you, but again, see above. It''s a really great template; very
simple and clean. You''re right about a lot of classes, but from my
expertise of reading 1 CSS book, who am I to complain? I come to
realize that CSS is a very "spatial" language, and being geometrically
challenged I can''t always keep the "boxes within boxes" imagery properly
in my head.


>


HTH。 GL!
>

HTH. GL!



感谢您的帮助和好评。

Thanks for your help and kind comments.


大家好


我还应该补充一点,我很确定我的网站增加文字大小时海滩图片有问题的原因是因为

my图像没有正确扩展。我想我会记得尝试各种各样的修复,并得出结论认为它可能无限可调,因此我试图控制文本大小。


哦,我们编织的纠结网络.....只是为了漂亮的海滩图片!

这是一个非常糟糕的双关语。好吧。


再次感谢,


Deborah

Deborah写道:
Hi all

I should also add that I''m pretty sure that the reason my site has
problems with the beach image when you increase the text size is because
my image isn''t expanding properly. I think I remember trying all sorts
of fixes to that, and concluding that it probably wasn''t infinitely
adjustable, hence my attempt to control the text size.

Oh what a tangled web we weave ..... just for a pretty beach picture!
That has the making of a really bad pun. Oh well.

Thanks again,

Deborah
Deborah wrote:

John


感谢您的详细回复!我的反应很长 - 我希望'没关系。


我应该在顶部提到我使用的模板来自
http://www.oswd.org/design/preview/id/1165/ 。它实际上是

备用屏幕css。当我下载它时,我很确定它是有效的,但是你是对的,我应该再次运行它。但有时候法律会产生意想不到的后果,而且我自己也会遇到问题,我不知道怎么解决。稍后会详细介绍。


如果你看一下screen-alt CSS代码中的超级头文件CSS,我很想知道你是否可以帮助我通过在那里看到解决方案,相比之下

到我的subheader代码结束了。


John Hosking写道:
John

Thank you for your detailed reply! My reponse is long -- I hope that''s ok.

I should mention right at the top that I used a template from
http://www.oswd.org/design/preview/id/1165/ . It is actually the
alternate screen css . I''m pretty sure it was valid when I downloaded
it, but you''re right, I should run it again. But sometimes then the law
of unintended consequences applies, and I cause myself problems that I
don''t always know how to solve. More on that later.

If you look at the superheader CSS in the screen-alt CSS code, I''m
wondering if you can help me by seeing the solution there, in comparison
to my subheader code as it ended up.

John Hosking wrote:

> dtmfcc写道:
>dtmfcc wrote:

>>我的网站位于 www.simi-therapy.com


>>问题 - 关于在海滩形象下的深蓝色酒吧,一个变化引起了另一个意料之外的事情,我似乎无法弄明白。

我添加了短语......一个协会独立从业者,
,并在一些帮助下,让它与右边对齐。但现在,蓝色
栏的高度与文字的高度相比要高得多。我似乎无法弄清楚修复。
>>Question -- on the dark blue bar under the beach image, one change
caused another unanticipated one, and I can''t seem to figure it out.

I added the phrase "...an association of independent practitioners",
and with some help, got it to align to the right. But now, the blue
bar is taller by about the height of the text than I want it to be. I
can''t seem to figure out the fix.


你有:
< div class =" right">< a href =" disclaimer.html"> ... <的关联独立从业者< / a>< / div>
< div class =" spacer">& nbsp;< / div>

不会没有spacer div你会更开心吗?

spacer div做了两件事for for你:(1)通过作为
中包含的另一个块级元素来增加你的subHeader的高度; (2)防止后续元素在您的
菜单和免责声明文本旁边排列。如果你真的需要清理,请添加清楚:
两者;你的subHeader规则,但我认为你根本不需要它。
测试看看!


You have:
<div class="right"><a href="disclaimer.html">... an association of
independent practitioners</a></div>
<div class="spacer">&nbsp;</div>

Wouldn''t you be happier without the spacer div?

The spacer div is doing two things "for" you: (1) adding height to
your subHeader by being another block-level element contained within
it; and (2) preventing subsequent elements from lining up next to your
menu and disclaimer text. If you really need the clearing, add clear:
both; to your subHeader rule, but I think you don''t need it at all.
Test and see!



为了让这个排队,我想实际上已经从这个新闻组的某个人那里获得了一些帮助。我想。删除了spacer div导致

栏变得几乎看不见,文字几乎消失了。

基本上我只看到了一切的最高边缘。


有趣的是,在最初的Sinorca备用

视图中,超级头代码具有左右对齐,并且两者都是

superheader和subheader bars是正确的高度。我只使用

子标题,直到我添加了右对齐的

免责声明,这是正确的高度。文本。所有这一切,我不知道


In order to get this to line up, I had actually received some help from
someone on this newsgroup, I think. Removed the spacer div causes the
bar to become almost invisible, and the text to almost disappear.
Basically then I see just the top edge of everything.

What is interesting about this is that in the original Sinorca alternate
view, the superheader code has the left and right alignment, and both
the superheader and subheader bars are the right height. I only use the
subheader, and it was the right height until I added the right-aligned
"disclaimer" text. All that to say, "I dunno"


>>
>>

>>>
任何帮助表示赞赏 - 我是新手。
>>>
Any help appreciated -- I''m a novice.


*有*帮助吗?哈!你陷入了我的小陷阱!我想指出
可以帮助你的其他几件事。

如果你是新手,你可能最好用HTML 4.01进行编码<严格而不是XHTML。原因经常在这里和其他NG中讨论,但在你获得整个
网站之前,现在可能有所改变......哦,哎呀。太晚了。

好吧,如果你坚持使用XHTML,或者即使你使用HTML,你也应该验证你的代码和CSS:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/



我会非常谨慎地尝试。我知道这是必要的,但是我现在很害怕b $ b。在这一点上我很害怕。


I will attempt, with great caution. I know it''s needed, but I''m a
little afraid at this point.


>>
在CSS中我看到:
font-size:77%; / *在MSIE中启用字体大小缩放* /

因为你已经启用了缩放(好!)为什么不使用100%的身体的
文本,而不是只有3 / 4我们的访客为我们的
默认设置了什么?我们可以向下改变大小(即使在IE中,谢谢!)如果我们需要,但我们可能*不必*如果我们可以先阅读文本一眼就看了,因为它确切地说我们的首选尺寸。
>>
In your CSS I see:
font-size: 77%; /* Enables font size scaling in MSIE */

Since you''ve enabled scaling (good!) why not use 100% for the body''s
text, rather than only 3/4 of what we visitors have set for our
defaults? We can change the size downwards (even in IE, thanks!) if we
need to, but we might *not* have to if we can read the text at first
glance because it''s exactly our preferred size.



再次出现意想不到的后果。当我这样做的话,那么我的midheader

图形或它背后的区域搞砸了,图形仍然很好,但是出现了一条窄蓝带(中间标题和副标题之间的侧栏文本

color。我知道强加文字大小是不礼貌的

,但是我不够熟练来修复那部分。

它也是模板上有什么,所以我不知道设计师是否有同样的问题。


Unintended consequences again. When I do that, then my midheader
graphic or the area behind it gets messed up, The graphic is still
fine, but there appears a narrow band of light blue (side bar text
color) between the mid-header and the subheader. I know it''s "impolite"
to impose the text size, but I''m not skilled enough to fix that part.
It''s also what was on the template, so I don''t know if the designer had
the same issue or not.


>>
你的网站看起来非常好,Deborah。我怀疑你有一个熟练的专业做主要工作,是吗?有相当多的
类,但网站似乎很好地结合在一起。除此之外,该网站是友好和令人放心的;我会自信地打电话或访问你的练习。
>>
Your site looks extremely good, Deborah. I suspect you had a skilled
professional do the main work, yes? There are rather a *lot* of
classes, but the site seems to hold together very well. Beyond that,
the site is friendly and reassuring; I would confidently call or visit
your practice.



谢谢,但请再看一遍。这是一个非常好的模板;非常好

简单干净。你对很多课程都是正确的,但是从我阅读1本CSS书的专业知识来看,我该抱怨谁?我来了

意识到CSS是一个非常空间的东西。语言,并在几何上受到挑战我不能总是保持盒子内的盒子。正确的想象

在我脑海里。


Thank you, but again, see above. It''s a really great template; very
simple and clean. You''re right about a lot of classes, but from my
expertise of reading 1 CSS book, who am I to complain? I come to
realize that CSS is a very "spatial" language, and being geometrically
challenged I can''t always keep the "boxes within boxes" imagery properly
in my head.


>>

HTH。 GL!
>>

HTH. GL!



感谢您的帮助和好评。


Thanks for your help and kind comments.


这篇关于挑剔的酒吧高度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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