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

Overlaying captions on input fields

I have designed a form whereby the bottom right hand corner of each
field is overlayed with text that act as a caption for the field. As
an example see the background labels in this article
http://www.microsoft.com/mind/0299/forms/forms.asp

My styling is a variation of that put forth in the article and is
based on absolute positioning.

However I am looking for a generic solution that will maintain the
effect for different sizes of fields and if the field is dynamically
resized.

A few spring to mind... dynamic properties, scripting but I am not
sure where to start or what the most apt approach would be.

Appreciate some guidance, hints etc.
Jul 21 '05 #1
2 2904


"wooks" <wo****@hotmail.com> wrote in message
news:88**************************@posting.google.c om...
I have designed a form whereby the bottom right hand corner of each
field is overlayed with text that act as a caption for the field. As
an example see the background labels in this article
http://www.microsoft.com/mind/0299/forms/forms.asp

My styling is a variation of that put forth in the article and is
based on absolute positioning.

However I am looking for a generic solution that will maintain the
effect for different sizes of fields and if the field is dynamically
resized.

A few spring to mind... dynamic properties, scripting but I am not
sure where to start or what the most apt approach would be.

Appreciate some guidance, hints etc.


Have you tried making each input field a block and positioning the label as
absolute with side offsets to keep it in the bottom right?

G
Jul 21 '05 #2

George King wrote:
"wooks" <wo****@hotmail.com> wrote in message
news:88**************************@posting.google.c om...
I have designed a form whereby the bottom right hand corner of each
field is overlayed with text that act as a caption for the field. As an example see the background labels in this article
http://www.microsoft.com/mind/0299/forms/forms.asp

My styling is a variation of that put forth in the article and is
based on absolute positioning.

However I am looking for a generic solution that will maintain the
effect for different sizes of fields and if the field is dynamically resized.

A few spring to mind... dynamic properties, scripting but I am not
sure where to start or what the most apt approach would be.

Appreciate some guidance, hints etc.
Have you tried making each input field a block and positioning the

label as absolute with side offsets to keep it in the bottom right?

G


What I have done is somewhat similar - defining the width of the label
to be the same as it's container and overlaying it using absolute
positioning with the text right-aligned.

If the height of the containing input field is changed however, the
caption will no longer be bottom-right.

The nearest I've got conceptually is some dynamic property where the
padding-top of the caption is related to the height of the container so
that as it's height is increased the caption is pushed down and kept on
the bottom line.

I'm just wondering whether that is the most generic solution.

This is all on IE6 btw and aside from IE5 is not targeted at any other
browser.

Jul 21 '05 #3

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

Similar topics

5
by: Robert J. O'Hara | last post by:
For some time I've struggled with the problem of displaying simple captioned figures on webpages in a way that is robust and scalable. I tend to make "boring" (um, I mean "conservatively elegant")...
4
by: CB US 77 | last post by:
I use a piece of javascript to create a photo gallery slideshow. The slideshow part works great, but I would like to add captions to each picture. If you want to see the html, send me an email to...
17
by: Stian Lund | last post by:
Hello, I've been struggling with this problem for a while now, so I though I'd get some input from anyone more skilled with CSS than I am. I'm actually trying to accomplish two things with this:...
8
by: Dr John Stockton | last post by:
I have, in a div, four square images of different known sizes, displaying side-by-side. Three have transparent backgrounds. I wish to stack the images so that the centres coincide. Can someone...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
1
by: Bruce Acciavatti | last post by:
Is there any way, outside of using VB, to assign a caption to a field in a query to the value of another field. I've tried using the properties window, but haven't been successful. For example,...
2
by: harambeegirl | last post by:
I have read the CSS tutorial at W3Schools.com. It states that the caption-side property is not supported in IE6. If I want to add captions to my images, what else can I do?
7
by: Johnny | last post by:
In MSIE table captions are displayed at the same size as content. But in Firefox the text displays at browser default, It also exceeds the width of the table and the excess is hidden if the table...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.