The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Layer Absolute problem
mianz
post Jul 2 2008, 04:05 PM
Post #1





Group: Members
Posts: 4
Joined: 2-July 08
Member No.: 6,051



Hi guys, this is my first post.

I'm having a huge problem which i can't get anything off the internet.

As your look at the screenshot, u can see that the white box is actually a AUTOSHAPE object, therefore i couldnt add forms in it.

I then choose to add a absolute layer over it, to add in the forms within the AUTOSHAPE object.

It looks ok within the editor itself, but when i view it in IE, using different resolution the position of the layer went off.

I thought of a solution but i do not know how to do it.

If i'm able to detect the screen resolution and change the left: 363px; top: 341px value accordingly it should work fine. can any1 help me. please.

<div style="position: absolute; width: 350px; height: 332px; z-index: 1; left: 363px; top: 341px" id="layer1">
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</div>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 2 2008, 04:16 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(mianz @ Jul 2 2008, 11:05 PM) *

As your look at the screenshot, u can see that the white box is actually a AUTOSHAPE object

I'm afraid I have no idea what an autoshape object is. Is it something that works on the web or does it only work with MS Office? Maybe it's FrontPage speak for something else?


QUOTE
It looks ok within the editor itself, but when i view it in IE, using different resolution the position of the layer went off.


That's what AP does, the way you've used it. The box will be 363px from the left browser edge and 341px from the top one no matter what.

Can you explain how you want it to look/work?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
mianz
post Jul 2 2008, 09:55 PM
Post #3





Group: Members
Posts: 4
Joined: 2-July 08
Member No.: 6,051



hi. thanks for replying.

yes it's a function in frontpage. it's like some kind of shape tools.

i wan it to be at the exact same spot like the editor, when in any resolution or anything.

it has to be absolute, coz i cannot drop it within the auto shape itself as that will make the forms not being able to work.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jul 2 2008, 11:28 PM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE
i wan it to be at the exact same spot like the editor, when in any resolution or anything.
Keep in mind that What You See Is Not What Others Get on the Web...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
mianz
post Jul 3 2008, 12:23 AM
Post #5





Group: Members
Posts: 4
Joined: 2-July 08
Member No.: 6,051



yeah that's why. this code can work but i don't know how to apply it.

If i'm able to detect the screen resolution and change the left: 363px; top: 341px value accordingly in the form of ratio it should work fine. can any1 help me. please.

<div style="position: absolute; width: 350px; height: 332px; z-index: 1; left: 363px; top: 341px" id="layer1">
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</div>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jul 3 2008, 12:52 AM
Post #6


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Can you provide the URL (address) of a document that demonstrates the problem?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
mianz
post Jul 3 2008, 03:02 AM
Post #7





Group: Members
Posts: 4
Joined: 2-July 08
Member No.: 6,051



http://www.bytelab.com.sg/Contact.htm

thanks for the help
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jul 3 2008, 10:54 AM
Post #8


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Your submit buttons are positioned relative to the left edge. The rest of your content is centered. They're going to line up properly only at one specific width of browser window.

You need to position everything the same way (either relative to the left edge, or centered).

Actually, most of your content appears to be images of text. Don't do that. Use real text instead. There might be a case for using images for a fancy font for headings, but you'd need to be sure to specify appropriate alt text (see Use of ALT texts in IMGs). Doing the whole page as images of text is a bad design.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 12:05 AM