aspose file tools
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 63
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: 56549
    
  14

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Joe Ridener
Ranch Hand

Joined: Jul 16, 2012
Posts: 63
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: 56549
    
  14

Umm, tables no.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cross Browser compatability for absolute positioning.
 
Similar Threads
determining mouse coordinates?
DIV causes extra line break if a background color style is added?
Anyone recommend an expert CSS book?
text field uneditable
moving a Span around a document