offset() method in CSS 3 multicolumn
in Using jQuery
•
9 years ago
Hi all,
I have some serious issue here, I'am working on an iOS App which has to display an html page in a UIWebView over several columns using CSS multicolum module.
I'm adding the following CSS rule to the page to accomplish the multicolumn
- padding: 0px; height: 850.000000px;
- -webkit-column-gap: 0px;
- -webkit-column-width: 620.000000px;
Then I need to find the absolute position on screen for some text in the page. The problem is that any call of the offset() method from jQuery works fine EXCEPT the one on a text running on 2 columns.
For example for a sentence that starts at the end of column 3 and finishes on column 4, I get an offset with the left value set into the 3rd column but the top position is set to 0 as if it was in the 4th column.
How can I get the offset() value with correct left and top values. I mean if the left value is on 3rd column I want the top value to be also at the bottom of the 3rd column.
Again I only have this issue when the sentence is running on two columns in the same time (Starting at the end of the 3rd column and finishing in 4th column)
I really don't know if I'm making myself clear here but any help would be really awesome.
Thx in advance
1