Click here to Skip to main content
11,431,373 members (68,275 online)

Web Development

 
AnswerRe: drop down menu pushes the content down similar to ibm.com Pin
Sandeep Mewara30-Dec-12 1:13
mvpSandeep Mewara30-Dec-12 1:13 
Questiongoogle map include in contact.aspx page Pin
Member 819678127-Dec-12 21:50
memberMember 819678127-Dec-12 21:50 
AnswerRe: google map include in contact.aspx page Pin
vbmike28-Dec-12 9:59
membervbmike28-Dec-12 9:59 
AnswerRe: google map include in contact.aspx page Pin
Sandeep Mewara5-Jan-13 21:28
mvpSandeep Mewara5-Jan-13 21:28 
AnswerRe: google map include in contact.aspx page Pin
S.M. Zamshed Farhan15-Jan-13 5:12
memberS.M. Zamshed Farhan15-Jan-13 5:12 
QuestionUsing Developer Tools Pin
Phanindra26127-Dec-12 2:59
memberPhanindra26127-Dec-12 2:59 
AnswerRe: Using Developer Tools Pin
S.M. Zamshed Farhan12-Jan-13 6:46
memberS.M. Zamshed Farhan12-Jan-13 6:46 
AnswerRe: Using Developer Tools Pin
S.M. Zamshed Farhan12-Jan-13 6:48
memberS.M. Zamshed Farhan12-Jan-13 6:48 
AnswerRe: Using Developer Tools Pin
rg1024-Jan-13 2:40
memberrg1024-Jan-13 2:40 
QuestionSSRS Report Conversion to PDF [modified] Pin
Vinay Meka22-Dec-12 1:58
memberVinay Meka22-Dec-12 1:58 
AnswerRe: SSRS Report Conversion to PDF Pin
Sandeep Mewara5-Jan-13 21:34
mvpSandeep Mewara5-Jan-13 21:34 
QuestionCould not load file or assembly Pin
Chona117120-Dec-12 2:57
memberChona117120-Dec-12 2:57 
AnswerRe: Could not load file or assembly Pin
ArpitDubey28-Dec-12 9:50
memberArpitDubey28-Dec-12 9:50 
QuestionHow should I measure scroll position in different browsers [modified] Pin
woomla17-Dec-12 22:52
memberwoomla17-Dec-12 22:52 
I cannot exactly figure out how the scroll position is measured.

I have a container with a specific height (400) and some elements (30) in it with specific heights (18). The container displays about 7.2 items in it. The maximum scroll position in firefox is 142. In chrome 141.

If the container can display an exact number of items then the calculation is simple: number-of-items * item-height - container-height.

But how is it calculated if the container displays 7.2 items?

And worse, if the container has padding top and bottom?

See this example[^]


[edit]
The reason why I want this is because I want some kind of ScrollBar. I have it kind of working, but there are differences in browsers.

In firefox, this example works: http://jsfiddle.net/woomla/ma88D/7/[^]

In chrome this example workds: http://jsfiddle.net/woomla/ma88D/8/[^]

The difference is that in the chrome version I need to add padding-top and padding-bottom to the max scroller distance. In firefox I need to add only padding-top.

modified 18-Dec-12 7:05am.

