473,216 Members | 1,497 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,216 software developers and data experts.

spaces become line breaks

Can someone tell me why, in IE7, the spaces in the footer (C 2007
ESSENCE) become line breaks on this this page http://s195679515.onlinehome.us/essence/index.html
?

Sep 12 '07 #1
4 2153
On 2007-09-12, alice <al***@fearofdolls.comwrote:
Can someone tell me why, in IE7, the spaces in the footer (C 2007
ESSENCE) become line breaks on this this page http://s195679515.onlinehome.us/essence/index.html
?
My guess is that it's computing the shrink-to-fit width of the float
that that's in incorrectly.

You could try removing float: left on #footer because I don't think you
need it anyway. That way its computed width should be much wider and
there should be plenty of room and so no line breaks.

The auto width of an ordinary block box as opposed to a float is easier
to work out so maybe there's more chance IE7 will be able to do it
right.
Sep 12 '07 #2
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2007-09-12, alice <al***@fearofdolls.comwrote:
Can someone tell me why, in IE7, the spaces in the footer (C 2007
ESSENCE) become line breaks on this this page
http://s195679515.onlinehome.us/essence/index.html
?

My guess is that it's computing the shrink-to-fit width of the float
that that's in incorrectly.

You could try removing float: left on #footer because I don't think you
need it anyway. That way its computed width should be much wider and
there should be plenty of room and so no line breaks.

The auto width of an ordinary block box as opposed to a float is easier
to work out so maybe there's more chance IE7 will be able to do it
right.
Removing the float makes the spacing above the copyright text
trickier to manage in this design. It can be done with creative
use of line-height for the footer (1.8 perhaps).

OP might try removing px size for font on footer and also putting
in &nbsp; instead of the spaces in that text.

BTW, the design looks nice if the user does not enlarge text more
than a click or two. The html looks clean and simple, perhaps
better to make the nav a list...

--
dorayme
Sep 12 '07 #3
Scripsit dorayme:
OP might try removing px size for font on footer and also putting
in &nbsp; instead of the spaces in that text.
.... or using the CSS way, white-space: nowrap, instead of &nbsp;. I usually
advocate &nbsp; for many purposes, since it works even when CSS is off, but
here the problem only appears when CSS is in use, so a CSS approach is
natural.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Sep 13 '07 #4
On 2007-09-12, dorayme <do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
>On 2007-09-12, alice <al***@fearofdolls.comwrote:
Can someone tell me why, in IE7, the spaces in the footer (C 2007
ESSENCE) become line breaks on this this page
http://s195679515.onlinehome.us/essence/index.html
?

My guess is that it's computing the shrink-to-fit width of the float
that that's in incorrectly.

You could try removing float: left on #footer because I don't think you
need it anyway. That way its computed width should be much wider and
there should be plenty of room and so no line breaks.

The auto width of an ordinary block box as opposed to a float is easier
to work out so maybe there's more chance IE7 will be able to do it
right.

Removing the float makes the spacing above the copyright text
trickier to manage in this design.
That may be because the element has a top margin. I can't get back to
the original page now to have a look, but if clearance on a box works
out to more than its top margin then the top margin doesn't appear-- in
a sense the clearance is considered to "count" as margin.

But not if it's a float. The spec spells out the former case, but for
floats speaks of "top outer edge" being below "bottom outer edge", which
implies all the margins have to be in place (and margins don't collapse
between floats either).

(This is at the end of 9.5 in CSS2.1, recently made even more confusing
in the 2007-07-19 version).
use of line-height for the footer (1.8 perhaps).
An alternative might be padding-top on the footer since I think it has a
transparent background anyway.
Sep 13 '07 #5

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

Similar topics

13
by: p s | last post by:
hi all i have a vb6 project, one of the functions is to read in a text file and place it into an array problem is, when people use the TAB key in the original file that is read, i just get the...
5
by: Porthos | last post by:
When I pull any given attribute out of my XML file via an XSL file, a blank character (space) is appended after it. For example: XSL File ---------------------- <xsl:value-of...
1
by: Chris Sharman | last post by:
Writing a form, several questions have got a list of checkboxes, with associated descriptions (mostly one word), all on a line. Eg: Describe yourself: Fat Hairy Ugly Wears glasses. I want to...
4
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary...
2
by: Craig Buchanan | last post by:
I have a HTML fragment that looks like this: <tr> <td valign="top" nowrap><span class="textBold">Property ID: </span></td> <td valign="top" nowrap colspan="4"...
5
by: joelbyrd | last post by:
Didn't know exactly where to post this, but: How do I get line breaks in a textarea? I'm pulling text from a database, and this text definately has line breaks in it, because I replaced all the...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
1
by: buggtb | last post by:
Hi Guys, I've been given the joyous task of updating some very old scripts at work and I could do with a little help. Our Unix system dumps text files to pseudo spoolers that our windows...
15
by: removeps-groups | last post by:
How to wrap text in <ptag if the text has no spaces and is very long? Here is an example: ...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.