473,395 Members | 1,972 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,395 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 2156
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.