473,405 Members | 2,160 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,405 software developers and data experts.

Layout issues IE vs FireFox

Hi

I wonder if anyone would be so kind as to help me with this issue that's
driving me nuts!

The webpage below displays correctly on IE & Opera but NOT on Firefox 2.0.
On Firefox the submit button is rendered overlaying the comments field. On
IE & Opera however, the submit button is rendered correctly - below the
comments field.

http://www.avui40.dsl.pipex.com/test.html

If u could point me to the FAQ for tis newsgroup I would be very grateful.

kind regards

dixzyt
Dec 28 '06 #1
8 5563
yb
Hi,

Can't quite understand why you are using absolute positioning for all
the elements.

Why not just let them stay in the "flow" of the document?

Dec 28 '06 #2
I thought that using absolute positioning was the only way to make sure all
the text entry fields line up.
I am new to CSS and created this page using information I found here:

http://www.html.net/tutorials/CSS/
and here:
http://www.cvwdesign.com/contactformexample.html

thanks

dixzyt

I'll do some research on what exactly keeping them in the "flow" means

"yb" <ba*********@yahoo.cawrote in message
news:11********************@73g2000cwn.googlegroup s.com...
Hi,

Can't quite understand why you are using absolute positioning for all
the elements.

Why not just let them stay in the "flow" of the document?

Dec 28 '06 #3
yb

dixzyt wrote:
http://www.cvwdesign.com/contactformexample.html
ok, sorry my bad

now i see what you were trying to accomplish

a quick fix would be to use a larger top margin

Dec 28 '06 #4
yb

dixzyt wrote:
http://www.cvwdesign.com/contactformexample.html
ok, sorry my bad

now i see what you were trying to accomplish

a quick fix would be to use a larger top margin for the text area

Dec 28 '06 #5
On 2006-12-28, dixzyt <wrote:
Hi

I wonder if anyone would be so kind as to help me with this issue that's
driving me nuts!

The webpage below displays correctly on IE & Opera but NOT on Firefox 2.0.
On Firefox the submit button is rendered overlaying the comments field. On
IE & Opera however, the submit button is rendered correctly - below the
comments field.

http://www.avui40.dsl.pipex.com/test.html
yb was right the first time. The problem is that you're using absolute
positioning, and leaving top for that button as "auto".

This means the browser is supposed to work out where the box would have
gone if it hadn't been absolutely positioned, but that's not well
defined, and the CSS 2.1 spec says the browser is free to make a guess
at this position.

You're going to get a few differences between browsers if you rely on
this, so it's only a suitable technique for things for which it doesn't
matter exactly where they are.
Dec 28 '06 #6
yb
This means the browser is supposed to work out where the box would have
gone if it hadn't been absolutely positioned, but that's not well
defined, and the CSS 2.1 spec says the browser is free to make a guess
at this position.
Also, when you absolutely positioned the text area, its taken "out of
the flow" so that the following submit button layout is not affectted
by the position of the textarea.

I see the problem you are having with the form is to get the text
inputs to align together.

Another possible solution is to relatively position the DIV elements
containing your INPUT elements, instead of the FORM. The LABEL
elements define content inside the DIV that affects the flow of
following elements.

Within each of these divs you could absolutely position the INPUT
element specifying both top and left position (preferably using em
units). The positioning would use the DIV container as a reference
point.

For the text area, perhaps modifying the layout so the the "Comment"
text has a BR (break) after and don't position the textarea might work
better.

The submit button afterwards will flow under the text area without
extra CSS for positioning.

Dec 28 '06 #7
dixzyt wrote:
I thought that using absolute positioning was the only way to make sure all
the text entry fields line up.
Nope.
I am new to CSS and created this page using information I found here:

http://www.html.net/tutorials/CSS/
Whoever wrote this doesn't seem to know any units except px. Couple that
with the overly simplified explanations of concepts like positioning and
you have a recipe for disaster - everything absolutely positioned at px
points on the page. :(
and here:
http://www.cvwdesign.com/contactformexample.html
This could have been done just as easily using floats, or even table
markup, since form fields are considered tabular data by a lot of
people, myself included.
I'll do some research on what exactly keeping them in the "flow" means
If you just let things fall where they naturally end up, that is keeping
them in the flow, a.k.a static positioning.

BTW, please don't top post. You'll get better results from this
newsgroup if you follow the accepted conventions. Posting a URL showing
your test page was a good first step. :)
http://allmyfaqs.net/faq.pl?How_to_post

--
Berg
Dec 28 '06 #8
On 2006-12-28, yb <ba*********@yahoo.cawrote:
>This means the browser is supposed to work out where the box would have
gone if it hadn't been absolutely positioned, but that's not well
defined, and the CSS 2.1 spec says the browser is free to make a guess
at this position.

Also, when you absolutely positioned the text area, its taken "out of
the flow" so that the following submit button layout is not affectted
by the position of the textarea.
Yes and no. It is taken out of the flow, but its position is still
(though rather too vaguely) affected by the textarea because its
computed value for top is "a guess at what it would have been if it had
been in the flow".
Dec 28 '06 #9

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

Similar topics

49
by: lime | last post by:
I have addressed most of the issues listed in the responses to my last post "Critique CSS layout (1st go - fingers crossed)". I'm rapt with the progress I have made, thanks to all for your past...
7
by: Xavier Onassis | last post by:
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in...
3
by: googlegroups | last post by:
Here is the HTML I am trying to get working. In firefox, the HTML fills the entire window with a scrollbar in the red div. I can resize the page and the page is still completely filled. However,...
3
by: Spondishy | last post by:
OK... After a previous post, I've decided that the site layout will be two columns The layout will be: 1) Page 100% wide 2) Right column will be fixed 150px, left column will use the rest...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
2
by: subrato | last post by:
Hi, I am having trouble with tables. I have an outer table whose height is set to 100%. It has a header and footer and the middle section has the content. In the content i.e. the middle cell of...
2
by: Edward | last post by:
I'm pursuing the holy grail of creating a two-column CSS layout with footer AND where the colors of the columns actually go all the way down. The code is below. Here is a graphic of how it...
4
by: UKuser | last post by:
Hi Folks, Below is some test text which I've been working on, to try and get my head around CSS more. However I've observed 3 issues, mainly with Firefox which dont seem to like some bits. ...
14
by: varois83 | last post by:
Hi The code I am pasting below is just practice so the colors are goofy, it's to help me see what is where. The text isn't styled either at this time. I am working on a fixed 2...
10
by: Ole Nielsby | last post by:
James Kanze <james.kanze@gmail.comwrote: COM does rely on vtable layout. COM interfaces are declared as pure virtual classes, all methods using stdcall convention, and this works because most...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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,...
0
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...

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.