wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Cross Browser compatability for absolute positioning. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Cross Browser compatability for absolute positioning." Watch "Cross Browser compatability for absolute positioning." New topic
Author

Cross Browser compatability for absolute positioning.

Joe Ridener
Ranch Hand

Joined: Jul 16, 2012
Posts: 86
Hello Everyone,

I am using absolute positioning for a forum. The slight variations of pixel display is causing dis-aligned text to components. In other words my input element for the online form is level with the text in one browser but on the other it is a little more than just slightly off. I was thinking about enclosing the entire line that I want to be level in a span element and positioning the span. What do you think of this? Is there a better way to do it?


Sincerely,
Joe
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Absolute positioning is overused, in my opinion, and is tricky to get right. I'd advise trying to lay out the elements again, without any absolute positioning.

Without any further details, hard to say what the best approach may be.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Ridener
Ranch Hand

Joined: Jul 16, 2012
Posts: 86
Yeah my idea was to use tables and spans... will prolly work...thenk you Bear
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Umm, tables no.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cross Browser compatability for absolute positioning.
 
Similar Threads
DIV causes extra line break if a background color style is added?
moving a Span around a document
determining mouse coordinates?
Anyone recommend an expert CSS book?
text field uneditable