[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Form positioning within a part of an image

Asked by ronenmagid1 in Microsoft IIS Web Server, Cascading Style Sheets (CSS), Extensible HTML (XHTML)

Tags: CSS, HTML

Simple HTML page. I am showing a large centered image. All's good.

on that image, there's a rectangle, part of the image. I'd like to put in a form within that rectangle. I've been successful with the form when it's a part of a div defined in CSS as:

.theForm
{
text-align: left;
background-color: #ffffff;
position: absolute;
top: 505px;
left: 50%;
margin-left: -350px;
height: 200px;
width: 450px;
padding: 0px 0px 0px 0px;
}

so far so good. I can resize the browser window and the form remains nicely in place thanks to the 50% and the margin-left values.

HOWEVER: if i reduce the width of the browser window below a certain threshold, the form breaks the left boundaries of the rectangle on the image. This is undesirable.

It seems like I'm missing a "minimum-absolute-left" value that I don't think exists in CSS.

Any advice what I can do?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
theForm
{
text-align: left;
background-color: #ffffff;
position: absolute;
top: 505px;
left: 50%;
margin-left: -350px;
height: 200px;
width: 450px;
padding: 0px 0px 0px 0px;
}
[+][-]11/03/09 06:26 PM, ID: 25735883Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 06:32 PM, ID: 25735910Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 06:48 PM, ID: 25735978Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 07:09 PM, ID: 25736077Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 07:14 PM, ID: 25736092Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 07:16 PM, ID: 25736099Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 07:19 PM, ID: 25736113Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 07:20 PM, ID: 25736118Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 07:57 PM, ID: 25736273Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625