473,545 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Picky bar height question

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

Mar 24 '07 #1
10 1793
dtmfcc wrote:
My website is at 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.
You have:
<div class="right">< a href="disclaime r.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.
*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
Mar 24 '07 #2
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 wrote:
>My website is at 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.

You have:
<div class="right">< a href="disclaime r.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!
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.

*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/
I will attempt, with great caution. I know it's needed, but I'm a
little afraid at this point.
>
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.
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.
>
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.
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!
Thanks for your help and kind comments.
Mar 24 '07 #3
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

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 wrote:
>>My website is at 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.

You have:
<div class="right">< a href="disclaime r.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!

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.

*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/

I will attempt, with great caution. I know it's needed, but I'm a
little afraid at this point.
>>
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.

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.
>>
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.

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!

Thanks for your help and kind comments.
Mar 24 '07 #4
In article
<11************ **********@l75g 2000hse.googleg roups.com>,
"dtmfcc" <de*********@sb cglobal.netwrot e:
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.

If you remove the spacer div (as mentioned by JH), you can
ameliorate the problem that the spacer was meant to address by
giving a guessed value to bottom padding like:

..subHeader {

padding: 1ex 1ex 2.5ex 1.5mm;
instead of your 1ex.

This is mildly ok for a few clicks of text size changes.

Try this if the game is to make the least changes (and so have
more time to concentrate instead on saving families from train
wrecks ahead).

--
dorayme
Mar 24 '07 #5
John Hosking wrote:
dtmfcc wrote:
>My website is at 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.

You have:
<div class="right">< a href="disclaime r.html">... an association of
independent practitioners</a></div>
<div class="spacer"> &nbsp;</div>
The spacer class needs display:inline; if you're using a block element
(div). Should do it.
Mar 24 '07 #6
zzpat wrote:
John Hosking wrote:
>dtmfcc wrote:
>>My website is at 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.

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

The spacer class needs display:inline; if you're using a block element
(div). Should do it.


Or...better yet, try removing &nbsp; from the spacer div.
<div class="spacer"> </div>
Mar 24 '07 #7
Thanks to all of you for the fixes. Removing the &nbsp helped, and
changing the subheader padding fixed it the rest of the way.

Mid-morning I had added the following post

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.

I'm having such good luck here that I thought I may as well ask about
that. I seem to remember asking about this a very long time ago, and I
think I learned that having images expand to fill space in CSS is very
tricky indeed.

Thanks again for the subheader help. I'm uploading the fixes in just a
moment.

Deborah
Mar 24 '07 #8
Deborah wrote:
>
Mid-morning
....maybe where *you* are...
I had added the following post
Since you're replying to that very post, you can just leave that part of
your post as quoted text. Thunderbird does that really nicely; you just
insert your new comments on lines following the relevant quoted stuff,
and delete the parts you aren't addressing.
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.

I'm having such good luck here that I thought I may as well ask about
that. I seem to remember asking about this a very long time ago, and I
think I learned that having images expand to fill space in CSS is very
tricky indeed.
Consider this approach:

In .midHeader, add height:100px;
In .headerTitle, throw out padding-bottom: 2.25ex;

This has the effect of fixing the midHeader to be exactly the height of
your beach image, no matter how large or small the "Families Counseling
Center" text is. The subHeader, containing your navbar and disclaimer
text, won't move down when the user upsizes her text. Try this out and
see if that's what you want. When you say your image "isn't expanding
properly," you might mean you're not happy with the trade-offs for
resized texts. This approach has different trade-offs.
In other whiny-sounding suggestions:

In your CSS is: "/* ##### Header ##### -- I don't use superHeader */" .
So fine, don't use it. But then get it out of your CSS file. Copy those
five rules into a text file for safe-keeping, if you must, but I'll bet
you never need that stuff in your life, if you're not using it now. You
may want to likewise clean out your XHTML of the whole superHeader div.

You have a <div id="header"in your code. Well, it seems that this
isn't really a header, but a container of your entire page. Maybe you
want to rename it? Or maybe, even better, you can get rid of it
completely. It seems to be referenced only in your print .css, and only
adds a black line as a bottom border. No, *wait*: I can't tell. The
reason is that you're missing some </divclosing tag(s). Probably you
need to add one before <div id="side-bar">. This is that validation
thing again. I try to scope out your code, but one little error throws
me off. I'm like a strictly compliant browser.[1]

Your main heading is appropriately marked up as <h1>, but you've added a
class to it (maybe because you had to), so you have this:
<h1 class="headerTi tle">Families Counseling Center </h1>
Ordinarily, h1 is pretty big by default, but your added class styles it
as .headerTitle {font-size: 337%;}, which ought to be enormous. But you
have to do 337% because of the font-size: 77%; in your body. See? It
gets sticky fast. :-)

