473,395 Members | 1,969 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.

making boxes fit right

Here's an example I found on another site. I was visiting the site named
in the URL in this image, and got the registrar's site because the domain
had apparently expired. Look at the boxes along the top with text on how
to renew or how to backorder the domain. They run off the bottom and you
can't see all the text, now the link that's supposed to be inside.

The question I have: is there a right way to make these boxes show up with
a size that always fits the text, and without screwing up the relationships
of things on the page? What has this webmaster done wrong?

The capture of the page is in this PNG file:
http://phil.ipal.org/usenet/ciwas/2006-05-20/iyd-1.png

FYI, I'd recommend NOT using that registrar for a different reason:
When the domain goes expired and disabled, they hide the owner information
on the WHOIS data. Seems like they want no one to notify the owner that
the domain is expired and might be handed over to someone else who offered
more money for it. That's probably not the case for this domain, but it
could be the case for some, and hence their practice. What it does mean
is if you set up web sites that run themselves and expire when you are
away, you might not know, and your friends can't renew it for you (assuming
you have friends that are friend enough to do that).

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 20 '06 #1
3 1313
ph**************@ipal.net wrote:
Here's an example I found on another site. I was visiting the site named
in the URL in this image, and got the registrar's site because the domain
had apparently expired. Look at the boxes along the top with text on how
to renew or how to backorder the domain. They run off the bottom and you
can't see all the text, now the link that's supposed to be inside.

The question I have: is there a right way to make these boxes show up with
a size that always fits the text, and without screwing up the relationships
of things on the page? What has this webmaster done wrong?

The capture of the page is in this PNG file:
http://phil.ipal.org/usenet/ciwas/2006-05-20/iyd-1.png


Okay, the site at
http://www.welistyourdomain.com/?host=andrewdupont.net is made up of
frames. The top frame is sized at 150 pixels tall and has scrolling
turned off.

So if the content is taller than 150 pixels (which it easily is if the
user uses a font size of their own choosing) any content that doesn't
fit inside that 150 pixels is hidden.

This is one of the many pitfalls of using frames, and also of assuming
a fixed font size that can be imposed on all users. Both ideas should
be be avoided for the majority of sites.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
May 21 '06 #2
On Sat, 20 May 2006 18:24:06 +0100 Steve Pugh <st***@pugh.net> wrote:

| ph**************@ipal.net wrote:
|
|>Here's an example I found on another site. I was visiting the site named
|>in the URL in this image, and got the registrar's site because the domain
|>had apparently expired. Look at the boxes along the top with text on how
|>to renew or how to backorder the domain. They run off the bottom and you
|>can't see all the text, now the link that's supposed to be inside.
|>
|>The question I have: is there a right way to make these boxes show up with
|>a size that always fits the text, and without screwing up the relationships
|>of things on the page? What has this webmaster done wrong?
|>
|>The capture of the page is in this PNG file:
|> http://phil.ipal.org/usenet/ciwas/2006-05-20/iyd-1.png
|
| Okay, the site at
| http://www.welistyourdomain.com/?host=andrewdupont.net is made up of
| frames. The top frame is sized at 150 pixels tall and has scrolling
| turned off.
|
| So if the content is taller than 150 pixels (which it easily is if the
| user uses a font size of their own choosing) any content that doesn't
| fit inside that 150 pixels is hidden.
|
| This is one of the many pitfalls of using frames, and also of assuming
| a fixed font size that can be imposed on all users. Both ideas should
| be be avoided for the majority of sites.

I'd agree, this should be avoided. But it's more than just a user choosing
her font size. I've seen different default fonts between browsers, even in
different versions of the same browser. Screen resolutions can also be a
big factor. Someone with 640x480 is going to want smaller fonts (and maybe
a smarter browser will default to that) and someone with 1920x1440 is going
to want larger fonts.

Any chance frame sizes can be specified in ems?

I don't want to make mistakes like that site. While I am unlikely to do
what they did, it would still be nice to know a proper way to do it. None
of what I see there actually _needs_ frames, so I think that was a bad
choice on their part. More likely a decent design would have some box
layout and size things ems or percentages, etc. And if frames, leave the
scroll bars on.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 21 '06 #3
To further the education of mankind, ph**************@ipal.net
vouchsafed:
Any chance frame sizes can be specified in ems?


The top frame _could_ have been scroll-enabled, too. However, frames were
not necessary for that page, anyway.

--
Neredbojias
Infinity has its limits.
May 21 '06 #4

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

Similar topics

12
by: Secret Guy | last post by:
I'm trying to understand generally how to make a grid of variously sized boxes using CSS. The first idea I had was to make a box where I can see the margin, padding, border and content edges, and...
2
by: Michael | last post by:
Need some help trying to read values from web controls - specifically *finding* the controls (like a drop down list) - that are added dynamically added within an asp:panel control. The page...
8
by: pmud | last post by:
Hi, I have 2 questions: 1. I have an editable data grid with 21 columns. I need to edit only 2 cloumns in this data grid. But when the grid is displayed in Edit mode, all the columns show long...
11
by: Edson Peacock | last post by:
I have a report with sub reports, one of the subreports have 12 text boxes that are 2" high and I want them all to grow if one goes to 3" high. If anyone has any suggestions they are very much...
6
by: dave8421 | last post by:
Hi, I'm a bit confused about the definition about "Prinicpal Block Boxes" in CSS 2.1 draft specification. ( http://www.w3.org/TR/2006/WD-CSS21-20061106 ) <pre> 9.2.1 Block-level elements and...
0
by: Lauren Quantrell | last post by:
I've seen a lot of posts asking how to get Datasheet-like functionality into a Continuous Form. One of the obvious missing elements is adjustable column widths. I had the same need so I created...
10
by: Jason | last post by:
I'm making a program that will convert decimal inputs (in this case, in inches) and output a fractional answer. At the moment, I'm only able to output the fractional answer in three parts: A whole...
1
by: woodey2002 | last post by:
Hi Everyone and many thanks for your time.. I am trying to begin access and a bit of VBA i am enjoying it but I have a annoying problem I just can’t get any where on. My databse mostly includes...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...

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.