473,840 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Layout tears apart when resizing text

Dear NG,

years have passed and I am still more designer than programmer. I
build a new version of my website which has a few nasty bugs,
especially on my startpage: Resizing text brakes the dotted lines
which I use as visual border on the left and right edge of the page
layout and thus produces an unwanted white gap above the enlarged
text. Viewing the page with IE shows this behaviour even without
changing the font size.

My Idea was to create a containing block (#cont-dyn) for the two
arrows and the text centered within them with a background image which
should repeat along the x-axis when the text is resize. It seems to me
that this background image is not rendered in the browsers.

Below is a link to the affected page:
http://tomasio.at/index.html

The corresponding CSS can be found here:
http://tomasio.at/stylesheet3.css

Any hints will be very appreciated.

kind regards,
--
tomasio
Nov 8 '06 #1
6 2269
On 2006-11-09, tomasio <da****@jan.etw rote:
Dear NG,

years have passed and I am still more designer than programmer. I
build a new version of my website which has a few nasty bugs,
especially on my startpage: Resizing text brakes the dotted lines
which I use as visual border on the left and right edge of the page
layout and thus produces an unwanted white gap above the enlarged
text.
My Idea was to create a containing block (#cont-dyn) for the two
arrows and the text centered within them with a background image which
should repeat along the x-axis when the text is resize. It seems to me
that this background image is not rendered in the browsers.
You're not seeing it because of margin-collapsing. The paragraph that
starts "Willkommen zur Homepage" has a top margin of 1.12em (assuming
the default stylesheet), and the margin therefore also gets bigger as
the text does (that's how em units work).

This margin "collapses" with the top margin of #cont-dyn since there is
no border or padding between them. In other words, after collapsing,
#cont-dyn has a top margin of 1.12em and the top edge of the p is
aligned with its top edge. That's why you can't see the background
image.

If you want to keep the margin on the paragraph and see your background
image, add "padding-top: 1px" to #cont-dyn. This will keep the p's
top margin contained inside #cont-dyn.

Alternatively you might prefer the effect of losing the top margin on
the p. If you set margin-top: 0 on .copy, you won't get such a big gap
when the text is resized and perhaps won't need #cont-dyn and the
background image at all.
Below is a link to the affected page:
http://tomasio.at/index.html

The corresponding CSS can be found here:
http://tomasio.at/stylesheet3.css
Nov 9 '06 #2
Ben C wrote:
On 2006-11-09, tomasio <da****@jan.etw rote:
>Dear NG,

Resizing text brakes the dotted lines
which I use as visual border on the left and right edge of the page
layout and thus produces an unwanted white gap above the enlarged
text.
>My Idea was to create a containing block (#cont-dyn)
with a background image which should repeat
along the x-axis [actually y-axis] when the text is resize[d].
It seems that this background image is not rendered in the browsers.

You're not seeing it because of margin-collapsing.

That's why you can't see the background image.
The images will be visible only after the background declarations are
removed from div.copy since they hide/overlay the background of
div#cont-dyn. Then the background image extends when the text is
resized. I have no idea why background images are provided for both, the
div.copy on the x-axis and the div#cont-dyn on the y-axis, but the
div.copy one is not needed. Additionally, there is I believe an attempt
by the OP to cure this with z-index: 1; applied to div#cont-dyn which
does nothing and is not needed.

Only once the above is taken care of will the background image be
viewable and an unwanted white gap is (not so-) evident on resizing the
text. You are right on with collapsing margins causing this unwanted
white gap to the background image extension on resizing and with either
of your cures it is eliminated.

It certainly would have been easier to actually see the problem right
away, but that fine, faint yellow was really hard to spot. Time to relax
my eyes now.

--
Gus
Nov 9 '06 #3
Hi Ben and Gus!

Thank you a lot for your helpful input. I finally managed to fix this
display bug and can leave the page online. have a luck on the fruits
of your advice: http://tomasio.at
Nov 11 '06 #4
On Sun, 12 Nov 2006 00:42:28 +0100, tomasio <da****@jan.etw rote:
>Hi Ben and Gus!

Thank you a lot for your helpful input. I finally managed to fix this
display bug and can leave the page online. have a luck on the fruits
of your advice: http://tomasio.at
hrhm.. I meant "have a _look_".
Nov 11 '06 #5
tomasio wrote:
On Sun, 12 Nov 2006 00:42:28 +0100, tomasio <da****@jan.etw rote:
>Hi Ben and Gus!

Thank you a lot for your helpful input. I finally managed to fix this
display bug and can leave the page online. have a luck on the fruits
of your advice: http://tomasio.at
hrhm.. I meant "have a _look_".
I still think that the faint yellow hurts my eyes, but in any case:
/* Des bringts. */

--
Gus
Nov 12 '06 #6
On Sun, 12 Nov 2006 00:08:18 -0500, Gus Richter
<gu********@net scape.netwrote:
>tomasio wrote:
>On Sun, 12 Nov 2006 00:42:28 +0100, tomasio <da****@jan.etw rote:
>>Hi Ben and Gus!

Thank you a lot for your helpful input. I finally managed to fix this
display bug and can leave the page online. have a luck on the fruits
of your advice: http://tomasio.at
hrhm.. I meant "have a _look_".

I still think that the faint yellow hurts my eyes, but in any case:
/* Des bringts. */
Danke, Gus!

In the meanwhile I put up the complete homepage. Maybe I will change
the yellow sometimes, too ; )
Nov 24 '06 #7

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

Similar topics

82
10741
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | | | | | | | | left | center | right | | | | | | | | |
8
3098
by: kaeli | last post by:
I have had a little free time lately to revisit a problem I have with the 3 column layout plus a header and footer. See this example: http://glish.com/css/7.asp There is a header and 3 columns. Pretend there's a footer at the bottom, too. :) Here are the issues I have been unable to solve without tables _somewhere_
20
25020
by: Tammy | last post by:
What would be a good alternative to using frames? I need something that will section my webpage into two halves and can change both frames on a single click. Thanks in Advance, Tammy
5
633
by: Stephen Poley | last post by:
There are plenty of people around these groups who promote the idea of flexible page design. However, while employing relative units and not fixing column-widths is a big improvement on fixed-pixel layouts, it isn't really enough IMHO. In principle the user can indeed set his window-size to what he wants, and sites will then adjust to that. The adjustment will however not be optimal for all sites. The problem becomes evident if one...
33
2450
by: Dave (DreamIsle) | last post by:
Hello. I'm working on a layout that I need to be pixel specific. How can I get the font to stay precisely the height I need? Specifying line-height or font-size in px doesn't yield the results I need. The font size scales when I change the browser's font size and the text moves from where I need it.
14
4867
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
7
2184
by: Trammel | last post by:
Im trying to do something which I hoped would be alot easier than it seems. Im trying to design the layout of the page in CSS to avoid table, etc but having problems making the bottom "fade" background actually stick to the bottom of the page. Try making your browser window small... then scroll down & see how ugly it looks. ....now try resizing your browser & notice the wierd behavior. It also reacts differently in IE & FF (Which is...
1
1408
by: tomasio | last post by:
Dear Experts, I want to behave the text on my homepage like in this example: http://tomasio.at/temp/korrekt.gif The dashed lines on the left and right borders should continue seamlessly while resizing the text. Unluckily I always get a horizontal gap when I make text bigger in Firefox. Internet Explorer even shows the gap at the default (=medium) text size. Look here for the html page:
5
1632
by: Ed Sproull [MSFT] | last post by:
First I'm pretty new to ASP.NET and I'm having a simple problem. I have small website with a header, sidebar and the the content. I want my content to appear beside my sidebar which seems to be a pretty standard layout. However when ever I resize my browser the content resizes below the sidebar. I've been digging through example websites can't seem to stop this behaviour. I had one person suggest Tables but I see a few posts that say...
0
9856
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9698
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10597
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10656
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9434
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7834
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4071
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3136
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.