One more: sizing things in mm is kind of weird for a Web page. It only
sometimes matches the millimeters on a user's screen, and will never
flex when the text is resized. Consider ems instead.

Hmm, more lecture than supportive technical assistance. I guess that's
why I'm a computer geek and not a family counselor...

[1]Maybe I don't really exist.

--
John
Mar 25 '07 #9
In article <46********@new s.bluewin.ch>,
John Hosking <Jo**@DELETE.Ho sking.name.INVA LIDwrote:
I try to scope out your code, but one little error throws
me off. I'm like a strictly compliant browser.[1]>
[1]Maybe I don't really exist.
There is no maybe about it. If you are like something then you
must exist.

It is no use trying to argue the toss on this by saying that you
might be like something that does not exist and so could very
well share in not existing yourself. There is deep trouble with
this defence.

Look, why not simply trust me and put all your worries about your
existence aside.

--
dorayme
Mar 25 '07 #10

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

Similar topics

15
3754
by: Garmt de Vries | last post by:
I would have guessed that this issue had been discussed to death, but I couldn't find an answer to my problem in the ciwas archives. So, at the risk of asking something trivial, here goes: I want to have a page that looks as follows: at the left, a blue column with a navigation menu. The rest of the page, with a white background, is for the...
5
2896
by: Secret Guy | last post by:
Because of my experience posting various places over the last couple of weeks: I'm expecting to be greated with hostility for asking about concepts instead of "practical" things, since that has been my experience for years and decades. Maybe I'm projecting hostility. I don't know. How can I ask about theory and concepts without offending...
2
15028
by: dixie | last post by:
I know I've asked this question in the last week, but no matter how hard I look, I can't find it. So I'll type it again. Is it possible to set the height of the detail section of a report using vba? I want to be able to set the height in a table and have the detail section adjust to that height, no matter what it is really set to. Is that...
9
19505
by: Adam | last post by:
Can someone please help!! I am trying to figure out what a font is? Assume I am working with a fixed font say Courier 10 point font Question 1: What does this mean 10 point font Question 2: How do I determine how many characters I can get on a line Question 3: How do I determine how many lines I can get on a page. Assume no margins...
5
1662
by: esingley | last post by:
I've done a lot of poking around the web and this newsgroup and have seen a number of answers to this question. But, I wanted to appeal to the experts here one last time before I decide to let the issue go and move on. Here's the deal: I have a DIV that I want to stretch to 100% of the height the page. Not just the viewport, but the page....
7
7426
by: questionz_99 | last post by:
I've created a style sheet with three columns contained in a fixed-width box. The columns are all relative position, percentage widths. (I wanted to avoid the fixed-width columns in the "Holy Grail" layout). I'm using paragraph borders to set off items in the middle column. But I occasionally want to create paragraphs within those...
4
7323
by: Kourosh | last post by:
Is there a way to get the hight of text in a table using code?
1
4178
epots9
by: epots9 | last post by:
I have a image inside of a div <div id="image"> <div id="loader"> <img id="loaderImage" src="assets/loader.gif" alt="loading..." /> </div> <div id="loaded"> <img id="picture" src="" alt="" /><!--image in question--> <div id="closeAll" onclick="closeAll();">X</div> </div>
4
2790
by: ge5talt | last post by:
Longtime reader, 1st time poster :) I am in the process of overhauling a website and replacing an old table-based quirksmode layout with a standards-mode tableless one. I am currently working on pop-up webpages which used to be liquid and proportionally resizable (including input fields on them), something I have found to be tough to reproduce...
0
7393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7803
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7411
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5322
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1871
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.