AnswerRe: How should I measure scroll position in different browsers Pin
Zaf Khan19-Dec-12 6:46
memberZaf Khan19-Dec-12 6:46 
QuestionBest Web Technologies Pin
emadns12-Dec-12 4:40
memberemadns12-Dec-12 4:40 
AnswerRe: Best Web Technologies Pin
David Mujica12-Dec-12 5:22
memberDavid Mujica12-Dec-12 5:22 
AnswerRe: Best Web Technologies Pin
achantayamini17-Dec-12 23:05
memberachantayamini17-Dec-12 23:05 
AnswerRe: Best Web Technologies Pin
jfmorgan33331-Dec-12 11:01
memberjfmorgan33331-Dec-12 11:01 
QuestionJSP and JSTL and so on ... Pin
SheraX11-Dec-12 7:20
memberSheraX11-Dec-12 7:20 
AnswerRe: JSP and JSTL and so on ... Pin
Marcus Kramer11-Dec-12 7:28
memberMarcus Kramer11-Dec-12 7:28 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 7:32
memberSheraX11-Dec-12 7:32 
GeneralRe: JSP and JSTL and so on ... Pin
Andrew Stoute11-Dec-12 8:03
memberAndrew Stoute11-Dec-12 8:03 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 8:12
memberSheraX11-Dec-12 8:12 
QuestionSMTP Programming Pin
DisIsHoody9-Dec-12 14:49
memberDisIsHoody9-Dec-12 14:49 
AnswerRe: SMTP Programming Pin
vbmike10-Dec-12 9:49
membervbmike10-Dec-12 9:49 
GeneralRe: SMTP Programming Pin
DisIsHoody10-Dec-12 14:30
memberDisIsHoody10-Dec-12 14:30 
GeneralRe: SMTP Programming Pin
Richard MacCutchan10-Dec-12 22:36
mvpRichard MacCutchan10-Dec-12 22:36 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 10:40
memberDisIsHoody11-Dec-12 10:40 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 11:26
mvpRichard MacCutchan11-Dec-12 11:26 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 11:44
memberDisIsHoody11-Dec-12 11:44 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 11:58
mvpRichard MacCutchan11-Dec-12 11:58 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 12:20
memberDisIsHoody11-Dec-12 12:20 
QuestionXSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev8-Dec-12 3:26
memberQuickBooksDev8-Dec-12 3:26 
AnswerRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove13-Dec-12 20:46
memberChris Grove13-Dec-12 20:46 
GeneralRe: XSLT Transforms - how to get just some of in a for-each [modified] Pin
QuickBooksDev17-Dec-12 1:42
memberQuickBooksDev17-Dec-12 1:42 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove17-Dec-12 4:43
memberChris Grove17-Dec-12 4:43 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
QuickBooksDev17-Dec-12 5:55
memberQuickBooksDev17-Dec-12 5:55 
GeneralRe: XSLT Transforms - how to get just some of in a for-each Pin
Chris Grove17-Dec-12 6:43
memberChris Grove17-Dec-12 6:43 
QuestionPop Up JQuery Quick Link Pin
Janiel Major5-Dec-12 23:02
memberJaniel Major5-Dec-12 23:02 
AnswerRe: Pop Up JQuery Quick Link Pin
vbmike7-Dec-12 5:09
membervbmike7-Dec-12 5:09 
AnswerRe: Pop Up JQuery Quick Link Pin
ryanb3112-Dec-12 5:41
memberryanb3112-Dec-12 5:41 
Question[HELP] Whois can using PHP to generate this one? Pin
jimmy.suharry4-Dec-12 22:37
memberjimmy.suharry4-Dec-12 22:37 
AnswerRe: [HELP] Whois can using PHP to generate this one? Pin
S.M. Zamshed Farhan12-Jan-13 6:54
memberS.M. Zamshed Farhan12-Jan-13 6:54 
QuestionTool for big WEB project with huge loads Pin
Junoli2-Dec-12 10:37
memberJunoli2-Dec-12 10:37 
AnswerRe: Tool for big WEB project with huge loads Pin
Richard A. Abbott2-Dec-12 11:47
memberRichard A. Abbott2-Dec-12 11:47 
Questionselect an item in gridview Pin
ptvce2-Dec-12 2:50
memberptvce2-Dec-12 2:50 
AnswerRe: select an item in gridview Pin
Richard MacCutchan2-Dec-12 4:00
mvpRichard MacCutchan2-Dec-12 4:00 
Questioni php question Pin
gamaan1-Dec-12 5:00
membergamaan1-Dec-12 5:00 
AnswerRe: i php question Pin
gamaan1-Dec-12 5:03
membergamaan1-Dec-12 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150428.2 | Last Updated 4 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid